Saturday, May 19, 2012

My WordPress “White Screen of Death” fix.

Posted on: Sunday, April 11th, 2010
Category: Blog, Featured

If you’ve stumbled upon this post because your searching for a way to fix your WordPress “White Screen of Death” website then you just might be in the right place. Today I experienced this dreadful feeling for around 60 troublesome minutes and I managed to fix mine in a matter of 1 hour while others spent days and months. Let hope my way works for you.

My problem all started when I was making a small modification to the the file “wp_includes/widgets.php”. I opened this file, made a small irrelevant-edit, ftp to the server, refreshed my browser and “POOF” the screen goes blank on the front-end of the site and the back-end too. I was crippled. No PHP error -no source code -nothing. Here’s how I fixed it. First, I reverted my changes to “wp_includes/widgets.php” that didn’t do anything. Then, I changed my WordPress back to it’s “default” theme by modifying the database.

To do this follow the steps below:

  1. Go to cPanel or web host panel and click on phpMyAdmin link.
  2. Select your wordpress site db.
  3. Select the ‘wp_options’ table (if you have another table prefix ‘tableprefix_options’).
  4. From the header tabs, select the “Browse” tab.
  5. Select ‘Page 2′ from the tables footer.
  6. Now you’ll see another tables and you must edit  the ‘template’ and ‘stylesheet’ tables with the name of your theme. Complete like below and press go, and you’re done.

At this point my website is back up but with the wrong theme. When I switched back to my customized theme i get the “WHITE SCREEN OF DEATH”. The problem obviously lies within the “wp-includes/widgets.php” so I knew the problem was relevant to the core files and at the time I was running WordPress 2.8. It was then I realized it was time to upgrade WordPress so I figured this would be the perfect time to do so. I went ahead and upgraded to version 2.9 -UREKA! I found my fix.  I switch back to my custom template and all was well.

To sum it all up… If you see the “WHITE SCREEN OF DEATH” after modfying a core file and in my case “wp-includes/widgets.php”; make sure too:

  1. Change your theme back to the “Default” via “phpMyAdmin”.
  2. If you need to upgrade your WordPress website -DO SO!

If “my fix” does not work for you, I found the following links during the troubleshooting of the problem that I recommend you visit. They are as follows:

3 Responses to “My WordPress “White Screen of Death” fix.”

  1. Arne says:

    Thanks, this fixed my problem. I never would have found it.

    It started happening when I activated the “WP Email Capture” plugin. I didn’t manually change anything in widgets.php but the plugin might have altered something.

  2. JJ Chambers says:

    Glad I could be of some assistance.

  3. Hi Anthony here from wordpressmonster.org, the blank page in admin either when you add something or it just happens is normally related to the memory space being full you can increase memory space with a simple htaccess file added to the root directory of your wordpress blog. I have added a download of a htaccess file to wordpressmonster.org for anyone to use this should cure your wordpress blank page problem just unzip the file then upload the htaccess file to the root of your blog anyone who is not confident in doing the please contact me for help.

    Click
    to Download

    Best Regards
    Anthony (Admin)
    Wordpressmonster.org

Leave a Reply

Back2Top