WordPress Step-by-step

How to Troubleshoot the WordPress White Screen of Death

A blank page with no error message is frightening, but it’s almost always a PHP error from a plugin, theme or memory limit. Here’s how to find the cause and get the site back.

Share this guide

You open your website and get nothing: a completely blank white page. Or a short message saying “There has been a critical error on this website.” The dashboard may be gone too. It looks catastrophic, but it usually isn’t. Your content is almost certainly still in the database; something is stopping WordPress from building the page.

Quick answer

The white screen of death is almost always a PHP fatal error, most often caused by a plugin or theme (frequently right after an update), a PHP version change or the site running out of memory. Check your email for a WordPress recovery mode link first. If there isn’t one, turn on the debug log to see the error, then deactivate the plugin or theme named in it.

This guide walks through the causes, a step-by-step fix from quickest to most involved, what to do if you can’t reach the dashboard at all, and how to stop it happening again. It follows the WordPress.org documentation linked at the end.

What causes the white screen

CauseClueFix
Plugin error or conflictHappened right after installing or updating a pluginDeactivate the plugin
Theme errorHappened after a theme update or code editSwitch to a default theme
PHP version changeYour host upgraded PHPUpdate plugins or roll back PHP temporarily
Memory limit reachedError log mentions “Allowed memory size exhausted”Raise the memory limit, then find the heavy plugin
Code edit gone wrongSomeone edited functions.phpUndo the edit via SFTP or file manager
Failed updateAn update was interruptedRe-upload core files or remove the .maintenance file

Quick diagnosis

What you are seeing

  • Blank white page
  • “There has been a critical error” message
  • Dashboard also blank, or only the front end

Likely causes

  • Plugin or theme PHP error
  • PHP version change
  • Memory limit
  • Bad code edit

Check first

  • Admin email for recovery mode link
  • debug.log in wp-content
  • Host’s PHP error log

Get help when

  • Database errors
  • Signs of hacking
  • No backup and no file access

Step by step: fix it

Step 1: Check for the recovery mode email

Since WordPress 5.2, when a fatal error happens WordPress usually emails the site administrator. The email names the plugin or theme involved and includes a special link to log in using recovery mode, which pauses the faulty extension so you can reach the dashboard. Check the admin email address, including spam. If you find it, log in through the link, then deactivate, update or replace the named plugin or theme.

Step 2: Think about what just changed

Did you update something, install a plugin, edit code or get a notice from your host about PHP? The last change is the most likely cause. Our guide to updating WordPress without breaking it explains why updates sometimes trigger this.

Step 3: Turn on the debug log

The WordPress debugging guide explains the settings. Using your host’s file manager or SFTP, open wp-config.php and, above the line that says to stop editing, set:

Many hosts also have a PHP error log in their control panel, which shows the same information without editing files.

Step 4: Deactivate the problem plugin

If you can’t reach the dashboard, rename the plugin’s folder in wp-content/plugins, for example from slider-pro to slider-pro-off. WordPress deactivates it automatically. If you don’t know which plugin, rename the whole plugins folder, check the site loads, rename it back, then deactivate plugins one at a time. Our guide to finding the plugin causing a problem covers this method.

Step 5: Switch the theme

If the error points to your theme, rename the theme’s folder in wp-content/themes. WordPress falls back to a default theme if one is installed. Your content stays safe; only the design changes until you fix the theme. See changing a theme without losing content.

Step 6: Raise the memory limit

If the log mentions memory exhausted, add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php, as described in the wp-config documentation. Your host’s own limit may cap this. Treat it as a short-term fix; a plugin using huge amounts of memory still needs investigating.

Step 7: Check the PHP version

If your host recently changed PHP, older plugins may fail. Compare with the WordPress requirements page. Update or replace incompatible plugins; switching PHP back temporarily can buy time, but older PHP versions stop receiving security fixes.

Step 8: Restore a backup

If nothing works, restore the most recent backup from before the problem. See restoring a WordPress backup.

A worked example

This is an illustration, not a specific client. A Kilkenny craft shop’s site shows “There has been a critical error on this website” on Monday morning. The owner has no recovery email because the admin address is an old employee’s. Their host’s PHP error log shows a fatal error in an old gallery plugin, triggered when the host moved the account to a newer PHP version over the weekend.

Renaming the gallery plugin’s folder brings the site straight back. The owner replaces the plugin with a maintained alternative, updates the admin email address so future recovery emails arrive, and sets up a staging site to test PHP upgrades in future.

Mistakes to avoid

How to prevent it

  • Keep regular, tested backups, stored off the server.
  • Test updates and PHP changes on a staging copy first; see what a staging site is.
  • Keep custom code in a child theme or small plugin, never in the parent theme.
  • Remove unused and abandoned plugins; see removing unused plugins safely.
  • Make sure the admin email address is one someone reads.

How to confirm it’s fixed

  • The front end and dashboard both load normally, in a private window too.
  • debug.log stops recording new fatal errors.
  • Forms, checkout and key pages work.
  • In Search Console, no rise in server errors appears in the following days.

If the site was down for long, check our guide on the 500 internal server error and how it affects crawling. For help, our website development team fixes and maintains WordPress sites, and a technical SEO review checks nothing was lost in search.

Frequently asked questions

Have I lost my content?

Almost certainly not. Content is stored in the database, which a white screen doesn’t usually affect.

What does “There has been a critical error” mean?

It’s WordPress’s message for a PHP fatal error, usually from a plugin or theme.

I didn’t get a recovery email. Why?

The admin email may be outdated, or the server may not send email reliably.

Is it safe to rename plugin folders?

Yes. It deactivates the plugin without deleting its settings.

Will the white screen hurt my SEO?

Short outages rarely matter. Long or repeated downtime can affect crawling and rankings.

Can my host fix it?

Many hosts will help read error logs and restore backups. Ask them.

Related reading: the database connection error, fixing plugin conflicts and what to do if WordPress is hacked.

Sources and further reading

  1. Common WordPress errorsWordPress Developer Resources.
  2. Debugging in WordPressWordPress Developer Resources.
  3. Editing wp-config.phpWordPress Developer Resources: memory limit and debug constants.
  4. WordPress requirementsWordPress.org.

Last updated 25 November 2026. Google changes its tools and reports regularly, so check the official sources above if something on screen looks different. This guide is general information, not advice for your specific website.

Found this useful? Share it