WordPress Tutorials and Blog Posts

Dealing with the WordPress White Screen of Death

Have you ever experienced Microsoft's famous Blue Screen Of Death? Well, WordPress has it's own version commonly called the White Screen Of Death.

You are most likely to see this after upgrading WordPress to a new version, adding a plugin or a theme. 

It is possible to turn on debug mode to find the problem, but that won't really help if all you can see is a blank screen. Here are some ways in which you can recover from the White Screen of Death.

Step 1: Deactivate all plugins

There are two major causes of the White Screen of Death: plugins and themes. Here's how to troubleshoot plugins.

tutuploadsmedia_1336085558606.png

1. Deactivate all plugins.

  • If you have access to the admin panel try deactivating all plugins and reactivate them one at a time until you find which one is causing the problem.
  • If you don't have access you can deactivate them using one of the two methods suggested in this tutorial. Disable the plugins one-by-one until the site comes back online. You can use this process of elimination to find the troublesome plugin.

2. Reset your plugins via FTP or the file manager provided in your host's control panel.

  • Via FTP or your host's file manager, navigate to the wp-contents folder (directory).
  • Via FTP or your host's file manager, rename the folder "plugins" to "plugins.hold".
  • Login to your WordPress administration menus (/wp-admin).
  • Via FTP or your host's file manager, rename "plugins.hold" back to "plugins".

Step 2. Check theme problems by replacing with a default

tutuploadsmedia_1336085670683.png

If working with the plugins didn't solve the problem, you'll need to check to see if a theme is the problem.

  • If you have access to your admin, change the theme back to one of the default themes.
  • If you don't have access to your admin, using FTP, change the name of your current them directory so it can't be used. This will force WordPress to display the default theme.

Step 3: Other possible causes

If you've been modifying files, you may also cause the problem through some very simple mistakes. Here's a list of other causes we've found in the past.

  • Blank space in functions.php - This is easy to do if you've been modifying the file. A good way to check is to replace it with the unchanged version of the file and see if the site works.
  • Blank line in wp-config.php - a blank line at the start of this file can bring on the White Death. Check for extra spaces at the end as well.
  • File Permissions - Make sure all the directories are 755 and the other files 644. This shouldn't be a problem, but people have reported that changes with their hosting company have created changes in file permissions.
  • Multiple Plugins - When you're reactivating your plugins, the first one you find that causes the problem may not be the only one. Sometimes its a combination of two or more. So you think you have the problem solved, but it may still exist and come back in the future.

Tips:

  • Check your error logs. A good amount of the time, server logs will show *exactly* what php function is causing the issue, and where.
  • Run a PHP validator on the code prior to saving. It will catch a lot of simple mistakes.

Comments

 
Andy123
#1 Andy123 2012-10-04 21:53

Hey, thanks for the post. I am really worried that my site may have been hacked or something?? I cannot access WordPress and if I type my site into the URL I get a malicious page message from avast.

What do you think?

Thanks,
Andy
 
 
MrTemple
#2 MrTemple 2012-10-12 01:41

I finally think I've solved the White Screen of Death from PHP out of memory Fatal Errors.

If setting the WordPress and PHP memory limits doesn't work for you, try adding/edditing the following line in either your Apache conf files. I didn't have access to those, so I added the following line to the`.htaccess` file in my WP server's document root:

RLimitMEM max
Many hosts have set limits on each user on shared-use servers. The above setting will unfetter your server and banish the WSOD.
 
 
DImitar
#3 DImitar 2012-12-05 11:14

I had the WhiteScreanOfDe ad for 2 hours. Finally solved the problem by removing the white space above the
 
 
pj
#4 pj 2013-02-27 16:17

I don't know how to even get into the wp site after getting the white screen. I just look at the white screen with no idea where to go from there.
 
 
Knowles2
#5 Knowles2 2013-05-11 23:48

Thanks for the nice and straight forward post, it helped fixed white screens errors I was getting in wordpress why building a custom theme.
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,142 training sessions in Joomla, Drupal, WordPress and Coding.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.