A plain white screen with no error message, now you know where the error got its name White Screen of Death from.
The main cause of the error:
Identify when the problem occurs, does the problem affect
In WordPress 5.2 a new fatal error protection feature was introduced.
It can sometimes catch the error mainly when the error is caused by a plugin or theme.
Instead of a white screen, you will see a message that the site is having technical difficulties also an email message on your admin email address with the subject ‘Your Site is Having a Technical Issue’.
From the email, you will get details like plugin causing the error and a link to access WordPress recovery mode and deactivate the faulty plugin.
Step 1:
Empty the Browser Cache.
Reload the website and check whether the issue is fixed
Step 2:
Think what changes you have made to the website.
check any of this action can cause the error.
Step 3:
Test WordPress Theme
1. Check if there is an error message related to the theme. if yes, upload those files through your SFTP.
2. rename the theme to something other than its original name. This will effectively disable your theme. if the theme was the issue wp-admin access will be regained.
solution:
Step 4:
Test the WordPress Plugins
Maybe the reason for the error is a faulty plugin. a new one you just installed or updated.
If you should find that one of your WordPress plugins caused the issue, then you need to decide which of these three actions to take:
Step 5:
Review Other WordPress Integrations like CDNs and SSL certificates
Step 6:
Restore Recently Updated File to Original State (download the latest version of wp and replace files)
Step 1:
1. Login to your site via FTP or SSH, take a look at your root directory and see if there is a .htaccess file there.
2. if file exists, add or modify the following code.
php_value memory_limit 128M
Step 2:
Increase PHP Memory Limit in php.ini File
1. login to your site via FTP or SSH, take a look at your root directory and see if there is a php.ini file there.
2. if file exists, add or modify the following code.
memory_limit = 128M
Step 3:
Location: The wp-config.php file is usually located in the root folder of your website with other folders like wp-content, wp-admin, wp-includes etc.
1. Use an FTP client or file manager in your web hosting control panel to access the wp-config.php file.
2.You need to paste this code in the wp-config.php file.
define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress to increase the PHP memory limit to 256MB.
3. Save your changes and upload your wp-config.php file back to your server.
Step 4: Special Case
Increase 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);
Note: Make sure to take a copy of the files before you choose to alter.
Mistyping or wrong syntax while editing code can lead to the White screen of death error.
The solution is to is correcting the syntax error by connecting to site via SFTP.
If the reason for the issue cannot be found back up the site using the latest backup file.
Rarely File Permission issue, Permalink settings and Failed Auto-Update can also cause White Screen of death error.
White Screen of Death may look scary. But If you follow the steps You can solve with easily.