Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting.
tip
Unpublish, don't delete
As noted in Forum Finds: Node deletion is forever, when you tell Drupal to delete a node it gives you one "Are you sure...?" chance to recapitulate, but that's it. Confirm the deletion, and that node is gone; there's no Trash Can or Undo to get it back.
To prevent mishaps, be careful in giving users permission to delete nodes. Also, make it a rule to unpublish, not delete, nodes when you want to take them off the site. The node will disappear from view just as if it had been deleted, but will remain in the database should you ever want to republish, reedit, or otherwise revisit it.
Wipe error messages off the screen
Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting.
Modify length of user login sessions
Tired of logging in again and again to a Drupal site that keeps kicking you out? You can modify session length, i.e. the length of time that a logged-in session stays logged in, via the ini_set('session.cookie_lifetime'... line in the site's settings.php file. See details in Forum Finds: Modify length of user login sessions.
You can change a user's name
Changing the name of an admin or any other user shouldn't mess up anything. (All "posted by" info and other references to user name will automatically reflect the new name.) User names are just there for our human convenience; the underlying User ID number is what Drupal is concerned with.
Searching Drupal.org
Is search on Drupal.org not turning up what you want – or (as happens at times) is the site's search function not working at all? Let Google help out: give Google your search terms, followed by site:drupal.org . Voila!
Read up on a few more search tips.
Learn Drupal, hands-on
Get the beginner-friendly ebook that teaches community site building via a live case study.







adding $GLOBALS['tempUser'] = $user; worked but I find it worth noting that I had to delete...
very good documentation for beginners!!!!!! thanks!!
strike out abject
eliminate penitent 5
Thank you a lot about very beneficial to my work was very useful thank you
I would start learning from the "Diving In" section above. That links to the good beginners'...