How to fix WordPress white screen of death (step by step)

admin
admin
17 Min Read
white-screen

One of the most common WordPress errors is the WordPress white screen of death. This is also one of the most frustrating, as there is no error message, and WordPress is stuck. Another problem with the white screen of death error is that sometimes it only affects part of your website.

fix-blank-white-screen-in-wordpress

For example, you might only see the white screen of death inside the WordPress admin area while everything else is working fine, in other cases you can only see it on a specific item, while everything else is working fine.

In this article, we’ll show you how to fix WordPress’s white screen of death by looking at different solutions.

Note: Before making any changes to your site, make sure you have a backup copy of your WordPress site. If you don’t have access to the admin area, check out our guide on creating a WordPress database backup.

Why are you seeing the white screen of death in WordPress?

The majority of the time you see a white screen of death, which means that a script on your website has used up the memory limit.

The unresponsive script is either killed by your WordPress hosting server or simply times out. This is why no error message is generated and a white screen appears.

This error can also occur due to a badly coded theme or plugin installed on your site. Sometimes this can happen if there is a problem with your web hosting server.

Since the white screen error can be caused by a number of factors, methodical troubleshooting is required to resolve it.

Is the problem occurring on your other sites?

If you have other WordPress sites installed on the same hosting account, the first step is to check if the problem is also occurring on other sites.

If so, this is a clear indication that something is wrong with your WordPress hosting service. This could be a temporary issue affecting their service, and you should seek their support for help.

On the other hand, if the issue is only with a website or a specific part of that site, then you know that the issue is with that particular website.

Fix white screen error with WordPress recovery mode

If the white screen of death is caused by a WordPress plugin or theme, then WordPress may be able to detect it.

The new fatal error protection feature introduced in WordPress 5.2 can sometimes catch the error and you might not even see a white screen. Instead, you’ll see a message stating that the site is having technical difficulties.

You will also receive an e-mail message to your administrator’s e-mail address with the subject line “There is a technical problem with your site.”

white screen

This email message indicates which plugin is causing the error and will contain a special link as well. This link will allow you to log into WordPress recovery mode and deactivate the faulty plugin.

However, if you see the white screen of death with no email option and no recovery mode, you need to fix the error manually.

Increase memory limit

Usually, this error occurs because a script has exhausted memory and stopped in the middle. To resolve this issue, you need to increase the PHP memory available for WordPress. This will allow the script to use more memory to complete the job it was supposed to do.

Disable all plugins

If increasing the memory limit did not help or you have a high memory limit such as 256M or 512M, you should start troubleshooting.

In our experience of solving this problem, we have always found that it is a specific plugin or theme. Let’s go ahead and disable all the plugins.

If you can still access the WordPress admin area, you can just go to the Plugins »Installed Plugins page. Select all installed plugins, then select “Disable” from the “Global Actions” drop-down list.

However, if you do not have access to the WordPress admin area, you will need to deactivate all plugins via FTP.

Start by logging into your WordPress site using an FTP client. Once logged in, go to the wp-content folder where you will see the ‘plugins’ folder.

Now you need to right-click on the plugins folder and then select rename. You can rename the plugins folder to plugins-inactive.

Your FTP client will now rename the plugins folder.

WordPress looks for a folder named plugins to load all plugins. When it cannot find the folder, it simply deactivates all plugins.

If this fixes the problem, activate the plugins one by one. Once you find the plugin causing the problem, you can replace it with an alternative or report the problem to the plugin authors.

Replace the theme with a default theme

If troubleshooting the plugin doesn’t resolve the issue, try changing your current theme to a default theme.

First, connect to your website using an FTP client, then navigate to the / wp-content / themes / folder. It contains all the themes installed on your website.

Right-click to select your current WordPress theme and download it to your computer as a backup.

Then you need to remove your current theme from your website. Right-click on your themes folder and select “Remove”. Your FTP client will now remove the theme from your website.

Enable debugging mode to fix errors in WordPress

If nothing has helped so far, the next step is to enable debugging in WordPress. This will allow you to see what kind of errors are being generated. Just add the following code to your wp-config.php file.

define( ‘WP_DEBUG’, true); define( ‘WP_DEBUG_LOG’, true );

Once you add this, the white screen will now contain errors, warnings, and notices. These may be able to help you determine the root cause. If you don’t see any errors, you can still check the debug log. You just need to visit the wp-content folder on your website using an FTP client. There you will find a new debug.log file containing a log of all errors, notifications and warnings.

Clear WordPress cache

Sometimes you can have access to the backend, but the frontend of the site has the white screen of death. It can happen because of a cache plugin. Just clear your cache.

Secure longer articles

If you only have a white screen of death on a very long post or page, then this little trick might work. This trick fundamentally increases the word processing capacity of PHP by increasing the recursion and rollback limit. You can paste the following code into your wp-config.php file.

ini_set(‘pcre.recursion_limit’,20000000);

ini_set(‘pcre.backtrack_limit’,10000000);

We know that this error is very frustrating and we hope that one of the tips above will fix the problem.

A white screen in WordPress often occurs: after an update or other cause, your WordPress website is more accessible. Your WordPress website shows a white page and you cannot log in to your dashboard. So what?

fix-blank-white-screen-in-wordpress

What is the Blank white screen in WordPress?

It is actually literally what it says: it is a white screen, a blank white screen.

What can make this problem particularly frustrating is that in many, if not most, cases it will also deny access to the WordPress admin panel. Because the screen is blank and white, no error message or the like is displayed.

Anyone who has never had to deal with this, or who does not agree with what is described above, will probably never have experienced it, been lucky or always took the right measures. Make sure it stays that way?

What are the Causes and solutions for the blank white screen in WordPress?

There are several causes of a white screen in WordPress. I will list a few causes and give you the possible solution.

Preliminary investigation

Before making any changes, check to see if the problem occurs on other websites.

This way it can be ruled out whether it is, for example, specific to a certain domain.  If that is the case, the fault is most likely with the relevant internet service provider or web hosting service.

???? What is the Blank white screen in WordPress?

The blank white screen of death is a blank white screen. It is particularly frustrating that it often also refuses access to your admin environment. You also don’t see an error message.

❔ What causes a blank white screen?

Some possible causes of the white screen could be: exceeding your Memory Limit, problems with your WordPress plugins or themes, the cache.

✔️ What is the solution for a white screen of death?

The solution to the blank white screen is, it cannot be summarized in a few sentences. It depends a lot on the cause. Read our extensive tutorial for this.

A warning in advance

Note, this is important!

Make a backup before making any changes! A lot can go wrong, especially at this level.

1: Your website exceeds the (PHP) “Memory Limit”

Sometimes the PHP memory limit is exceeded by your website. You can solve this by increasing the “Memory Limit”. Exceeding this limit can have various causes,

for example, a theme or plugin that is poorly put together, or a badly configured hosting server. Also, contact your hosting party.

They can often look in the “logs” to see which plugin or theme is causing the problem.

To increase the limit one can add the following line in the configuration file “ wp-config.php ”. This requires an FTP ( File Transfer Protocol ) client or file manager in the control panel of your web hosting package.

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

In this way, the PHP memory limit is increased to 256MB.

After making the changes, if all goes well, the website should work again.

In some cases, web hosting services do not allow these things, such as memory limits, to be adjusted.

2: Plugins

If raising the “memory limit” didn’t fix the problem, check if one of the plugins on your website is the cause. You can find out by deactivating all WordPress plugins on your website.

Is your website working again after deactivating all plugins? Activate your plugins one by one and see which plugin goes wrong.

If your website still doesn’t work after deactivating all plugins, then it’s time to look further.

3: WordPress theme

Are you using an outdated WordPress theme or a theme that is poorly built? Many free WordPress themes (especially themes that are not in the repository on WordPress.org) are not reliable or are poorly constructed. That is why we work almost exclusively with premium themes such as Divi from Elegant Themes.

To find out if your theme is causing the problem, activate the default WordPress theme, Twenty Seventeen (or soon Twenty Nineteen). Can’t access your admin environment anymore? Then you can do this by logging in via FTP and going to the folder / wp-content / themes /.

Check if “Twenty Seventeen” is listed here and rename the folder of the theme that is currently active (for example from theme-name to theme-name-2 ). WordPress will now automatically “fall back” to a standard theme.

If deactivating your theme solves the problem, you can try looking in that theme’s functions.php file. Sometimes, for example, there are a few “spaces” or “enters” at the bottom of the functions file, or there is a badly coded function in the file.

Not technical enough? Then ask a developer to look at it or consider using a different theme. It can also help to download the latest version of the theme and reinstall it.

4: Cache

Are you using a caching plugin like W3 Total Cache to speed up your WordPress website? The cache of this plugin may cause a white screen.

Open your website in a private or incognito window to see if you also see the white screen. Also, empty the cache in your browser to see if your website works again.

5: Other causes

If the solutions above do not help, you can always do a “fresh” installation of WordPress. Another option is to enable “Debug Mode”. You do this by opening the wp-config.php file and adding the following line of code:

define( ‘WP_DEBUG’, true);

Instead of just a white screen, errors will now also appear. These can help you find out which file is going wrong.

Conclusion

The WordPress blank white screen is a problem, This is a common problem in WordPress.

But what to do in the future? This problem and the problems that may result from it can sometimes be difficult to avoid, especially when it concerns a website that really wants to benefit from all kinds of innovations such as in new versions of WordPress. In this dilemma, consider the advice below to avoid, if not mitigate, future problems.

stuck anywhere to solve blank white screen?  Then contact us,  we provide one of the best website maintenance services It can also help to contact your hosting party. They can quickly find out what is going wrong by looking in the log files of your server.

Share this Article
Leave a comment

Leave a Reply