---
title: "WordPress white screen of death: how to find the cause"
date: "2026-11-26"
updated: "2026-11-26"
excerpt: "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."
tags: ["WordPress", "Debugging", "Site Recovery"]
draft: false
cover: "/images/blog/wordpress-white-screen-of-death-fix.webp"
coverAlt: "Illustration of a blank WordPress page with a debug log revealing a fatal PHP error and a checklist to restore the site"
category: "guide"
tldr: "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."
howToSteps:
  - name: "Turn on the debug log"
    text: "Add WP_DEBUG, WP_DEBUG_LOG and set WP_DEBUG_DISPLAY to false in wp-config.php, reload the page, then read wp-content/debug.log."
  - name: "Disable the plugin it names"
    text: "If you cannot reach wp-admin, rename the plugin's folder in wp-content/plugins over SFTP, or run wp plugin deactivate with WP-CLI."
  - name: "Switch to a default theme"
    text: "Rename the active theme's folder or run wp theme activate with a default theme to rule the theme out."
  - name: "Check the memory limit"
    text: "If the log shows an exhausted memory error, raise WP_MEMORY_LIMIT and find out why the site needs that much."
  - name: "Turn debugging off"
    text: "Set WP_DEBUG back to false and delete debug.log once the site is healthy, because the log can expose paths and data."
faqs:
  - question: "What causes the WordPress white screen of death?"
    answer: "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."
  - question: "Why is there no error on the white screen?"
    answer: "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."
  - question: "Can I fix it without wp-admin access?"
    answer: "Yes. Renaming a plugin or theme folder over SFTP, or using WP-CLI, deactivates it without logging in."
  - question: "Should I restore a backup?"
    answer: "Only after you have read the log. Most cases are a one-plugin fix, and a restore throws away recent content."
---

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.
