How to fix the white screen of death on WordPress – If you are a self-hosted WordPress user and when you access your site you can see only a blank white screen, it means that your site is experiencing an error known as “White Screen Of Death” (WSoD) or if you are a Windows user this is like experiencing a Blue screen .
White Screen of Death (WSoD) is an error or error in WordPress that occurs for several different causes. Errors without messages like this will certainly be very confusing, especially for those of you as a WordPress user who is experiencing this kind of thing for the first time.
In this article, I will provide solutions to fix the White Screen of Death Error on WordPress with several solutions that you can try one by one until you can resolve the error. Before we get into how to fix it, we should first know what causes this WSoD.
What Causes the White Screen of Death?
Although there is not the slightest bit of information displayed when WsoD occurs on your WordPress screen in a browser, many WordPress users on WordPress forums have come across a list of causes as follows:
- The memory limit is too low, and this is usually set by the hosting service you use.
- Your WordPress theme and plugins don’t work well or vice versa.
- The theme or plugin you are using is poorly coded, causing errors when WordPress is updated.
- Compatibility issues between plugins.
The four problems above are the most common problems that cause WSoD on your WordPress and here are the details to fix them.
Fixing WordPress white screen errors
This White Screen of Death error can occur to WordPress users with different errors. Some can still access the WordPress Admin page and some cannot access the admin page at all.
If you are experiencing this problem and cannot access your WordPress admin dashboard, you can use the help of a File Transfer Protocol (FTP) manager to enter your WordPress files or you can log in via cPanel.
1. Check the Memory Limit
When we talk about memory in WordPress, it usually refers to the PHP memory allocated to plugins or whatever files are used to run scripts. This is one of the most common mistakes you may encounter while using WordPress.
First, log in to the server containing your WordPress files via FTP and look for the public_html folder and find your WordPress website folder:
Search for files
wp-config.php, then right-click View / Edit. And add the following line in the main PHP tag:
define ( 'WP_MEMORY_LIMIT', '64M');
After you add the PHP tag as above, please save and access your site again and see if it is back to normal or still experiencing WSoD. If this has been done by you and the problem persists, please ask your hosting provider if they limit your memory.
2. Check your plugin
If you install too many WordPress plugins, sooner or later you will experience a WSoD error from one of the plugins you are using, because chances are that the plugin you are using did not get an update from the developer when WordPress made the latest update.
To check plugins all you need to do is deactivate all plugins at the same time. If you can still log into your WordPress dashboard, of course this will be very easy to do. You only need to go to the plugins menu and disable all plugins that you use. But if you can’t enter the dashboard area, please enter via FTP as in the first point and enter the plugins folder in the folder
wp-content. Rename the folder “
plugins“With another name, this way the plugin will automatically become inactive.
Once done, check your site if it is working. Even if WordPress is unable to load the plugins, you should be able to access your dashboard admin page without a problem if the WSoD source is from the plugin.
If the error has been resolved, it’s time to go back to your plugins folder and return the name of the plugins folder that you changed earlier and activate the plugins one by one and check your site every time you activate a plugin, this is to find out which plugins cause your site to experience WSoD. .
If one of your plugins turns out to be the source of the WSoD error, you should immediately delete the plugin and look for an alternative plugin with the same functionality.
3. Check the Theme
If your WSoD problem is not caused by PHP memory limits or plug-in compatibility issues, now check the theme you are using.
In this case you will need to follow the same process as when deactivating the plugin, which means force deactivating the theme using FTP. Find a folder
wp-content and find the theme folder inside:
Find your active theme folder and change its name. Doing this force will deactivate the WordPress theme you are using and your WordPress site will automatically use the newest default theme, Twenty Sixteen. If you previously deleted a default WordPress theme, you will need to download the theme and extract the theme folder, and upload the folder via FTP to the themes directory:
Once that’s done, access your site and see if the WSoD error is still getting you. If that goes away, the issue may be a compatibility error between your theme and the latest version of WordPress.
4. Check Logs
If there is an error in WordPress even though it is not visible, you can view the error log in detail, this will help you determine the source of the error. To do so, go back into your WordPress folder via FTP and return to the content folder, which is located at public_html. Then, open the file
wp-config.php and add the following line of code in the main PHP tag:
define ( 'WP_DEBUG', true); define ( 'WP_DEBUG_LOG', true); define ( 'WP_DEBUG_DISPLAY', false);
The first line of code to enable debug mode, the second line instructs WordPress to save the debug output in the debug.log file which will be created in the same directory as
wp-config.php, and the final line of the code above to display the errors found on your site. So you can find the source of the error and fix it immediately.
Above are some of the causes and ways to fix the WordPress White Screen of Death error and solutions to fix it. Hopefully the methods above can help you and I hope this article is useful for you. 🙂