Lab-tested: PHP 8.4.27 built-in server, display_errors off · 2 Dec 2026 · White screen reproduced and cleared in our lab
Fix Box — Try This First (10 Seconds)
A white screen with status 500 means PHP died before printing anything. On a live host, errors are hidden on purpose, so the log is your screen.
- Turn on the debug log and reload the blank page once.
- Read the last fatal or parse error line; it names the theme file.
- Switch to a default theme or fix that file, then reload. Still blank? Follow the 500 Decision Tree.
The Exact Symptoms
The browser shows a completely blank white page. The status code behind it is 500 Internal Server Error, with an empty body.
WordPress may instead show “There has been a critical error on this website.” Both are the same event: a PHP fatal error, displayed differently.
Diagnosis, Step by Step
First, check whether wp-admin still loads. If the dashboard works, the fault sits in theme code that only runs on the front end.
Next, enable the debug log in wp-config.php and reload once. The last line of wp-content/debug.log names the file and line that failed.
Then switch the active theme to a default one, or rename the theme folder over FTP. If the site returns, the theme is confirmed as the cause.
Finally, lint the named file before you edit it. A parse error is visible in seconds with php -l.
What Our Lab Reproduced
We broke a theme functions.php with an unclosed parenthesis, the classic bad-edit injury. With display_errors off, the response was a blank body with HTTP/1.0 500 Internal Server Error.
The log, however, was precise:
PHP Parse error: Unclosed '(' on line 3 does not match '}' in /data/lab500b/www/themes/broken-theme/functions.php on line 4
We also reproduced the second theme failure: code calling a helper function that no longer exists after an update. Same blank 500, different log line:
PHP Fatal error: Uncaught Error: Call to undefined function lab500_old_theme_helper() in /data/lab500b/www/theme-undefined.php:2
In both cases the visitor saw nothing at all. The log separated a syntax slip from a removed function instantly.
The Fix
Fix the named line, then lint the file before reloading:
php -l wp-content/themes/your-theme/functions.php
Our broken file failed the lint with the parse error above. After the syntax was repaired, the lint passed and the page returned HTTP/1.1 200 OK.
For the missing-function case, restore the function or remove the call. Our lab page returned 200 OK once the helper existed again.
If you cannot edit code, switch themes first and fix later. Rename the theme folder, and WordPress falls back to a default theme:
mv wp-content/themes/your-theme wp-content/themes/your-theme-broken
Enable logging while you work, and turn it off when you finish:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
What Did Not Work
Refreshing and waiting changed nothing. A white screen does not heal; PHP fails identically on every request.
Clearing cache also did nothing in this pattern. The error happens before any page exists to cache.
Prevention
Never edit theme files in the live editor without a backup copy. One unclosed bracket whites out the whole site.
Use a child theme for your changes, so theme updates cannot erase them. Test theme updates on staging first.
If the log names a plugin instead, follow 500 Error From a Plugin Conflict. For the full WordPress path, see 500 Error in WordPress. Confirm the live status any time with the 500 Error Checker.
FAQ
Is a white screen always a 500? Almost always. The blank body hides it, but the status code behind the white screen is 500.
Why is there no error message on the page? Live hosts set display_errors off so visitors never see file paths. The message still lands in the log.
Can a child theme cause a white screen? Yes. A parse error in a child theme’s functions.php is enough.
Will switching themes lose my content? No. Content lives in the database; switching themes only changes presentation.
How fast can I confirm the theme is the cause? One reload. Rename the theme folder, reload, and watch the status change from 500 to 200.
Still not sure which layer failed? Start from the pillar guide, 500 Internal Server Error: Causes and How to Fix It, and follow its decision tree.
Sources and date
Lab tests run 2 Dec 2026 on PHP 8.4.27 with display_errors off. References checked live on the same date.
- RFC 9110 §15.6.1 — 500 Internal Server Error: https://www.rfc-editor.org/rfc/rfc9110.html
- MDN — 500 Internal Server Error: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/500
- WordPress — wp-config.php and debugging: https://developer.wordpress.org/advanced-administration/wordpress/wp-config/






Leave a Reply