How to fix the WordPress white screen of death and recover your latest changes

Short answer

Capture the HTTP response for the blank page and match its timestamp to the first fatal error in the PHP log. Test the component named in the trace on a current copy of the site, then apply the smallest verified repair. Keep the production database current when rolling back plugin or theme files. Confirm recovery by repeating the action that failed with the original user role and checking both the response body and the new log entries.

Read the guide
Share

Summarize with ChatGPT or Perplexity

A blank white monitor beside a motherboard and a memory module

Find out which request actually fails

Ask the person who saw the white screen which button they pressed and what happened immediately before it. Opening a product, choosing a delivery service and submitting an order can involve three different requests. In browser developer tools, open Network, reproduce the action and select the response for the document or background request that failed. Record the time, time zone, route, request method and user role. Keep personal details out of the incident notes. A screenshot of a blank window cannot tell a developer which of those three requests needs attention.

Compare the public page in a private window with the login screen and one image served from the same hostname. If the image loads, the server can at least return that static file. If the login page loads as well, investigate the affected template or action before changing shared settings. Read the body of the response even when its status is successful. PHP can stop after the headers have already gone out. Conversely, a complete document containing the expected headline points toward a display problem. If the symptom follows a particular screen size, try the mobile WordPress checks on the same page.

curl -sS -D /tmp/wp-response-headers -o /tmp/wp-response-body "$PAGE_URL"
wc -c /tmp/wp-response-body

Set the variable to the affected public address and run these commands from a machine you control. A GET request saves the actual document so you can compare two responses to the same URL. A HEAD request alone leaves that evidence out. If the response says access was refused, follow the 403 access checks. If the gateway cannot get a valid answer from its upstream server, follow the 502 Bad Gateway diagnosis before editing a template.

Match a PHP error to the failing action

Start with the error log provided for the domain in your hosting panel. On a managed server, ask which PHP pool serves this hostname and where its errors go. Multiple installations can share a machine, and a command run through SSH can use a different interpreter. Convert the browser timestamp to the log’s time zone. Compare a successful request with the failing one and read the first fatal entry associated with the latter. Capture its exception type, file, line and a few stack frames. A later warning about headers may describe something that happened while PHP was already handling the failure.

If that evidence is insufficient, save the current configuration outside the public directory before enabling WordPress logging for a brief diagnostic session. Edit the existing definitions in wp-config.php before it loads wp-settings.php. Create the private directory in the example first, give the PHP worker write access and keep display of PHP errors disabled in the hosting configuration. Trigger the affected action once and inspect the new records. Someone reading the home page should never receive a path, stack trace or customer detail from your troubleshooting session. WordPress debugging handbook.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', '/var/log/wordpress/site-debug.log' );
define( 'WP_DEBUG_DISPLAY', false );
First relevant entry Evidence to collect Useful next test
Parse error with a line number The deployed file and the web worker’s PHP version Check the same release under the same interpreter
Unknown class or undefined function Package contents, dependencies and loaded extensions Install a complete matching package on a copy
Allowed memory size exhausted Effective limit, input size and operation in progress Repeat with a smaller batch of the same input
No application log entry Log path, free disk space and pool error output Check the server log for a failure before WordPress starts

Keep the original log private. For a support ticket, share the exception and relevant stack frames after removing customer details and secret query strings. Include the release identifier and the first time the action failed. Revert the temporary logging settings once the test is complete and check the log retention policy. A busy shop can accumulate a surprising amount of unrelated diagnostic output during an ordinary afternoon.

Isolate a plugin or theme without losing its settings

Check the administrator’s mailbox for a recovery message. WordPress may send a time-limited link when it identifies a component that causes a fatal error. Enter recovery mode on the site’s real domain and inspect the component paused for that session. Open a separate private window to observe what visitors actually receive. An editor using an ordinary account may still hit the same failure while the recovery session appears healthy. If the email never arrives, your host’s file manager or your existing SSH access provides a way to examine the installation independently.

Before renaming anything, locate the active release, record the suspect plugin’s exact directory name and save its version and files. Temporarily rename just that directory over SSH, SFTP or the host’s file manager. Adding a suffix lets you reverse the change without downloading the entire site. Repeat the original action and inspect the new log entries. Consider what the missing plugin supplied: checkout, consent management and fulfilment can all depend on a component that was invisible on the home page. When restoring the directory name, verify plugin activation in the dashboard. WordPress can mark a missing plugin inactive.

If a theme file appears in the trace, inspect the call at that location. The template might depend on a function provided by a separate plugin. Record the active parent and child themes, then activate an installed, compatible default theme on a copy and open the same post. If the only available method involves renaming the active theme directory, first confirm a suitable fallback theme is already installed. Keep the original theme settings and custom files. When the page returns, verify menus, individual post layouts and the form that originally triggered the error.

Pros and cons

Read the effective memory limit and web PHP version

Write down the memory limit reported by PHP, the operation that exceeded it and the size of its input. Creating thumbnails for a large camera image, exporting a full order history and reading a public post are different workloads. On a copy of the current site, repeat an import with a smaller batch of the same products and count how many records complete. The final allocation in the trace can be tiny. It describes the request that finally failed, even when earlier work consumed nearly all of the available memory.

Setting Where to check Question it answers
PHP memory limit Domain hosting settings and Site Health How much can one running script allocate?
WordPress memory request Application configuration and Site Health details Can WordPress request additional memory under this hosting policy?
Administrative memory allowance WP_MAX_MEMORY_LIMIT configuration What value can selected intensive operations request?
PHP release and modules The domain’s worker pool and Site Health Does the web worker have the version and modules required by this release?

Before raising a limit, estimate what several concurrent imports would mean for the host. The database and other sites need memory while these jobs run. Record the previous value and decide when to revert a temporary increase. A job whose input keeps growing may need pagination or smaller batches even after one successful run. Compare the active PHP extensions too, especially after moving to new hosting. A missing image or database extension requires a change to the worker pool that serves the site. PHP core configuration reference.

For a PHP upgrade, recreate the combination of core, theme and plugins with a recent database snapshot on staging. Run the failing action, save a draft and allow a scheduled task to execute. A call that used to produce a warning may terminate execution under a different interpreter. A successful check with the command-line binary says little about extensions loaded by the web process. Verify the domain’s settings after switching versions and record which pool the host actually changed.

Check rewrite rules and cached responses

Apache can reject a request while reading directory configuration, before PHP gets control of the page. Compare a direct static file with a WordPress permalink and read the web server’s error entry for the latter. Keep a private copy of the current rewrite rules before changing them. They may also enforce a canonical hostname, protect private files or restrict an internal directory. When rebuilding the WordPress rewrite block, carry those protections forward and verify the restricted paths still return the expected response to an anonymous visitor.

Nginx does not read Apache’s directory configuration. Some hosts put Apache behind Nginx, so establish which component processes the request before touching either server. If a browser keeps switching between the secure and insecure versions of a URL, use the WordPress reverse proxy redirect checks. Record the response headers before and after the change. They help distinguish a genuinely repaired route from a different page reached by following an old redirect.

A cache can keep an empty response originally sent with a successful status. Purge the affected address after fixing its cause, then request it twice as an anonymous visitor. The first request can rebuild the entry and the second can exercise the cached path. On a busy site, clearing every entry makes unrelated pages rebuild simultaneously and complicates the diagnosis. If successful and empty responses alternate, ask the host whether more than one worker node serves the domain and verify the deployed release on each.

Recover recent orders and verify the repair

Separate the files you need from the data that must stay current. Last night’s backup can contain a working plugin alongside a database that predates this morning’s orders. Restore the verified component on a copy of today’s database first. Check whether an update changed the database schema and whether the previous release can read it. Where a shop continues taking orders, agree who can pause writes and reconcile transactions before a database rollback becomes an option. The WordPress host migration guide covers that handover in detail.

Repeat the acceptance test with the original role, route and input size. Open a product with variations, add it to a basket and choose a delivery service. Use the provider’s test environment to exercise payments and reconcile live authorisations received during the outage separately. Have an editor save and reopen a draft. Record the time of the successful requests, the repaired release and the number of new errors since deployment. Someone taking the next support shift should be able to distinguish old records in the log from a recurrence without repeating the incident investigation.

Frequently asked questions

What if the recovery email never arrives?

Check the administrator email address and the host’s delivery record. A failure before the recovery handler starts may produce no message at all. Use the server log and your existing hosting access to continue.

Will replacing WordPress core fix a blank page?

Verify core checksums against the installed version and locale first. Replacing a partial core release can help, but plugin dependencies, theme code and server configuration need their own evidence.

Why does the error affect only an administrator?

A dashboard screen can load callbacks that public templates never run. Record the exact screen, action and input size and reproduce them with the same role on a current copy of the site.

Why is there no new entry in the WordPress log?

Confirm the target directory exists, the worker can write there and the request reached this installation. An early startup failure or a server configuration error may appear only in the host’s logs.

When can automatic updates resume?

Test the corrected release with the site’s current PHP settings and database. Verify backup restoration and failure notifications, then schedule an update window when someone can run the affected workflow again.

← Back to blog

Need help with your website?

Development and SEO services →

Related articles