Troubleshooting guide
WordPress white screen of death: how to fix it
A blank page means PHP hit a fatal error and display of errors is turned off. The real message is one configuration change away.
3 min read10 sectionsUpdated
On this page
Diagnose it
Add these to wp-config.php above the "stop editing" line, then reload the page and read the log.
# wp-config.php
# define('WP_DEBUG', true);
# define('WP_DEBUG_LOG', true);
# define('WP_DEBUG_DISPLAY', false);
tail -n 30 wp-content/debug.log
# List recently updated plugins with WP-CLI
wp plugin list --fields=name,status,version,update
# Test with all plugins disabled
wp plugin deactivate --all --skip-plugins --skip-themesFixes
The log names the plugin or theme file. Deactivate that plugin using WP-CLI or by renaming its folder under wp-content/plugins via FTP or SSH. Switch to a default theme with wp theme activate twentytwentyfour --skip-themes. Reinstall core with wp core download --skip-content --force. Then raise WP_MEMORY_LIMIT if the log shows a memory error, and restore a backup if nothing else works.
After the fix
Turn off WP_DEBUG once finished, and remove wp-content/debug.log, because that file may be publicly reachable and can reveal paths and data. Then reduce the risk of a repeat: test plugin updates on a staging copy first, keep daily off-site backups, and avoid auto-updating every plugin at once on a busy site. Check that your PHP version is one that your plugins actually support before the host changes it. A blank page on only one screen, such as the post editor, usually means one plugin rather than a whole-site failure.
Catch it automatically
A blank page can return status 200, so a simple status check will pass it. Use an uptime monitor that also checks for a keyword in the page body. See WordPress monitoring for the full setup.
Can I fix it without wp-admin?
Yes, with WP-CLI, or by renaming folders over FTP or SSH.
Why is the page blank instead of showing an error?
Production PHP hides errors from the page, which is correct for security.
Will disabling plugins lose data?
Normally not. Settings remain in the database.
Related reading
- Cloudflare error 1016 "Origin DNS error": how to fix it: Fix Cloudflare error 1016 Origin DNS error: CNAME records pointing to names that do not resolve, deleted origins and load balancer pools, with checks.
- 400 Bad Request: what it means and how to fix it: Fix a 400 Bad Request error: oversized cookies, malformed URLs, invalid JSON bodies and proxy rules, with commands to find which layer rejected it.
- 422 Unprocessable Entity: how to fix it: Fix 422 Unprocessable Entity (Unprocessable Content): validation errors in APIs and forms, CSRF tokens in Rails and Laravel, and how to read the error body.
- 501 Not Implemented: how to fix it: Fix 501 Not Implemented: unsupported HTTP methods, servers and proxies that do not support PATCH or WebDAV, and how it differs from 405 and 500.
- 502 Bad Gateway: causes and how to fix it: What a 502 Bad Gateway means, the common causes behind Nginx, load balancers and CDNs, how to find yours and how to stop it happening again.
- Cloudflare error 521: web server is down: Fix Cloudflare error 521 "Web server is down": the origin refused the connection. Check the web server, firewall rules for Cloudflare IPs and DNS.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.