WordPress white screen of death affects WordPress Websites and it is very common.
When it occurs, you will be left with a blank page without any error message and there unable to access your site.
Here at Ibmi Media, as part of our WordPress Support Services, we regularly help our Customers to fix WordPress errors.
In this context, we shall look into how to fix the WordPress white screen of death by looking at different solutions.
The WordPress white screen of death error is very frustrating as no error message is shown on the browser.
It could also affect a certain part of your website.
For example, you may only see the white screen of death inside the WordPress admin area, while everything else works fine. In other cases, you may only see it on a specific post whereas everything else works fine.
Whenever you see a white screen of death, it means that a script on your website exhausted the memory limit.
The unresponsive script either gets killed by your WordPress hosting server, or it simply times out. This is why no actual error message is generated, and you see a plain white screen.
In some cases you might see a critical error message instead of a plain white screen:
There has been a critical error on your Website. Please check your site admin email inbox for instructions.
Whether you're seeing a blank screen, or the message “There has been a critical error on your website,” it’s the same error.
This error can also happen due to a poorly coded theme or plugin installed on your site. Sometimes it can happen if there is an issue with your web hosting server.
Since the white screen error can be caused by any number of things, it requires methodical troubleshooting to fix.
If you have other WordPress sites installed on the same hosting account, then you want to start by checking if the problem is occurring on other sites as well.
If it is, then that's a strong indicator that something is wrong with your WordPress hosting service. This could be a temporary issue affecting their service, and you need to reach out to their support for more help.
On the other hand, if the issue is only happening with one website or a specific part of that site, then you know that the problem is with that particular website.
You can resolve this error via the WordPress Recovery Mode or Manually.
If the white screen of death error is caused by a WordPress plugin or theme, then WordPress may be able to catch it.
The new fatal error protection feature introduced in WordPress 5.2 can sometimes catch the error, so you may not even see a white screen. Instead, you will see a message that the site is having technical difficulties:
The site is experiencing technical difficulties.
You would also receive an email message on your admin email address with the subject 'Your Site is Having a Technical Issue'.
This email message will point out the plugin causing the error, and it will also contain a special link. This link will allow you to login to the WordPress recovery mode and deactivate the faulty plugin.
However, if you are seeing the plain white screen of death with no email or recovery mode option, then you need to manually fix the error.
Sometimes, this error happens because a script has exhausted the memory and quit in the middle.
To fix this, you need to increase PHP memory available to WordPress. This will allow the script to use more memory to finish the job it was supposed to do.
If increasing the memory limit did not help, or if you have a high memory limit like 256M or 512M, then you need to start troubleshooting.
In our experience of troubleshooting this issue, 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.
i. If you can still access the WordPress admin area, then you can simply go to Plugins » Installed Plugins page.
ii. Select all the installed plugins and then select ‘Deactivate’ under ‘Bulk Actions’ drop-down.
However, if you don’t have access to the WordPress admin area, then you will need to deactivate all plugins via FTP.
a. First, connect to your WordPress site using an FTP client. Once connected, go to the wp-content folder where you will see the ‘plugins’ folder.
b. Now, you need to right-click on the plugins folder and then select rename. You can rename the plugins folder to plugins-deactivated.
Your FTP client will now rename the plugins folder.
WordPress looks for a folder named plugins to load all plugins. When it cannot find the folder, it simply deactivates all plugins.
If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue. Once you find the plugin causing the issue, you can replace it with an alternative or report the issue to plugin authors.
If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default theme.
i. First, connect to your website using an FTP client and go to the /wp-content/themes/ folder. It contains all installed themes on your website.
ii. Right-click to select your current WordPress theme and download it to your computer as a backup.
iii. Next, you need to delete your current theme from your website. Right-click on your theme folder and select ‘Delete’. Your FTP client will now delete the theme from your website.
Now if you have a default WordPress theme like (Twenty Eighteen or Twenty Nineteen) installed on your website, then WordPress will automatically start using it as the default theme.
However, if you don’t have a default theme installed, then you need to manually install it using FTP.
If this fixes the issue, then you should look at your theme’s functions.php file. If there are extra spaces at the bottom of the file, then you need to remove those, and sometimes that fixes the issue.
If you are using a poorly coded function in your theme’s functions.php file, then it can cause the white screen of death error as well.
Consider downloading a fresh copy of your theme from its source and then install it.
If nothing has helped so far, then the next step is to turn on debugging in WordPress. This will allow you to see what type of errors are being outputted.
Simply, add the following code into your wp-config.php file:
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
Once you add this, the blank screen will now have errors, warnings, and notices. These may be able to help you determine the root cause.
If you don't see any errors, you may still want to check the debug log. Simply visit the wp-content folder on your website using an FTP client. There you will find a new debug.log file containing a log of all errors, notices, and warnings.
Sometimes, you may have access to the backend, but the front-end of the site has the white screen of death. This can happen because of a caching plugin. Simply empty your cache.
If you have a white screen of death only on a very long post or page, then this little trick might work.
This trick basically increases PHP’s text processing capability by increasing the recursion and backtrack limit. You can paste the following code in your wp-config.php file:
/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);
We understand that this is a very frustrating error, and we hope that one of the tricks above fixed the issue for you.
This article is about will guide you on steps to resolve WordPress White Screen of Death which is very frustrating as there is no error message, and you are locked out of your WordPress website.
This error can also happen due to a poorly coded theme or plugin installed on your site. Sometimes it can happen if there is an issue with your web hosting server. Since the white screen error can be caused by any number of things, it requires methodical #troubleshooting to fix.
To fix WordPress White Screen of Death:
1. Disable Your WordPress Plugins.
2. Switch to a Default WordPress Theme.
3. Clear Browser and #WordPress #Plugin Cache.
4. Switch on Debugging Mode.
5. Increase Your #Memory Limit.
6. Check File Permission Issues.
7. Check for Failed Auto-Update Issues.
8. Resolve #Syntax #Errors or Restore a #Backup.