This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

📣 Join our live AMA on the Future of Page Builders with Brizy's CEO! Register Now →

How to Fix the White Screen of Death Error in WordPress (9 Methods)

Updated on November 2, 2023

10 Min Read
fix white screen of death in wordpress

Despite your best efforts to stop them, errors are inevitable when browsing the internet or managing a website. However, a good webmaster knows how to assess the situation and troubleshoot effectively.

One of the many WordPress errors that can bring down a WordPress website (and significantly disrupt business) is the White Screen of Death (WSOD) error. This annoying issue requires an immediate fix to bring the website back online.

The White Screen of Death error can be fixed simply by following the recommended checklist and using the appropriate tools. If you wish to troubleshoot this error yourself, follow along as I demonstrate several effective ways of fixing the White Screen of Death that could paralyze WordPress websites.

Launch WordPress 6.3 in 1-Click on Cloudways

WordPress hosting with free staging and website cloning features.

What Is the White Screen of Death?

First things first, let’s learn about this error and how to diagnose it. As the name suggests, the white screen of death is literally a blank page that appears out of nowhere when you try to access your WordPress website. It is the most common WordPress error and probably the most annoying one as well.

The worst thing about this error is that it does not give any message or error code, so a new user might get frustrated and confused when it comes up. Some browsers may provide you with the HTTP 500 Error message that states, “this page isn’t working,” but even that error message does not explain the problem.

White Screen of Death overview

The white screen of death is associated with database and PHP errors. It may happen due to a plugin’s incompatibility, a missing or corrupted theme file, a server issue, or it may indicate that you have exceeded your PHP memory limit.

What Causes the White Screen of Death Error in WordPress?

There is no one fixed cause of the White Screen of Death error; however, it mostly occurs due to PHP errors, memory limit issues, or database errors. Troubleshooting a WSoD error is somewhat challenging, as figuring out the root cause is not an easy game.

Sometimes, it may appear due to plugins or themes that are incompatible with the software on your website. Also, when you’ve exceeded your PHP memory limit, an unresponsive script might lead to that blank screen. At times, WSoD may also appear due to a server issue that can be fixed by your host only.

Whatever the cause, one must not delay resolving the error. So, let’s learn the quick fixes to get rid of this error in the next section.

How to Fix the WordPress White Screen of Death (WSoD) Error (9 Methods)

Let’s get down to the brass tacks and learn the ways to fix the WordPress White Screen of Death error.

Check for Server Availability

Firstly, rule out the possibility of an unavailable server by using an online status reporting tool such as Is This Website Down? This tool determines whether the problem results from full/corrupted browser caching, IP issues, or an unavailable hosting server.

server availability check

If the server is down, get in touch with your hosting provider to get it back online ASAP. This is one of the areas where managed cloud hosting platforms like Cloudways can help you out.

Clear Browser Cache

Sometimes, simply clearing the browser cache does the trick. Websites use browser caching for better user experience and faster browsing. However, as time passes, the cache gets cluttered with data and cookies that are no longer needed.

To resolve this issue, simply go to your browser’s settings and clear the cache of your specific website by going to all cookies and site data: [chrome://settings/siteData?search=cookie].

clear cookies and site data

If you wish to remove all the cookies and cache, navigate to the History tab in Chrome and click “Clear browsing data.” Go to Basic or Advanced, select the time range, and click Clear data.

clear browsing data

Once the process finishes, go back to your website and hit Refresh. If you see the wp-admin screen, you are good to go. If the problem is still there, jump to the next step.

Note: The above process can also log you out of the websites where you were previously logged in or remove the data.

Experience the Latest WordPress Version

Launch your website on WordPress 6.3 with our super-fast managed hosting.

Enabling Debug Mode

If clearing the browser cache does not help, the next fix is to enable WordPress to debug mode. This mode highlights some critical information about the errors that may have caused the White Screen of Death in WordPress.

You have to access the wp-config.php file to enable the debug mode. You can access this file either by logging into your CPanel or by connecting to your server via SFTP using FileZilla (or a similar FTP client).

access wp-config.php on FTP client

  • Open the file in any text editor and look for the following line:
define (‘WP_DEBUG’, false)

define wp-debug as true

  • And change false to true.
define(‘WP-DEBUG’, true)
  • Save the changes and upload the updated file.
  • Now return to the browser and refresh the screen.
  • You will still get the White Screen of Death, but this time with an error message.

For example, you might see something like:

Cannot redeclare get_posts() (previously declared in /var/www/html/wordpress/wp-includes/post.php:1624) in /var/www/html/wordpress/wp-content/plugins/my-plugin/my-plugin.php on line 21

The above error message states an error at line 21 in one of the plugins. At this point, you may either contact the plugin provider or replace the plugin with something similar. If that’s not possible, disable the WordPress Plugins altogether. You can also debug your WordPress website using plugins. One such useful plugin for debugging is WordPress query monitor.

Increase Memory Limit

WordPress runs on top of PHP. As such, both layers need adequate memory for execution. Sometimes the limit gets exhausted, resulting in the White Screen of Death and 500 Internal Server errors.

Setting the memory limit is easy. Follow the steps below to set up the memory limit on Cloudways:

  • Log in to your Cloudways account.

log in to Cloudways

  • Select your server.

Select your server

  • Click Settings & Packages. Check your Memory Limit under the basic tab and increase it.

check memory limit on Cloudways

  • Click Save Changes.

save changes to increase memory limit

  • Now return to wp-admin, refresh the page and check if the error is still there. If you still see the White Screen of Death, move on to the next method.

Disable Plugins & Themes

Disabling plugins and themes is among the simplest solutions for the White Screen of Death, and many troubleshooting guides often include it as the first step. I’ve included it later as it is time-consuming and could possibly alter the appearance of your WordPress site.

Let’s see how to disable themes and plugins without causing any damage to the WordPress site.

Disabling the Theme

Follow the steps below to disable or change your current theme on WordPress:

  • Log in to the wp-admin dashboard.
  • Navigate to Appearance and click Themes.

Disable the theme

  • Activate the default theme.

activate default theme

If you cannot access the wp-admin due to the White Screen of Death error, access your server using FileZilla and rename the wp-content/themes folder to something like my_themes.

disable theme via ftp wordpress

This will disable the existing theme, and WordPress will replace it with the default theme.

You can look into the repository of the best WordPress themes and select any that fits your requirements best. You can also check our guide on how to choose a WordPress theme to make the right choice. 

Disabling the Plugins

Follow the steps below to disable plugins via the WordPress dashboard.

  • Open your WordPress dashboard.
  • Click Plugins to see the list of installed plugins.
  • Disable all of them.

disable plugins

  • Activate them one after the other to see which plugin is causing the error.

However, if you cannot access wp-admin, use FileZilla again and rename the plugins folder. If your website starts working, rename the folder back to plugins and start testing each plugin individually by renaming them one by one.

disable plugins via ftp

Resolve Syntax Errors

Developers and website owners often add custom PHP code inside the functions.php file to add/optimize a specific functionality. Sometimes, the code is added to integrate a third-party service or to enhance an existing feature, as WordPress allows the addition of custom code.

The code can sometimes lead to the White Screen of Death error. So, if you have made any changes recently, reverting might get you out of this situation to resolve any syntax code errors.

The recommended practice for adding custom code is to note every change you make in the functions.php file. Better yet, keep backups of the original file to avoid such issues.

Fix a Failed Auto-Update Issue

WordPress update issues can sometimes result in the White Screen of Death error. Check to see if your site has a failed automatic update.

A timed-out server resulting during an update can trigger the WSoD error. You may resolve this by following the steps below:

  • Connect to your server via FTP.
  • Open your site’s root folder.
  • Locate a file named .maintenance.
  • If you find any such file, delete it.

Following the above steps will knock away the WSoD error, but if you can’t find the “maintenance” file, move on to the next solution. Cloudways offers automatic WordPress updates through SafeUpdates.

WordPress Core Updates Made Easy Via SafeUpdates

Automate your site’s core, plugin, and theme updates via SafeUpdates on Cloudways for as low as $2 a month.

Learn More

Restore Backup

Taking backups is a good practice and should be performed regularly. Another way to fix the WordPress White Screen of Death error is to restore a previously working backup.

With platforms like Cloudways, you can even create staging sites and PULL the data on these sites to a live website if you encounter errors like WSoD.

If you are a Cloudways user, follow the steps below:

  • Log in to your Cloudways platform.
  • Go to Application ManagementStaging Management.
  • Click Launch Staging Application.

Launch Staging Application on Cloudways

  • Select your server.

select server for staging application

  • It will take a few minutes to create the staging application.

creating staging application

  • Once the staging finishes, select your original server and go to Application ManagementStaging Management.

Pull to copy data from the staging site

  • Click PULL to copy the data from the staging site.

If you are not on Cloudways, you can take a full backup using a WordPress backup plugin and retrieve the backup of the WordPress website using cPanel.

Contact Your Hosting Provider

If none of the above methods work, then the problem may be at your host’s end. In that case, contact your hosting provider for help.

Managed WordPress hosting providers like Cloudways offer prompt support via live chat, phone, and email for problems like these. Your hosting provider can identify what went wrong with your server.

contact cloudways

Good support depends on your choice of hosting provider so ensure you opt for a reliable WordPress hosting provider that promises instant support.

How to Prevent the WordPress White Screen of Death Error

The solutions shared above in this blog may help you fix the White Screen of Death error, but wouldn’t it be amazing if it never occurred in the first place?

To prevent the WSoD error from happening, consider the following:

  • Frequently backup your website and store it on a separate server. You can backup your server via a backup & restore plugin or a third-party tool or service.
  • Abstain from installing untrustworthy plugins and themes. Always check customer reviews, ratings, and the recent update date of a plugin or theme before installing them. Only install frequently updated add-ons with favorable reviews, as they are unlikely to conflict with your site’s settings.
  • It is recommended to test the WordPress updates in a staging environment to ensure that they don’t conflict with your site’s settings.
  • When making any code changes, apply them first in a testing environment to ensure they don’t cause errors.
  • Limit user permissions if multiple people have access to your site.

Summary

WordPress White Screen of Death error can leave many people confused and clueless about its root cause. Although it is not as scary as its name suggests, you can fix this annoying error by following the fixes shared in this guide.

There is no specific order in which you need to troubleshoot the error. Follow best practices to prevent this error, maintain timely backups, and contact your hosting provider for instant assistance.

Frequently Asked Questions

Q. How do I fix the white screen of death on WordPress?

You can fix the White Screen of Death error by following the fixes below:

Q. Why is my WordPress website showing a white page?

It means that you have the White Screen of Death error on your WordPress site. The WSoD error usually appears due to a plugin or theme incompatibility, code conflicts, or may also happen at your host’s end, in which case you need to contact your hosting provider. You can fix the WordPress WSoD error by following the fixes shared in this blog.

Q. What is the common reason for a WordPress White Screen of Death?

The WordPress White Screen of Death error typically appears due to PHP errors, memory limit issues, plugin or theme conflicts, or database errors.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Sarim Javaid

Sarim Javaid is a Digital Content Producer at Cloudways. He has a habit of penning down his random thoughts and giving words and meaning to the clutter of ideas colliding inside his mind. His obsession with Google and his curious mind add to his research-based writing. Other than that, he's a music and art admirer and an overly-excited person.

×

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!

×

Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour

CYBER WEEK SAVINGS

  • 0

    Days

  • 0

    Hours

  • 0

    Mints

  • 0

    Sec

GET OFFER

For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now