Header Ads

Fixing the WordPress White Screen of Death


The well known White Screen of Death is one of the most common, yet most frustrating things that can occur on your WordPress site. 
In this tutorial, we'll be looking at the various things that cause it, and some steps that you can take no only to fix it, but to make sure it doesn't happen again.
There are four common methods which can be used to solve the White Screen of Death, which I'll be discussing in this tutorial:
  1. Checking Your Plugins
  2. Increasing the PHP Memory Limit
  3. Replacing the Theme
  4. Enabling Debug Mode
Please note, that before making any changes to your site, you should do a full backup of your files and database.
So, without further ado, let's get going with the first method.
This is the most common cause for the white screen to appear, and is also the simplest the solve. Chances are, you installed a dodgy plugin that is conflicting with your other plugins or theme, and so we need to determine which the culprit is, and see if we can fix that white screen!
In the navigation bar on the left of your WordPress dashboard, click the "Plugins" link.
If you've recently installed a plugin, disable that one first. This will usually solve the white screen issue straight away and you can continue using your site as normal.
If you're still reading this, it means that you haven't been successful in solving the issue. You should now try deactivating all of your site's plugins. You can do this by selecting the first tick-box, just above the list, and then selecting 'Deactivate' from the the drop-down menu.
Confirm the deactivation of your plugins, and then check the front-end of your site to see if the white screen has gone. If it has, congratulations; you can stop reading. If not, re-enable your plugins and read on.
Without access to the dashboard, you'll need to connect to your site's server via either an FTP connection, or using your site's Control Panel and navigating to the File Manager (or the like).
Navigate over to the wp-content directory of your WordPress site and rename theplugins folder to something different, like plugins-old or plugins-temp.
Every plugin will now have been deactivated, so you can now try to reload your site, hopefully without the white screen. If that hasn't worked, you'll need to revert the name of the folder back to plugins and re-activate your plugins once the site is working normally again.
Connect to your FTP server or File Manager in your hosting panel, and navigate to the root directory of your WordPress site.
Open the wp-config.php file into a text editor and add the following line of code:
1
define('WP_MEMORY_LIMIT', '64M');
This number can be changed depending on what your server can handle with. Don't be greedy though, as increasing this number too high for your server can cause other issues.
Save the file and refresh your site. If it's working now, then you can continue working on your site. If not, bad luck, and continue reading this tutorial.
Like above, connect to your FTP server or File Manager in your hosting panel, and navigate to the root directory of your WordPress site.
If you have access to your site's 'php.ini' file, add the following line of code:
1
memory_limit = 64M ;
If you don't have access to this file, you can create it in the root directory of your WordPress site.
Save the changes, and try to load your site. You should note that the maximum amount of memory a script can handle is 64MB, so don't try and increase this number above that.
Every WordPress site has an .htaccess file, so to try and solve the white screen issue, connect to your FTP server or File Manager in your hosting panel, and navigate to the root directory of your WordPress site.
Once you've loaded that file, simply add this line of code to it:
1
php_value memory_limit 64M
Refresh the front-end of your site again, and see if it's working again. If so, you're awesome, and if not, continue reading this tutorial!
Navigate to the Themes manager, by selecting Appearance > Themes from the menu on the left-hand side of the WordPress admin area.
Activate one of the default WordPress themes, such as Twenty Fourteen, or Twenty Thirteen.
Refresh your site, and see if the white screen issue is still occurring.
This is considerably harder than doing it via the WordPress admin area, but if you've not got a choice (or you're up for a challenge), then listen up!
Connect to your site's server via FTP or your hosting's File Manager and confirm that you've got one of the default WordPress themes uploaded to your server.
Now, open up 'phpMyAdmin' via your hosting panel and navigate to the wp_optionstable in the database.
Scroll through the pages of options until you find 'template' and 'stylesheet'. These should both be replaced with the title of the directory of the theme you want to revert to. In this case, it'd be either 'twentyfourteen' or 'twentythirteen'.
Refresh your site's front-end, and hope for the best.
Connect to your site's server via FTP or your hosting's File Manager and navigate to the root directory of your WordPress site.
Open your wp-config.php file and fine the following line of code:
1
define('WP_DEBUG', false);
To enable debug mode, change the boolean value to true, like this:
1
define('WP_DEBUG', true);
Refresh your site and you should now see some information about why the site may be displaying the white screen. For details on what the debug information actually means, this useful page on the WordPress Codex should help.

Connect to your site's server via FTP or your hosting's File Manager and navigate to the root directory of your WordPress site.
Open your wp-config.php file and fine the following line of code:
1
define('WP_DEBUG', true);
Refresh your site and the debug information will now be presented on the front-end of your site. For details on what the debug information actually means, this useful page on the WordPress Codex should help.
So, that's it - you've now learned how to fix the WordPress White Screen of Death and your site should now be displaying correctly!
If you have any questions, feel free to leave a comment below and I'll get back to you as soon as I can.

No comments

Powered by Blogger.