What are all these errors for?

By shane
Wed, 2011-03-16 22:00

Share with Others

So one day I wake up to a phone call from a client saying their website was broken. After looking into it, I was able to determine that the website itself was working fine, however there were now red error messages showing up on almost every page. After further looking, they were not really errors, they were PHP notices. The notices sprung up during server upgrades that migrated from PHP 5.2 to PHP 5.3. At the time, we ended up just changing the PHP error setting to no longer display notices, and the crises was averted. however looking back now we could have done it this way.

  1. Log into the site with an admin account
  2. Go to Administer -> Error Reporting
  3. Select the option to only log errors to the log
  4. Save

This is a good thing to do for all production sites. The last thing you want to be displayed to users are PHP errors. I had been using Drupal for more than 6 months before I discovered this very simple option. Maybe I should have read the manual first...