WordPress Security ServicesMalware Removal
Site Down

WordPress White Screen of Death or Blank wp-admin: How to Fix It

No error message, no content, just a white page. Maybe only in wp-admin, maybe on the whole site. The "white screen of death" is WordPress hiding an error from you. Here's how to make it show what's wrong, fix it, and make sure there's no malware behind it.

Sergey By Sergey, WordPress security specialist Updated 2 min read
In this guide
  1. Why the screen is white
  2. Step 1: Clear caches and test again
  3. Step 2: Make WordPress show the error
  4. Step 3: The most common causes and fixes
  5. Step 4: Rule out malware

Why the screen is white

A white screen means PHP stopped with an error, and the error isn’t being displayed, which is normal and safe on a live site. Newer WordPress versions usually show “There has been a critical error” instead (see how to fix a critical error), but a white page still happens, especially in the admin area, with memory problems, or with output from broken code.

Step 1: Clear caches and test again

Clear your caching plugin, your host’s cache and any CDN such as Cloudflare. Test in a private browser window. If the white screen disappears, it was a stale cached page.

Step 2: Make WordPress show the error

Add this to wp-config.php, above That’s all, stop editing:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Reload the white page, then read the last lines of wp-content/debug.log. Your host’s PHP error log shows the same. Turn debugging off afterwards.

Step 3: The most common causes and fixes

  • A plugin: the log names it. Rename its folder in wp-content/plugins via SFTP or the file manager to deactivate it.
  • The theme: rename the active theme’s folder. WordPress falls back to a default theme.
  • Memory: Allowed memory size exhausted in the log. Add define( 'WP_MEMORY_LIMIT', '256M' ); or ask your host.
  • A failed update: a .maintenance file left in the site’s root folder can leave the site stuck. Delete it.
  • Syntax error after editing code: undo the last change to functions.php or the file you edited.
  • Corrupted core files: reinstall core with wp core download --version=$(wp core version) --skip-content --force.

If you can’t tell which plugin is responsible, rename the whole plugins folder to deactivate all plugins, check that the site loads, rename it back, then reactivate plugins one at a time.

Step 4: Rule out malware

Look further if the log mentions files with random names, eval()'d code, or files in wp-content/uploads, or if the white screen came out of nowhere with no updates. A hack can cause a white screen, and fixing the symptom alone leaves the attacker in place. See Is my WordPress site hacked?

From my cleanup work: blank wp-admin pages after a cleanup are a classic. Someone deleted an infected file that a modified plugin still tried to load, and the admin crashed. The real fix is to replace the modified plugin with a clean copy, not to restore the malware. Deleting files without understanding them is how a malware problem becomes a white-screen problem.

Sergey, WordPress Security Specialist
About the author
Sergey, WordPress Security Specialist

10 years in WordPress security and incident investigation, and more than 200 websites cleaned of malware. Top Rated on Upwork with a 100% Job Success score. More about me

Frequently Asked Questions

Why is only wp-admin blank while the site works?

Usually a plugin that only loads in the admin area is crashing, or there's a memory limit that the heavier admin pages exceed. The debug log will name the plugin.

Why do I see a white screen but other people don't?

It might be cached. Visitors see a cached copy while the live site is broken, or the other way round. Clear your caching plugin and CDN cache, and test in a private window.

Is a white screen a sign of a hack?

Usually not, but it can be. If it appeared with no updates or changes, or the logs point to an unknown file, check for malware before doing anything else.

Need a hand?

Let me clean your WordPress site for you

Send me your site URL and what you're seeing. I'll reply with what I think is going on and the next step.

$95 per infected site · 1-month guarantee · direct contact with the specialist

Get My Site Cleaned →