Hello, we have compiled for you the white screen problem we encountered in the Wordpress infrastructure. Sometimes you may receive this error even though you have not done anything, new updates may cause this.
If you have been using WordPress for a long time, you must have encountered the white screen error at least once.
White screen error is a very annoying problem for WordPress users. You immediately try to fix the mistake, and when you can't figure it out, nervous stress begins.
The worst part about the white screen error is that it sometimes appears in certain areas of your site. (For example, everything on your site is working properly, but when you enter a post, you see a white screen error.)
WordPress users usually immediately submit a support request to their hosting companies as soon as they encounter a white screen error.
If you request support from your host when you encounter a white screen error, their response will be to answer your question with a question.
This series of questions will take at least 30-40 minutes. Why should you have to wait so long? If you read my article in detail without wasting any time, I am sure you will solve the white screen error problem in a shorter time.
Important: I strongly recommend that you make a backup of your site before following the steps below. If you do not know how to take a site backup, I explained in detail how to do the backup in my article titled WordPress Site Backup - Site Backup.
What are the Main Causes of White Screen Error?
The reason you get a white screen error may be that you have exceeded the memory limit, a plugin you are using is not working properly, you are using a poorly coded theme, or there is a problem with the hosting service.
There may be other situations that will cause a white screen error, but most white screen errors occur for these reasons.
Learning the Reason Why You're Getting a White Screen Error
When you encounter a white screen error on your screen, the first thing you need to do is add the code I gave below to your wp-config.php page.
error_reporting(E_ALL); ini_set('display_errors', 1);
define( 'WP_DEBUG', true);
When you add this code to your wp-config.php page, try logging in to your site again. This time, WordPress will show the reason for the white screen error as a warning at the top of the screen.
Naturally, it is necessary to first diagnose and then start treatment. After learning what causes the white screen error, we can now start looking for a solution.
If the white screen error only occurs in a long post, you should clear the cache. Add the following code to your wp-config.php page. This code will empty the cache.
/** long text white screen error */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);
Increasing the Memory Limit
White screen error may be caused by insufficient memory limit. In my article titled How to Increase Memory Limit – WordPress, I explained in detail how to increase the memory limit.
Disabling All Plugins
The white screen error may be caused by the malware of one or more plugins or by the incompatibility of these plugins with your theme.
Finding out which plugin is causing this problem is a long and tiring task, especially if you use a lot of plugins and cannot access the admin panel due to a white screen error.
So how do you disable a plugin without access to the admin panel? You can apply the method below or apply other methods by learning from my article titled How to Disable Plugins Without Admin Panel.
First of all, all you need to do is connect to the server of your WordPress site via FTP and then all you have to do is change the name of your wp-content/plugins file.
After connecting to your site server via FTP, go to your Wp-content >> Plugins file. Rename the plugins file by adding the number "2" to the end of its name. So rename our plugins file to plugins2. Now you can access the admin panel of your WordPress site. Go back to your WordPress site and log in from your admin panel.
After logging in, many errors will appear on your screen. Like “A plugin was deactivated because the file B.php can't be found”. Don't worry, you haven't lost any data. By doing this, we have just disabled all plugins.
Now go back to your wp-content/plugins2 file and remove the number “2” at the end of your plugins2 file, that is, rename your file plugins.
Thus, if the white screen error is caused by any plugin, the white screen error will disappear, your wp-admin panel will be accessible and all your plugins will appear disabled on the Admin panel >> Plugins page.
Activate all plugins one by one and check again after activating each plugin to see if a white screen error occurs. Until I found the plugin that was causing the problem.
Change Your Theme to Default Theme To change
If the plugin disabling method did not solve your white screen error problem, replace the theme you are using with the theme that WordPress assigns as default.
You can do this in the same way as I explained above, by connecting to your site's server via FTP and adding the number "2" to the end of the name of the theme file you use under the wp-content >> themes file, or by deleting the file entirely. As a result of this name change or deletion process, WordPress will directly assign the default theme to your site.