If you are a WordPress user, then you might have come across the annoying ‘white screen of death’ at least once. This is an oft faced error that can occur due to different causes.
This ‘white screen of death’ can be quite irritating as it locks you out of the admin panel and since there is no error output in most cases, it becomes difficult to understand the issue behind it.
Another issue that many people have faced is that the white screen error sometimes affects only a part of your sites like the admin page and everything else would be working perfectly well.
To be honest, there is little information about the reason behind the occurrence of a white screen. Some of the most probable reasons can be the fatal errors, undefined functions or a compatibility issue between the plug-ins.
This is a very annoying error like the other errors such as the error establishing the database connection.
Let’s delve a little deeper into how the ‘white screen of death’ can be fixed:
CHECK YOUR MEMORY LIMIT
One reason for the occurrence of the white screen could be the exhaustion of memory. This can be fixed easily. Connect to the FTP server using your credentials and on getting in find the public_html folder from your WordPress installs.
Click on it and then look for wp-config.php file. Open the View/Edit option by right-clicking on the file and choose your editor. It can be default editor or a custom one.
After choosing it, open the file and add define (‘WP_MEMORY_LIMIT’, ‘64M’) within the main PHP tags. Save and then close it.
Remember not to make any other changes in the wp-config.php file or else you’ll get an even more broken site. Just follow the steps mentioned above and you may get going!
CHECK YOUR PLUGINS
Since there are a lot of plugins on WordPress, you are likely to run into an error related to any one of them at some time or the other! In this case, first, check whether the issue is actually with the plugins or not. To do that, first, disable all your plugins.
Go to the public_html folder and find wp_content folder in it. Click on the plug-in option inside and rename it so as to trick WordPress.
Once that is done, check if the site is working or not.
If it is working, it means the plugins are working fine and you can change their name back to ‘plugins’. If not, then there is an issue with the plugins.
In this case, you can delete the plugin and look for an alternative. If that’s not possible, firstly check if you have the updated version of plugin or not.
If you don’t have one, get the updated version and install it with the help of FTP manager and check if your site is now working. If it still doesn’t work, contact the support system.
CHECK YOUR THEME
If the PHP memory and plugins are fine, check your theme for any problem. For this, you’ll have to rule out the themes just like the plug-ins.
Go to the public_html folder, find the wp_content folder in it and then find the ‘themes’ option. Rename the folder and then WordPress will set a default theme for your site.
Once it is done, check if the white screen still persists. If yes, then there must be a compatibility issue between your theme and the version of WordPress that you’re using. If the white screen still persists, you will have to scout for another probable reason for the same.
CHECK YOUR LOGS
In this case, WordPress debug mode will help you look at detailed error logs to find out the error. For this, open the public_html option and click on ‘contents’. Then open the wp-confid.php file again and enter the following codes in the PHP tags:
define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false);
These tags will enable the debug mode, save the debug output and make sure that no further errors are displayed on your website. This is to ensure that the visitors do not get a hint of all this while you’re checking the error logs.
Looking at the error code, you’ll be able to figure out the reason behind the occurrence of the ‘white screen of death‘ on WordPress.
The error will be displayed in a coded form but it will be easy to comprehend. Once you have ascertained the real culprit of the white screen, you can switch off the debug mode.
If none of the above points work, you might have to install an updated version of WordPress. This is because the existing version might have gotten corrupted and it might be attracting errors and other variances.
So reinstalling the latest version of WordPress might actually work!
The white screen error is surely irritating but it can be easily fixed. When you encounter a white screen of death on your WordPress site, don’t panic.
The reasons may be unknown but you can trust the above-mentioned pointers to help you in the troubleshooting process!