If you have been using WordPress for a few years, then you have faced the white screen of death at least once. The WordPress white screen of death is one of those extremely annoying problems like error establishing a database connection. The reason why this issue is frustrating for users is that it locks you out of your WordPress admin panel. Because there is no error output in most cases, you are left clueless to figure out what is the issue. The worst thing about the white screen of death is that sometimes it will only affect a certain part of your site. For example, you may only see the white screen of death on your WordPress admin while everything else works fine. In other cases, you may only see it on a specific post whereas everything else runs just fine. In this post, we will show you how to fix the WordPress white screen of death by looking few possible solutions.
Why do you get this error?
The majority of the time when you see a white screen of death, that means that you have exhausted the memory limit. This could be caused by a plugin that you are using and it’s not functioning properly. It could also be caused by a poorly coded theme that you are using. It could also mean that there is an issue with your web hosting server. Since the problem can be caused by any number of things, it may require a lot of troubleshooting.
Does the problem occur on your other sites?
If you have multiple sites, then the first thing you should do is to make sure that the white screen of death is happening just on this one domain. If the issue is with all of your websites, then it is a strong case that your web hosting provider is having some issues. However, if the issue is only with one of your websites, then this could be an issue with a plugin or theme that you are running. If the issue is only happening with a single post or page, then you know it is definitely a problem with your specific website.
Increasing the Memory Limit
Usually, this issue happens because your memory is being exhausted. Use our tutorial on how to increase PHP memory in WordPress.
Disabling All Plugins
If increasing the memory limit did not sort out the issue, or if you have a high memory limit like 256M or 512M, then you need to start troubleshooting. In our experience, we have always found that the issue is either with a specific plugin or a theme. Let’s go ahead and disable all the plugins. If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue.
Replace Theme with a Default Theme
If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default WordPress twenty theme. The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.
Alternatively, you can go in your phpMyAdmin and update the database tables in the wp_options table. The following table names would have to be updated: template, stylesheet, and current_theme. Change the value to twentyeleven.
If this fixes the issue, then you should look at your theme’s functions.php file. If there are extra spaces at the bottom, then you should consider fixing them. If you are using a poorly coded function in your theme’s functions.php file, then it can cause this as well.
If none of the above works, then you should try to reinstall a fresh copy of WordPress. While it is unlikely, but it is always possible that a core file may have been corrupted.
You can also use the WordPress wp debug function to see what sort of errors are being outputted. Add the following code in your wp-config.php file.
&lt;span style="font-weight: 400;"&gt;error_reporting(E_ALL); ini_set('display_errors', 1); define( 'WP_DEBUG', true);&lt;/span&gt;
After adding this, the blank screen will now have errors, warnings, and notices. These may be able to help you determine the root cause.
Sometimes, you have access to the backend, but the front-end of the website has a white screen of death. This happens due to caching plugin. Simply empty your cache.
If you have a white screen of death only on a very long post page, then you should also try clearing cache. Another trick that we have found is increasing the recursion and backtrack limit. You can paste the following code in your wp-config.php file. Or in some servers, you will be required to modify your PHP.INI file.&lt;span style="font-weight: 400;"&gt;/** Trick for long posts */&lt;/span&gt; &lt;span style="font-weight: 400;"&gt;ini_set('pcre.recursion_limit',20000000); ini_set('pcre.backtrack_limit',10000000);&lt;/span&gt;
We understand that this is a very frustrating error, and we hope that one of the tricks above fixed the issue for you. What have you tried that seemed to work for you? If you found another solution to work, then please let us know. We would be happy to expand on this resource, so others do not have to waste as much time finding a solution.