How to Fix The WordPress White Screen of Death
Are you a beginner on WordPress? Do you have faced “WordPress White Screen of Death Error”?
White screen error? Yes, if you see a white screen page having nothing, is called white screen error. It is one of the most common errors in WordPress. Otherwise, it is one of the most confusing errors because it doesn’t show the error message, and you are locked out of WordPress.
Sometimes you may notice that the error occurs inside the WordPress admin area, while everything works fine. On the other hand, while everything else works fine, you may see the error on a specific post.
In this website, we discuss all of the issues which may be your crying need in your blogging life.
In this article, we will discuss how to fix the WordPress white screen of death.
Why Do You See the White Screen of Death in WordPress?
The most common reason for it is on your website exhausted the memory limit. Most of the time, the error occurs for exhausted the memory limit.
The unresponsive script is another cause of the error and is the cause of time out. This is why it can not generate an error message and shows a plain white screen. Poorly coded theme and corrupted plugins are also responsible for the error. When there is an issue with your web hosting server, it may occur.
Fixing the White Screen of Death with WordPress Recovery Mode
Now WordPress 5.2 is an updated version. Sometimes it catches the error and, so no showing white screen shows a message that the site is having technical difficulties.
You may also get an email message on your admin email address with the subject ‘ Your Site is Having a Technical Issue’.
This message will indicate the plugin which plugin is responsible for the error. There is a link in the message and this link will allow you to log in the WordPress recovery mode and deactivate the corrupted plugin.
However, if you don’t have an email or recovery mode option and see the white screen of death, you need to fix the error manually.
Increasing the Memory Limit
Usually, the memory limit is the major reason for the error. When a script exhausts the memory, at this time the error happens lack of memory. To this error, you have to increase the PHP memory available to WordPress.
To increase the PHP memory limit visit ‘How to increase PHP memory in WordPress.’
Disabling All Plugin
After increasing the PHP memory limit too, if you see the error on your site, then you may check your plugin and themes what if they have any trouble.
To check the plugin installed on your site, you need to deactivate all the plugin. After that, activate all plugin one after another. Activating one plugin, refresh your site to check whether the problem is solved. If it is fixed, you have to delete the plugin. Else continue to do the same.
How to deactivate the plugins?
To deactivate the installed plugin, you need to go on admin panel and then Plugins => Installed Plugins. Which plugin you need to deactivate, you will see the deactivate option just beneath the plugin. Clicking on it, you can deactivate the plugin.
However, you are trying to access to admin area but can’t. Then you need to deactivate all plugins using an FTP client.
To do this, first of all, you have to connect it to your WordPress site. Connecting it, go to the wp-content folder where you will see the ‘plugins’ folder. To deactivate all plugin you need to rename the folder. After doing it, all plugin will be deactivated.
After doing it, refresh your site to check whether this fixed the problem. If this fixed the problem, then enable one plugin at a time to get to the bottom of the error. Finding the plugin which is the main culprit for the issue, you can replace it with an alternative.
Replace the Theme with a Default Theme
If the plugin troubleshooting doesn’t fix the error, then you should replace your current theme with a default theme.
To do this, you need to connect an FTP client to your website, then go to the wp-content/themes/folder. It contains all installed themes on your website.
Download your current theme to your computer as a backup. Then, delete your current theme from your website.
If you have a default theme like (Twenty Eighteen or Twenty Nineteen) on your website, then WordPress will automatically start using it as the default theme.
If this fixes the error, then you need to check your theme’s functions.php file. You will go through the file try to find out any cause. If there are extra spaces at the bottom of the file, then you have to remove those. The extra spaces may be the cause of this issue.
Enable Debug Mode to Catch Errors in WordPress
When you will fail to solve the issue, the next step is to turn on debugging in WordPress. It Will help you to know what type of error is being occurred.
To do this, you need to add the following code into your wp-confige.php file.
define (‘WP_DEBUG’, true); define(‘WP_DEBUG’ , true);
After adding the code, you may see errors, warnings, and notices on the blank screen which will help you to determine the root cause. If you do not have any errors, then need to check the debug log. Visiting the wp-content folder on your website using FTP client. There is a new debug.log file containing a log of all errors, notices, warnings.
Clear WordPress Cache and fix the White Screen of Death
Sometimes, when you need to access the backend, you notice the white screen of death on the frontend of the site. It may be for a caching plugin. By clearing your cache, you may solve the problem.
Fixing Longer Article
When you see the error on the long post, you may realize that the error occurs for the very long post. By using this little trick, you can solve this problem.
To do this, you have to increase PHP’s text processing capability. You can do this by pasting the following code
ini_set (‘pcre . recursion_limit’ ,20000000); ini_set (‘pcre . backtrack_limit’ ,10000000);
Any kind of error may fall you in danger. As a newbie, any error is a deafening error to you. Our website (bhrubel.com) is abundant with such kind of error fixing tutorial. By seeing those, you may learn how to fix those errors.