How to Fix the WordPress White Screen of Death Error

The WordPress white screen of death (WSoD) is one of the most common WordPress errors. It’s also one of the most annoying because no error message appears, and you’re locked out of WordPress.

Another issue with the white screen of death error is that it may only affect a part of your website.

For example, you might only see a white page inside the WordPress admin area, but everything else appears to be fine. In other circumstances, you may only see it on a certain post while everything else works well.

In this article, we’ll look at a few possible ways to fix the WordPress white screen of death error.

Why Do You See White Page/White Screen of Death Error in WordPress?

Below are some most common causes of a white page/white screen of death error:

  • No space left: PHP scripts on the website have reached their memory limit or maximum execution time.
  • Incompatible plugins: WordPress plugins that are poorly coded or outdated often show this white screen of death on users’ browsers.
  • Wrong themes: The active theme is incompatible with WordPress’s current version.
  • Corrupted files: Mistakes in coding for core files, such as functions.php, and wp-config.php, can corrupt a site and make it unresponsive.

Any of these factors can cause your site or a certain web page to display a blank white screen, as shown in the image below.

WordPress Showing White Screen of Death in Mozilla Firefox

9 Ways to Fix WordPress White Screen of Death Error

WordPress WSoD is an error that you can easily fix. You might need to go through a few different troubleshooting steps to find the exact problem.

There is no need to hire a developer for this. You can fix it all by yourself. Simply follow the methods below.

Note: The following methods involve making changes to your website core files. We highly advise that you back up your website first.

There are so many backup plugins available, but the UpdraftPlus plugin allows you to upload your work to different cloud storage sites.

Once you’ve got your backup, you can try to solve the problem by going through these troubleshooting steps.

1. Increase WordPress Memory Limit

Usually, this error occurs when a script runs out of memory and stops in the middle of its execution. To resolve this, you need to increase the PHP memory available to WordPress.

As a result, the script will be able to use additional memory to complete the task.

You can see our post on how to increase the WordPress PHP memory limit.

2. Disable All Your Plugins

One of the easy ways to fix the WordPress white page is to disable all of your plugins. Sometimes, a site goes down due to a bad plugin update.

If you can still access your WordPress admin area, go to the Plugins » Installed Plugins page. Select all installed plugins, then choose Deactivate from the Bulk Actions drop-down menu.

Deactivate All Plugins Through WordPress Admin Area

This will disable all of your plugins.

If that resolves the problem, you’ll need to identify the culprit. To do this, start activating the plugins one by one and reloading the site after each activation. When your frontend goes down, you’ve detected the misbehaving plugin.

After that, you can contact the plugin’s developer or submit a support ticket in the WordPress Plugin Directory.

However, if you don’t have access to the WordPress admin area, you’ll have to use FTP to disable all plugins.

To start, use an FTP client to connect to your WordPress site. Once you’ve connected, navigate to the wp-content folder and look for the plugins folder.

Next, right-click on the plugins folder and select Rename. You can rename the plugins folder to plugins-deactivated.

The plugins folder has been renamed by your FTP client.

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

If this solves the problem, try enabling one plugin at a time until you find the cause of the problem. Once you’ve identified the plugin that’s causing the problem, you can either remove it or report the issue to the plugin’s authors.

3. Switch to a Default WordPress Theme

If a plugin doesn’t cause the issue, the White Screen of Death could be caused by your WordPress theme. To see if this is the problem, replace your theme with the default one.

If you can access your admin area, navigate to Appearance » Themes in your dashboard. Locate and activate a pre-installed WordPress theme like Twenty Twenty-Two.

After that, test your website again. If it works, you’ll know that the issue is with your theme.

However, if you don’t have access to the WordPress admin area, the process is the same as it is with plugins.

Use an FTP client to connect to your WordPress site. Once you’ve connected, navigate to the wp-content/themes folder and Rename your themes folder to something else.

WordPress will then revert to the most recent default theme, which is most likely Twenty Twenty-Two. If you don’t already have a theme, you can get one from the WordPress Theme Directory and install it in your themes folder.

After that, go ahead and double-check your website again. If it works, it’s possible that your theme had a conflict or a poor update. If this is the issue, you may need to contact the developer for help or switch themes.

4. Enable Debug Mode

If you are still getting the WordPress White Screen of Death, then the next step is to turn on debugging in WordPress. This will allow you to see what kind of errors are being generated.

Go and open the wp-config.php file and paste the following lines of code just before the line ‘/* That’s all, stop editing! Happy publishing. */’.

// Enable WP_DEBUG mode define( 'WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true);

When you add this, the blank screen will now show errors, warnings, and notices. These could help you figure out what’s causing the problem.

See our post on how to enable debug mode in WordPress for detailed instructions.

5. Clear Your WordPress Cache

Sometimes, you have access to the backend of your WordPress site but still see the WSoD on the frontend; it could be due to a caching problem.

To fix the issue, try deleting your web browser’s cache and your WordPress caching plugin (assuming you have one installed).

If you’re using a cache plugin like WP Rocket or WP Super Cache on your WordPress site, most of them provide a quick way to clear the cache from the plugin’s Settings page.

Delete Cache in WP Super Cache Plugin

See our post on how to clear your WordPress cache for detailed instructions.

6. Check If There Was A Failed Update

So, while this is a rather uncommon cause, it is possible for a WordPress update to fail. This occurs when the update takes too long to complete, and the blank white screen problem occurs.

However, in about 99% of instances, this will resolve itself, so let’s see whether you’re in the 1% club.

When WordPress is updating, an a.maintenance file is created. If the update fails, WordPress may not automatically remove this file. Again, it is highly unlikely, but it can occur.

All you have to do is head to WordPress’s root directory and look for the .maintenance file. Delete it if you find it. This should immediately fix the problem. If not, that was not the issue.

7. Increase the PHP Text Processing Capability

If you only get a white screen of death on a particularly long post or page, this small trick may help.

This method increases PHP’s text processing capabilities by increasing the recursion and backtrack limits.

Go and open the wp-config.php file and paste the following lines of code just before the line ‘/* That’s all, stop editing! Happy publishing. */’.

/** Trick for long posts */ ini_set('pcre.recursion_limit',20000000); ini_set('pcre.backtrack_limit',10000000);

8. Restore Your Website From a Backup

If you’ve tried all of the ways on this list, you have one more option: complete restoration of your site’s files. For this, you’ll need a recent backup of your WordPress site.

It can sound odd, but you should create a current backup of your website data before restoring your most recent backup. If an issue arises during the restoration, you can restore your site to its previous state. You will still get the white screen of death, but you won’t lose any data and will be able to continue diagnosing the issue.

9. Reinstall WordPress

Generally speaking, any established website shouldn’t use this option. However, it could be time to reinstall WordPress. If done correctly, you should have no impact on your existing content. If not, you can delete all of your data at once.

As a result, it is critical that you first create a backup of your website.

In the end, you will have a new set of core files, which results in the removal of corrupted files causing the issue.

WordPress White Screen of Death Wrapping Up

WordPress White Screen of Death or white page error can leave many users confused and clueless about its root cause. Although it is not as terrible as its name suggests, you may resolve this troublesome error by following the solutions provided in this article.

There is no set order in which you must troubleshoot the error. Follow best practices to fix this error, maintain regular backups, and contact your hosting provider for instant assistance.

We hope this article helps you in fixing the WordPress white screen of death error.

You can also check out these helpful resources:

Also, don’t forget to follow us on Twitter for regular updates on new articles.