All blogs

WordPress white screen of death: how to find the cause

A blank page tells you nothing, but the cause is usually one plugin, one theme or a memory limit. How to make WordPress show the real error and fix it safely.

A white screen is a fatal PHP error with the message hidden. Turn on WP_DEBUG_LOG, read wp-content/debug.log, then disable the plugin or theme it names. If there is no error at all, raise the memory limit.

A blank page is a fatal PHP error with the message hidden. WordPress hides errors from visitors by default, so you get nothing on screen and nothing to search for. The fix is to make the error visible somewhere safe, read it, and change one thing at a time.

Make WordPress write the error to a file

Add these lines to wp-config.php, above the line that says to stop editing:

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

Reload the broken page, then open wp-content/debug.log. Visitors still see nothing, but the log now holds the real error: a file path, a line number and usually the plugin or theme name in the path.

Read the last fatal error

Look for the most recent line that starts with PHP Fatal error. Three patterns cover most cases:

  • A path inside wp-content/plugins/<name>/. That plugin is the cause, often after an update or a PHP version change.
  • A path inside wp-content/themes/<name>/. Same idea, for the theme.
  • Allowed memory size exhausted. The site ran out of memory, so the culprit is whatever was running at that moment.

Disable the culprit without logging in

If wp-admin is also blank, you do not need it. Rename the plugin's folder over SFTP, for example elementor to elementor-off, and WordPress will skip it. With WP-CLI the same thing is one command:

wp plugin deactivate plugin-name

If the log points at the theme, activate a default theme instead:

wp theme activate twentytwentyfour

If you do not know which plugin it is, deactivate all of them, confirm the site loads, then reactivate one at a time until it breaks again.

When the log is empty

No log entry usually means the error happens before WordPress loads, or the log file is not writable. Check that wp-content is writable by the web server, then look at the server's own PHP error log. A memory problem can be confirmed by raising the limit temporarily:

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

If that fixes it, the real question is why the site needs that much, so look for a heavy plugin or an import running on every request.

Clean up afterwards

Set WP_DEBUG back to false and delete debug.log. The log can contain file paths and request data, so it should not sit on a live server.

Frequently asked questions

What causes the WordPress white screen of death?

Almost always a fatal PHP error that is not being displayed. The usual sources are a plugin or theme update, a PHP version change, or the site running out of memory.

Why is there no error on the white screen?

Production sites hide PHP errors so visitors do not see them. WP_DEBUG_LOG writes the error to a file instead, which is safe to use on a live site.

Can I fix it without wp-admin access?

Yes. Renaming a plugin or theme folder over SFTP, or using WP-CLI, deactivates it without logging in.

Should I restore a backup?

Only after you have read the log. Most cases are a one-plugin fix, and a restore throws away recent content.