How to fix WordPress White Screen of Death
In the article, WP Editor will guide you through fixing the WordPress white screen of death. As many are aware, the WordPress white screen of death is one in prime occurring WordPress errors. It’s additionally one of the most frustrating issues as there’s no error message, and you’re locked out of WordPress.
Another drawback with the white screen of death error is that typically it solely affects an explicit a part of your web site.
For example, you’ll see the white screen of death within the WordPress admin space, whereas everything else merely works fine. In different cases, you’ll see it on a particular post, whereas everything else works fine.
In this article, we will show you how to fix the WordPress white screen of death by looking at different solutions.
Please note: Before you create any changes to your web site, confirm that you have a backup of your WordPress web site. If you don’t have access to the admin space, then cross-check we orientate a way to produce WordPress info backup manually.
Why does one See the White Screen of Death in WordPress?
Most of the time, once you see a white screen of death, it implies that a script on your web site has exhausted the memory limit.
This unresponsive script either gets killed by your WordPress hosting server or it merely times out. This can be why no actual error message is generated, and you’ll only see a white screen.
This error usually happens thanks to a poorly coded theme, or typically a plugin you have on your web site. On the other hand, it will happen if there’s a difficulty together with your internet hosting server.
Since the white screen error may be caused by a vast of things, it may require methodical troubleshooting to repair the problem.
Does the matter occur on your different sites?
If you have got different WordPress sites installed on the same hosting account, then start by checking if the problem is happening on additional sites also.
If it is, then that’s a sturdy indicator that one thing is wrong together with your WordPress hosting service. This might be a brief issue with their service, and you would need to contact their support services.
Altenativly, if the problem is only occurring with one website or a particular a part of that site, then you know that the matter is one that site.
Using WordPress Recovery Mode to repair White Screen Error
If a WordPress plugin or theme causes the white screen of death error, then WordPress may positively be able to catch it.
The new fatal error protection feature introduced in WordPress will typically show a slip-up. During this error, even the white screen isn’t displayed. Instead, a message is going to be displayed relating to the technical difficulties the location is facing.
You should receive an email message to your admin email address with the topic ‘Your web site has a Technical Issue’.
This email message can signify the plugin inflicting the matter, and it’ll additionally contain a special link. This link can log you in to the WordPress recovery mode and deactivate the faulty plugin.
However, if you still see the plain white screen of death with no email or recovery mode possibility, then you must attempt to fix the error manually.
Increasing the Memory Limit
Usually, this issue happens as a result of a script being exhausted the memory and will quit within the middle. To repair this, you would like to extend PHP memory in WordPress. This will allow the script to use additional memory to end the job it was supposed to do.
Disabling All Plugins
If increasing the memory limit didn’t solve the matter, or if you have got a high memory limit like, then you may have to start troubleshooting.
When troubleshooting this issue, we continuously found that the problem is either with a particular plugin or theme. So the best way is to disable all the plugins.
If you’re still able to access the WordPress admin space, then you’ll be able to move to Plugins » put in the Plugins page merely. Choose all the put in plugins then choose ‘Deactivate’ underneath ‘Bulk Actions’ drop-down.
However, if you don’t have access to the WordPress admin space, then you may deactivate all plugins via FTP.
First, connect with your WordPress via an FTP Client. Once connected, go to the wp-content folder where you will see the ‘plugins’ folder.
Now, right-click on the plugins folder then choose to rename. You’ll be able to rename the plugins folder to plugins deactivated.
Your FTP will now rename the folder.
WordPress will then look 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 until you find the plugin causing the issue, you can delete it or replace it with an alternative or report the issue to plugin authors.
Replace Theme with a Default Theme
If the trouble shooting does not fix the issue, then you should look at replacing your current theme with a default theme.
To begin with, connect an FTP purchaser and visit /wp-content/themes/ folder. This contains all installed themes on your website.
Right-click to select your current WordPress theme and download a copy to your computer as a backup.
you will then need to delete your current theme from your website. Again right-click on your theme folder and select ‘Delete’. Your FTP client will now delete the theme from your website.
Then if you have a default WordPress theme like Twenty Eighteen or Twenty Nineteen installed on your website, then your WordPress will automatically start using it as the default theme.
If this fixes the issue, then look at the theme’s functions.php file. If there are extra spaces at the bottom of the file, then you need to delete these, 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.
Its always worth downloading a fresh copy of your theme from its source and then installing it again.
Enable Debug Mode to Catch Errors in WordPress
If nothing has worked 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 found.
Simply, add the following code into your wp-config.php file.
define( ‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
Once you add this code, then the blank screen will now have errors, warnings, and notices. These may help you determine the cause of this error.
If you don’t see any errors, you may want to check the debug log. Simply visit the wp-content folder on your website using an FTP client.
You will find a new debug.log file containing a log of all errors, notices, and warnings.
Clear WordPress Cache
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 clear the Cache
We hope you have found this guide helpful. If you liked this article, then please comment on what other WordPress problems you would like us to write about.
Remember to subscribe to WP Editor for more of the latest WordPress information. Also remember to like us on Facebook.