WordPress White Screen of Death: Causes and Fixes (2026)

Illustration of a blank browser window with a warning sign, representing the WordPress white screen of death

The WordPress white screen of death is a blank page caused by a fatal PHP error, most often a faulty plugin, a broken theme, or too little PHP memory. To fix it, turn on the debug log to read the error, raise the memory limit, then disable plugins and switch themes until the site returns.

Most guides tell you to “deactivate all plugins” first. That works, but it hides the real cause. This guide starts by reading the error, so you fix the right thing. It also shows what to do when you cannot log in to the dashboard.

What the White Screen of Death Is

A white screen means PHP stopped running before WordPress could draw the page. WordPress then has nothing to show, so the browser displays an empty page. On newer WordPress versions you may instead see the message “There has been a critical error on this website”. Both have the same root cause: a fatal error in your code or server setup.

Common Causes and Where to Start

Match your situation to the most likely cause. This saves time because each cause has a different fix.

What happened just before Most likely cause Start with
You installed or updated a plugin Plugin conflict or fatal error Step 4: disable plugins
You changed or updated your theme, or edited functions.php Theme or code error Step 5: switch the theme
The error mentions “Allowed memory size” PHP memory limit too low Step 3: raise the memory limit
You moved the site or changed the PHP version Code that does not match the new PHP version Step 2: read the debug log
Nothing changed and you do not know why Any of the above Step 1, then Step 2

Before You Start

You need a way to reach your site’s files. Use your host’s file manager or an FTP client such as FileZilla. Take a backup of your files and database first if you can, because you will rename folders and edit wp-config.php.

Step 1: Check Your Email for the Recovery Link

Since WordPress 5.2, recovery mode can email a special link to the administrator when a fatal error happens during a normal page load. The email names the plugin or theme that caused the error. The link lets you log in with that extension paused, so you can deactivate it from the dashboard.

Search the admin email inbox, including the spam folder, for a message from your own site. If it never arrives, go on to Step 2, because the email can be missed or sent to an address you do not check.

Step 2: Turn On the Debug Log to Read the Error

The debug log tells you exactly which file failed. Open wp-config.php and add these lines above the comment that says to stop editing. The WordPress debugging guide documents each constant.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

Reload the broken page, then open the file wp-content/debug.log. The last lines show the error and the file path. A path that contains /plugins/plugin-name/ points to a plugin. A path that contains /themes/theme-name/ points to your theme.

Turn the debug lines off again when you finish. Set WP_DEBUG back to false. Leaving a log file in place on a live site can expose details you do not want public.

How to Read the Log

What the log says What it means Fix
Allowed memory size of … bytes exhausted PHP ran out of memory Step 3
A file path under /plugins/ A plugin caused the fatal error Step 4
A file path under /themes/ Your theme or a child theme edit caused it Step 5
Call to undefined function, or a PHP version message Code does not fit your PHP version Update or replace that plugin or theme, or ask your host to change the PHP version

Step 3: Raise the PHP Memory Limit

If the log says “Allowed memory size of … bytes exhausted”, your site hit its memory limit. According to the WordPress wp-config.php documentation, WordPress tries to raise PHP memory to 40MB on a single site and 64MB on a multisite network by default, so set a higher value in wp-config.php:

define( 'WP_MEMORY_LIMIT', '256M' );

Worked example: The log says “Allowed memory size of 41943040 bytes exhausted”. Divide by 1,024 twice: 41,943,040 / 1,024 / 1,024 = 40. Your site hit the 40MB default. Setting 256M gives it far more room. If the error stays after you save the file, your host may cap memory at a lower level, so ask your host to raise the limit.

Step 4: Disable All Plugins

When you cannot open the dashboard, WordPress’s own troubleshooting guide gives two ways to turn plugins off.

Method A: Rename the plugins folder

  1. Open your files with FTP or the file manager and go to the wp-content folder.
  2. Rename the plugins folder to plugins.hold. This disables every plugin.
  3. Reload your site, and then try /wp-admin.
  4. If the site works, rename the folder back to plugins. All plugins stay off, and you can switch them on one at a time from the dashboard.

Method B: Use phpMyAdmin

  1. Open phpMyAdmin from your host’s control panel and select your WordPress database.
  2. Open the wp_options table and find the row named active_plugins. Your table prefix may differ from wp_.
  3. Change the option_value to a:0:{} and save.

After the site returns, turn plugins back on one by one and reload the site each time. The plugin that brings the white screen back is the culprit. Replace it, update it, or contact its developer. These steps are listed in the WordPress troubleshooting FAQ.

Step 5: Switch to a Default Theme

If plugins are not the cause, test your theme. In the wp-content/themes folder, rename the folder of your active theme. WordPress cannot find it and falls back to a default theme such as Twenty Twenty-Five, if one is installed. If the site loads, the theme or your edits to it caused the error. Restore the original theme files from a backup, or reinstall the theme. If you added code to functions.php, remove it and test again.

Step 6: Replace Core Files and Clear Caches

If nothing above helps, a core file may be damaged. Download a fresh copy of WordPress and upload the wp-admin and wp-includes folders over the old ones. Do not overwrite wp-content or wp-config.php. Then clear your caching plugin and any CDN cache, because an old cached blank page can keep showing after you fix the cause. Our guide to WordPress caching plugins explains how caches work.

Stuck on a “Briefly Unavailable” Message?

That is a different problem. WordPress places a file named .maintenance in your site’s root folder during an automatic update. If the update fails, the file stays and visitors keep seeing the message. The WordPress troubleshooting FAQ says to delete the .maintenance file to remove it. Then run the update again.

How to Prevent the White Screen

  • Test updates on a staging copy before you run them on the live site.
  • Update one plugin at a time, so you know which one broke the site.
  • Keep automatic backups so you can restore a working version within minutes.
  • Use a child theme or a snippets plugin for custom code, instead of editing theme files directly.
  • Choose hosting with enough memory. Our guide to hosting for a fast WordPress site covers what to check.

If your database stops responding instead, see our guide to the WordPress database connection error.

The Short Version

  1. Check your admin email for a recovery-mode link.
  2. Turn on WP_DEBUG_LOG and read wp-content/debug.log.
  3. If the log mentions memory, raise WP_MEMORY_LIMIT.
  4. Rename the plugins folder to find a faulty plugin.
  5. Rename the active theme folder to test the theme.
  6. Replace wp-admin and wp-includes, and clear caches.
  7. Turn debugging off when you finish.

How This Guide Was Put Together

This guide uses the steps in the official WordPress documentation: the debugging guide, the wp-config.php reference, the troubleshooting FAQ and the recovery mode page. We kept the steps those pages describe and did not add statistics. Check each page for the latest wording before you change production files.

Frequently Asked Questions

What causes the WordPress white screen of death?

A fatal PHP error causes it. The most common triggers are a faulty or incompatible plugin, a broken theme or a code edit, and a PHP memory limit that is too low. Reading the debug log tells you which one applies to your site.

How do I fix the white screen if I cannot log in?

Use FTP or your host’s file manager. Rename the plugins folder to plugins.hold to disable all plugins, then reload the site. If that does not help, rename your active theme folder so WordPress falls back to a default theme.

Will I lose my content?

Usually no. The white screen stops WordPress from showing your content, but the posts and pages stay in the database. Take a backup before you rename folders or edit wp-config.php, then work through the steps in order.

Is the white screen the same as the critical error message?

They share the same cause, a fatal error. WordPress may show the message “There has been a critical error on this website” and can email the administrator a recovery link, while a plain white screen shows nothing. The fixes in this guide work for both.

Should I leave WP_DEBUG turned on?

No. Turn debugging on only while you troubleshoot, then set WP_DEBUG back to false. On a live site, a debug log file can expose details about your setup, so remove it when you finish.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *