The WordPress White Screen Error (also known as WSoD) is one of the platform’s most burdensome errors. This error can be caused by more than one reason, and since it gives you very little information, it can make it a bit difficult, if not impossible, to solve.
The best start to solving this error is to put together the most likely causes first. Fortunately, the WordPress community is quite large so you can find the cause (and how to fix it) all common errors and problems. This means fixing the WordPress white screen error is definitely possible.
In this guide, we’ll explain what this error is and dwell a little bit on what the main causes are. Next, we will show you six different methods to fix the WordPress white screen error. Let’s get started as soon as possible!
WordPress white screen error and what is its cause
Sometimes, when you try to log into your WordPress website or admin panel, you will see a completely white screen. Usually, when you run into a problem, it will show you an error code to hint at a solution. The 503 and 504 web error errors are examples of these.
Since we can’t get clues in the white screen situation, the problem becomes a bit more difficult than solving other WordPress errors. In addition, sometimes a white screen error can occur on only some pages instead of your entire website. This means that you may not be able to access your homepage, but the admin panel may still be running (or vice versa). This makes things a little more complicated.
However, in our experience, when an error occurs, it is due to one of the following:
Compatibility error in one of your theme or plugins. One of your plugins or themes may not be compatible with the others. In some cases, WordPress core update can also cause a white screen error due to compatibility.
The default memory limit on your host is low. Each WordPress installation has a certain amount of memory that scripts can use when running. If this amount is not high enough on your server, you may encounter errors such as white screen.
It can be a bit tedious to narrow down WordPress compatibility errors. Most websites use more than one plugin, and it is necessary to check these plugins one by one to find the problem. If the problem is not with these plugins, you can move on to other possibilities.
6 Ways to Solve the White Screen of Death in WordPress
We have listed the methods, starting with the easy to apply, in terms of convenience. We will explain every new term we encounter during this process, so even if you are new to WordPress, you will be able to easily overcome it.
1- Disable All Your Add-ons
WordPress plugins allow you to increase the functionality of the platform by adding certain features. It is one of the most popular features of WordPress and many sites use more than one plugin at the same time.
If we assume plugins are the cause of the white screen error, the easiest way to prove this is to disable all plugins simultaneously. Since you do not have access to your website, you will need to use File Transfer Protocol (FTP), which allows you to access your site through a program and transfer files.
We’ll show you how to use this right away, but for now, log into your 000Webhost account and open the Settings> General screen. At the top of the page you will see your FTP login information:
To access your website using the FTP program, you will need the Server name, Username and Password information. If you don’t have the program, we recommend that you use the open source FileZilla. After downloading and installing the program, find the Server, Username, Password sections under the toolbar.
Enter the required login information in the relevant boxes and then click the Quick Connect button. The program will connect to your server and when this happens, the folders will appear in the right-hand panel:
If you are confused, the files on the left are the ones on your computer and the ones on the right are shown on your server, you can transfer files by sliding the files between the two. For now, find the public_html folder on your server. This directory is also known as the WordPress root folder and contains all the files and folders that make the platform work.
Once I enter the folder, you have to follow the instructions below to disable all add-ons:
1-Open the public_html folder.
Find and open the
2-wp-content directory. Find the
3-plugins folder, right-click it and click Rename.
4-Change the name of your folder so you can remember it easily, for example plugins-disabled.
Right-click anywhere inside the 5-wp-content folder and click Create Folder.
6-Change the name of the new directory to plugins.
At this point, you should have two different folders: plugins-disabled and plugins. All plugins of your site must be in the old folder and the new folder must be empty. WordPress will automatically recognize the plugins folder and all plugins will be disabled because it is empty. Now try to enter your site normally. If the error persists, this indicates that the problem is caused by something else.
However, if the problem is fixed, it becomes clear that the problem is with the plugins. So go back to the wp-content folder and delete the empty plugins folder. Then change the name of the plugins-disabled folder to plugins as before. Within this folder, there will be subdirectories for each of your plugins:
Now change the name of these folders one by one so that they are disabled in WordPress. After disabling each folder, try to enter your site again. If the problem continues, return to the folder and change the name you changed to its original and move to another folder.
Continue this process until you find the plugin that is causing the error. When you find it, delete the error-popping folder completely and your site will be fixed. If the plugin that is causing you trouble is of vital importance to you, we recommend you contact the developer. You may need to find a new plugin though, like an updated option and loved by the WordPress community.
2.Disable the Active WordPress Theme
If plugins aren’t the source of the problem, your active theme will become our prime suspect. Fortunately, disabling your theme is done in a similar way, but it’s a smoother process than the last method. Open your FTP program again and open the directory public_html> wp-content. Find themes folder in it and follow the instructions below:
Open themes folder.
Find the folder with the same name as your active theme. For example, if you are using the Twenty Seventeen theme, the folder name will be twentyseventeen.
Replace the folder name of your active theme with something you can easily remember, eg twentyseventeen-disabled.
Renaming a folder works on a similar principle as we disable it in plugins. Now try not to enter your WordPress site again. If the white screen error is fixed, it means your theme is the source of the problem.
On the other hand, since you have disabled your theme, WordPress will apply the other default theme if it is installed. To restore it to its previous state, you have to test by downloading the latest version of your theme again. Again, as with plugins, we recommend that you contact the developer and look for a potential alternative.
3. Editing Your WordPress Site’s Memory Limit
Each plugin you install on your WordPRess site runs its own scripts. These files are full of code to perform specific tasks. It uses up some of your server’s memory every time it runs. WordPress limits the amount of memory these files can use to prevent scripts from slowing down your site. While this is a good thing in theory, some scripts may need more memory than your installation requires. When this happens, you will encounter various WordPress errors such as the white screen error.
In this case, the solution to the problem is simple – all you have to do is tell WordPress that your plugins or custom scripts can use a little more memory. To do this you need to use FTP, now reconnect to your server and follow the instructions below:
Open the WordPress root folder.
Find the wp-config.php file
Right click on it and click View / Edit, the text editing tool will appear.
Scroll to the bottom of the file and That’s all, stop editing! Reach the Happy blogging (or Turkish equivalent, that’s all, editing is enough! Happy blogs) line.
At this point, place the following line of code one line above the line we mentioned above:
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
This line tells WordPress that your scripts can use up to 256MB of memory, and that amount is slightly more than most of them can. In this way, you can prevent future WordPress white screen error.
As always, try to go to your website for the white screen error test. If the error is not fixed, let’s move on to our next method.
4.Clearing Site Cache
Most modern websites allow browsers to save some files locally, thus reducing load times considerably. This is a common and important tactic in terms of page loading speed and is known as browser caching. However, although many people achieve this using WordPress caching plugins, the cache can cause some errors as the saved files get older.
This method is probably the easiest method if you have access to the admin panel and settings of the caching plugins. In our example, we will use the W3 Total Cache plugin since it is very popular in WordPress.
Click on the Empty Cache button, and then check if your website is working. If it works, then the problem is solved!
On the other hand, you may have lost access to your admin panel. In addition, you can check if you have any server based caching tool by contacting your web host service. If there are any, ask them to clean these files and open your site to see if the problem has been resolved.
5.Enable WordPress Debug Feature
WordPress offers many features to make your life easier. For example, there are some features to be able to identify errors more efficiently. However, this feature is disabled by default because it is often used by developers.
To activate, you need to access your website via FTP. Then follow similar instructions below:
Open the public_html folder.
Locate the wp-config.php file and right click and select View / Edit.
“That’s all, stop editing! Happy blogging ”means“ That’s all, editing is enough! Find the “Happy blogs” line.
As you may remember, we previously increased the WordPress memory limit a little by adding a line of code just above this line. You will now add another piece of code between these two lines:
With this code, whenever WordPress encounters an error, it logs it. Save these changes and try to access your website again. You will see the white screen again, but this time the WordPress debug feature will be activated and will record the error.
To access these records, use FTP to access public_html> wp-content content and find the debug.log file. Open this file using the View / Edit option and scroll down to the bottom to see the last error recorded:
It can be a bit of a challenge to make sense of log files, but you should note that the last file WordPress tried to open is the origin of the error and the line of code that triggered it. If you can define these two things, you can find the file via FTP. If it’s a plugin, theme or custom script, you can easily remove it.
On the other hand, if you can’t make sense of the log file or if you’re not comfortable tampering with WordPress core files, contact your hosting company’s support team. Since you have a log file to show them, the process of detecting the error will be faster.
6.Restore Your Website Using a Backup
If all else fails, you have one more card to play with, which is to restore your website using the backup your hosting company received. Note that not all hosting providers back up your website, but most premium providers offer this service. For example, Hostinger provides the opportunity to create and download a backup of your site with its control panel.
Platform, aşağıda gördüğünüz gibi otomatik olarak WordPress sitenizin ve veritabanının yedeklerini oluşturur:
If you have the necessary backup files, you can restore your website before the white screen problem. To do this, open the Upload Website section from your Hostinger dashboard:
Once opened, upload the backup files using your hosting company’s simple interface and sit back while your site is restored. This feature is unfortunately not available on free hosting accounts, so you may want to upgrade your hosting plan accordingly.
What to do if the white screen error still persists?
By now, you should be an expert at WordPress error detection. If none of the steps above have worked to fix your website, don’t give up just yet. Thanks to these steps, you have at least determined that many possibilities are not the source of the problem.
As the next step, you can contact the support team of your hosting company to help them solve the problem. Tell them that you encountered the WordPress white screen error and on which pages it is experiencing this issue.
Also, don’t forget to mention the methods you’ve tried to solve the problem. In this way, the support person can better know where to start and solve the problem much faster.
The WordPress white screen error sounds scary, but it’s not something you can’t fix yourself. At worst, it will take you a few hours to pinpoint the source of the problem. However, you will likely be able to restore your website in much less time than that. Plus, once you deal with the WordPress white screen error, no other errors can scare you!
Let’s summarize the six methods that can be applied to fix the WordPress white screen error:
Disable your plugins to fix the problem.
Disable the active WordPress theme.
Increase the memory limit of your WordPress site.
Clear your website’s cache.
Enable WordPress debug feature.
If none of them work, restore the backup of your website.
If you have any questions about the WordPress white screen error, you can share it with us in the comments section below!