Pages

Saturday, July 10, 2010

Drupal - How to Diagnose a Blank White Screen: White Screen of Death (WSOD)

While developing a Drupal website, I was testing out the created pages and suddenly on one page, nothing was loaded. There was just a blank white page - more appropriately called the Drupal White Screen of Death or WSOD. First step I did was to enable error reporting because there might also be problems with the template I was customizing:

Temporarily edit your index.php file and add these lines at the top (after the first opening tag):

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);


// $Id: index.php,v 1.94 2007/12/26...

Then I went back again to the blank white page and I saw that there were some syntax errors in my template. After fixing those errors in my template I deleted again that chunk of code to avoid others seeing diagnostic errors in the site.

It was a quick solution, but if that did not solve your problems, try checking out these links:

1 comment:

  1. Hello,

    Your post was very helpful for me. I was able to read one of the error and fixed it.

    Thanks and Good Day,

    Prasad

    ReplyDelete