Drupal 6 has many enhancements over Drupal 5. The most useful being Drupal 6 can respect your php.ini and suppress fatal error messages and just return a nice polite site off-line message like the one pictured below.
Of course this can be a huge pain in the arse if you need to know what's wrong with your site. It's really annoying if you don't have administrative access to your hosting. It's even more annoying if you are the administrator and you forgot you set [code lang=php]display_errors = Off[/code] in your php.ini, or didn't realise Drupal 6 was being extra helpful.
There is fortunately a remedy for this on a per-site basis. One can set the following in settings.php:
[code language="php"]ini_set('display_errors', 1);[/code]
Subsequently the missing error messages should appear as shown below:
The function _db_error_page() is where the magic happens.







Comments
Error
I hate the word error. It not only shows that i was incapable of something, but this word itself annoys me. The way it stares in your eyes, as if its laughing at you. Bah.
When my site was offline (geboortekaartje) it just showed ERROR and a code. Wish i had drupals easy and usefull plugin so it showed some nice messages instead of the harsh Error sign
Hey
Hey, thanks for the information
It's definitely a new version
It's definitely a new version would have a better features, so what I am doing on my Drupal sites is reverting and updating to a new one.
tampa injury attorney
They have updated it since...
They have updated now, since overcoming panic attacks so you can relax :)
Add new comment