How To Fix White Screen Of Death Error In WordPress
- Last Updated: Apr 6th, 2019
- Posted by: admin
- Category: WordPress Support
Have you ever encountered a White Screen Of Death Error while using WordPress? What’s more frustrating than a white plain screen without showing any message! However, most WordPress users have faced this error at least once. But the good thing is that WordPress white screen of death error is relatively simple to fix.
White screen of death is one of the most common WordPress errors which you can face using WordPress because it locks you out of your admin panel. Sometimes it affects a certain part of your site while the other part of the site works perfectly fine.
As the name suggests, White screen of death – While you are trying to access your site but it convert with a plain white screen. There are numerous causes for occurring this error such as: plugins & themes which can contain incorrect code, due to the lack of memory or issues related to your hosting server and much more.
More so by reading this article, you will be able to find some more causes and possible solutions to fix this error.
Before going further, first, let’s read that what is the cause of this error to get more information.
Causes Of White Screen Of Death Error
- Memory Exhaustion
- Poorly Coded Theme
- Issues with web hosting server
- Your Theme may be causing the problem
- Theme directory may be missing or renamed
- Due to some plugin that may not be working properly
With the basic terms, let’s get the possible solution of how to fix this white screen of death error –
Possible Solution To Fix White Screen of Death Error In WordPress
By Enhancing Memory Limit
Exhaustion of memory is one of the main causes of this issue. So in order to resolve this type of error try to increase PHP memory in WordPress.
Disabling All The Plugins
After logging to your WordPress dashboard go to plugins menu and then tap on installed plugins. After that, a list of the plugins will appear. Here you can check the number of the installed plugins and their statuses. Each plugin which is active has deactivated button beneath. Tap on it and the plugin will be turned off.
Replacing The Theme With A Default Theme
Then at that point erasing the theme. WordPress will consequently fall back to the default theme. Then again, you can go in your phpMyAdmin and refresh the database tables in the wp_options table.
The accompanying table names would need to be refreshed: Stylesheet, current theme, and template.
If this fixes the issue, then you should look at your theme’s functions.php file. If you find any extra spaces at the bottom, then you should try fixing it.
Enable WordPress’ Debug Mode
We all are aware that WordPress provides numerous features to troubleshoot the error. It also contains the functionality that you can use to resolve the error quickly.
However, this – ‘Enable WordPress Debug Mode’ feature is disabled by default, and mainly used by the developers.
To enable it, you will have to access your WordPress site via FTP. Then follow the instruction provided below:
- Access your public_html folder.
- Check the wp-config.php file, right-click on it, and select the View/Edit option.
- Thereafter find the line that says – That’s all, stop editing! Happy blogging.
As you might remember, a while ago by adding an extra line of code just above the Happy blogging message we increased the WordPress memory limit.
Now add a second code snippet in between those two:
|define( ‘WP_DEBUG’, true );|
Now save changes and try to access your site again. Now you will see the WSOD error, but this will activate WordPress debug mode and the error.
More so, to access your logs, you have to go to public_html > wp-content through FTP client and look for the debug.log file.
Now open it by View/Edit option and see at the bottom of the file to check the last error it logged:
To understand the log can be a bit tricky task, but here’s you have to pay attention – Last WordPress file that tried to open when the error popped up and code line that triggers it.
If you can determine those two things, then you should be able to find the file through FTP. If it is a theme, plugin, or a custom script, you can remove it.
In case, any of the above ways can’t resolve the problem, then you should try to install a fresh copy of WordPress. However, it is unlikely, but always it is possible that a core file may have been corrupted.
Still, if you are suffering from the White Screen of Death error, then your next step is – you should be to contact the web hosting support service or hire a WordPress expert by dialing WordPress Help Number +1-844-275-0975 (Toll-Free).