WordPress white screen is a very most common issue. It’s very most frustrating errors because there is no any error message on the screen.
White screen issue can also happen due to a poorly coded theme, poorly coded customization in the plugins, or any third party plugin installed on your site which are not maintain coding standard. Sometimes it can happen if there is an issue with your web hosting server.
You should have to follow below steps for resolving white screen issue.
Increasing the Memory Limit
Disabling All Plugins
Replace Theme with a Default Theme
Enable Debug Mode to Catch Errors in WordPress
Clear WordPress Cache
Fixing Longer Articles
Increasing the Memory Limit
Generally, this type of error happens because a script are exhausted the memory and not perform till end and quit in the middle. To fix this, you should have to increase PHP memory available to WordPress.
Disabling All Plugins
After increasing PHP memory and still not resolve your issue, you have to disabling all plugins from the admin panel.
As per my experience of troubleshooting for this issue, I always found that the issue is either with a specific plugin or a theme.
You can review how to de-active all plugins from my previous blog.
Replace Theme with a Default Theme
After disabled all the plugins and still you are facing this issue, then you should have to activate default WordPress theme. If you have removed default theme you have to upload default WordPress theme (Twenty Eighteen or Twenty Nineteen) and active default theme.
Once you active default theme and your issue has been fixed, then you should check functions.php file in your theme. 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 not following WordPress standard coding method in your theme’s function.php file, then it can cause the white screen issue for your WordPress site.
Tips:
Don’t remove WordPress default theme (Twenty Eighteen or Twenty Nineteen). If you are using same theme then copy default theme and make all changes in new theme.
Enable Debug Mode to Catch Errors in WordPress
After selected WordPress default theme and still issue is going on, you should have to enable debugging mode. This will help you what type of errors coming on the screen.
For enable debugging mode connect your ftp or cPanel. Click on fila manager and open wp-config file in edit mode.
Add below code in your wp-config file.
define( ‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
Once you add above two lines the blank screen will display some errors, warning or notice. These may be helping you addressing errors and solutions.
Still if you don’t see any errors on the screen, you have to check the debug log on your server. For checking debug log connect ftp or cPanle, open file manager. Once you open file manager, you will see debug.log on the root folder. Open that file in any editor and review errors, warning and notices.
Clear WordPress Cache
Many times you can access the backend, but white screen display only front end. This can happened due to of caching plugin. You should have to clear your cache using caching plugin.
Fixing Longer Articles
If white screen issue only facing any long post or any page then this trick will help you. For this issue, you have to increase PHP text processing capability by increasing the recursion and back track limit. You have to add below code in your wp-config.php file.
/** Add two lines for long post */
ini_set(‘pcre.recursion_limit’,20000000);
ini_set(‘pcre.backtrack_limit’,10000000);