Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

How can I see the error messages when the site I am working on gets a white screen?

share|improve this question
hello sokratis, this is an interesting question and I see several answers, do you know what answers are suitable for this case?. Remember assign a feedback (with comments or accpeting an answer) for to the community know suitable answers. – moon.watcher Aug 25 '11 at 16:43

3 Answers

up vote 10 down vote accepted

Put this at the bottom of settings.php:

error_reporting(-1);  // Have PHP complain about absolutely everything 
$conf['error_level'] = 2;  // Show all messages on your screen, 2 = ERROR_REPORTING_DISPLAY_ALL.
ini_set('display_errors', TRUE);  // These lines just give you content on WSOD pages.
ini_set('display_startup_errors', TRUE);
share|improve this answer
This is great for development sites though I prefer /var/log/apache2/error.log for live sites. This works though. :) – Citricguy Feb 3 '12 at 5:25

The White Screen of Death (Completely Blank Page) resource on drupal.org will step you through the steps to see the error message as well as common problems that cause them.

share|improve this answer

Have a look at Apache error log, in Ubuntu it's located in /var/log/apache2/error.log so you can do:

tail -f /var/log/apache2/error.log

share|improve this answer
sudo tail -f /var/log/apache2/error.log – Citricguy Feb 3 '12 at 5:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.