Troubleshooting

WordPress White Screen of Death: causes and fix

Quick answer: A completely blank page means PHP stopped before building the page and the error is hidden. A plugin, theme or memory limit is usually to blame; turn on WP_DEBUG first to reveal the real error.

WordPress Advanced About 30 min 7 steps WordPress & Websites
WordPress White Screen of Death: causes and fix — A young woman in a bright café looks puzzled at a laptop whose screen is completely white.

Symptoms

  • The site or dashboard loads as a completely white page with no text
  • Only certain screens go blank, such as the post editor
  • Some browsers show "This page isn't working" instead of a white page

Likely causes

  1. A plugin or theme caused a PHP error while error display is turned off on the host
  2. PHP ran out of memory
  3. A caching plugin saved a broken copy of the page
  4. Theme or core files were uploaded incompletely during an update
  5. The host's PHP version is incompatible with the theme's code

Step-by-step fix

Start from step one and test again after each step; steps go from the simplest to the most technical.

  1. Clear the cache

    Clear your browser cache or open the site in a private window. If you use a caching plugin and the dashboard opens, purge its cache; if not, empty the wp-content/cache folder on the server (deleting its contents is safe and it rebuilds itself).

  2. Test the dashboard separately

    Open yoursite.com/wp-admin. If it loads, deactivate plugins there and switch to a default theme to find the culprit.

  3. Turn on WP_DEBUG

    Back up wp-config.php and add these lines above "That's all, stop editing": define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); The exact error and the file at fault are then logged to wp-content/debug.log. Remove the lines once the site is fixed.

  4. Disable plugins from the server

    If the log points to the plugins folder, or you can't read the log, rename wp-content/plugins to plugins-old using File Manager or FTP. If the site returns, rename it back and reactivate plugins one at a time from the dashboard.

  5. Switch the theme

    Rename the active theme's folder in wp-content/themes so WordPress falls back to a default theme. If the site loads, the theme or its functions.php is broken; if you recently added code to functions.php, remove it.

  6. Raise the memory limit

    If the log mentions "Allowed memory size", add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php. If that has no effect, raise the PHP memory limit in your hosting control panel's PHP settings.

  7. Repair core files and PHP

    If the blank screen appeared after a failed update, re-upload wp-admin and wp-includes from the official WordPress package (leave wp-content alone). Also set a supported PHP version in your control panel. Back up the full site first.

If nothing worked

If the page is still white, send the contents of debug.log or your host's error log to their support; server resource limits or PHP settings may need changes only they can make. If the log is empty, a server-side cache or CDN may be holding the broken page; ask your host to purge it. Don't leave WP_DEBUG on for a live site, and delete debug.log when you're done, since it records server paths.

Frequently asked questions

Does a white screen mean my site was hacked?

Usually not; it's most often a simple PHP error. If the log points to an unfamiliar file or you see strange code in functions.php or .htaccess, treat it as a possible infection and restore from a clean backup.

Why does only the post editor go blank?

A plugin is usually conflicting with the editor or page builder, or that screen needs more PHP memory. Deactivate editor-related plugins one at a time and raise WP_MEMORY_LIMIT.

Related problems

Terms used on this page

More WordPress & Websites problems

All problems WordPress & Websites

Last updated:

Type a few letters of the topic; spelling variants are treated as the same.