What the error actually means
Since version 5.2, WordPress catches fatal PHP errors. Instead of a blank page, visitors see "There has been a critical error on this website", and WordPress emails the administration address. That email names the plugin or theme that failed and includes a recovery mode link. A truly blank white screen means the error happened before that protection kicked in, or the protection is disabled.
Usual causes
| Trigger | Typical sign |
|---|---|
| Plugin update or new plugin | Breaks right after updating or activating |
Theme update or functions.php edit | Breaks after a change in the theme file editor |
| Host switched the PHP version | Breaks with no change on your side; log mentions removed or deprecated functions |
| Out of memory | Log: "Allowed memory size … exhausted" |
| Interrupted update | Missing files, "Failed opening required" |
| Tampered files | Unknown files, redirects to strange sites |
Step 1: use recovery mode
If the email arrived, follow its link. You log in, WordPress pauses the failing plugin or theme for your session only, and you can deactivate or roll it back. Visitors keep seeing the error until you actually fix it.
Step 2: turn on the debug log
Without the email, you need the exact error. Add this to wp-config.php above the line "That's all, stop editing!":
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Reload the page and open wp-content/debug.log. The "PHP Fatal error" line names a file and line number. A path like wp-content/plugins/example-plugin/… identifies the culprit. Many hosts also show a PHP error log in their control panel.
Switch WP_DEBUG off again when you are done and delete debug.log. The file is publicly reachable by default and can expose paths and data from your installation.
Step 3: disable the plugin or theme
With WP-CLI
wp plugin list --skip-plugins --skip-themes
wp plugin deactivate example-plugin --skip-plugins --skip-themes
wp theme list --skip-plugins --skip-themes
wp theme activate twentytwentyfive --skip-plugins --skip-themes
The --skip-plugins and --skip-themes flags keep WP-CLI from hitting the same fatal error. Activate a default theme that the list shows as installed.
With FTP or a file manager
- Connect to your hosting and open
wp-content/plugins. - Rename the suspect plugin's folder, for example to
example-plugin.off. WordPress deactivates it. - If you do not know which one it is, rename the whole
pluginsfolder, confirm the site loads, rename it back and reactivate plugins one at a time. - Do the same in
wp-content/themesfor a broken theme; WordPress falls back to an installed default theme.
Step 4: check memory and PHP version
If the log reports exhausted memory, raise the WordPress limit in wp-config.php. If that has no effect, your host's PHP limit is lower and must be changed there.
define( 'WP_MEMORY_LIMIT', '256M' );
After a PHP version change, an outdated plugin is the usual suspect. Update or replace it. Rolling PHP back buys time but is not a fix; WordPress currently recommends PHP 8.3 or newer.
If it is still broken
- Stuck maintenance file: if you see "Briefly unavailable for scheduled maintenance", delete
.maintenancein the WordPress root. - Broken core update: reinstall core files with
wp core download --force --skip-content. Yourwp-contentfolder is left alone. - Clear caches: plugin cache, server cache and CDN, so you are not looking at a stored error page.
- Restore a backup: often the fastest route if you have a clean one; see WordPress backup.
- Signs of a break-in: unknown files or spam redirects point to a compromise; follow WordPress hacked.
Reading the error message
A typical debug.log entry looks like this:
PHP Fatal error: Uncaught Error: Call to undefined function example_function()
in /var/www/html/wp-content/plugins/example-plugin/inc/main.php:42
- "Call to undefined function": a function is missing, often because a required plugin is inactive or the PHP version dropped an old function.
- "Cannot redeclare": two plugins, or a plugin and the theme, define the same function.
- "syntax error, unexpected …": a typo in an edited file, usually
functions.php. - "Allowed memory size … exhausted": memory limit reached; see step 4.
The path after "in" is what matters. The folder name under plugins or themes almost always reveals the culprit. If the file sits in wp-includes or wp-admin, a plugin is usually still calling core incorrectly; the following lines of the error, the stack trace, show which one.
Preventing the next one
- Test updates on a staging site, especially major version jumps.
- Take a restorable backup before every update round.
- Do not edit
functions.phpin the dashboard's theme file editor. One typo takes the site down. Use a child theme and file access instead. - Keep plugins few and maintained, and plan update rounds as described in WordPress updates.
How eCloud Systems can help
If your site stays blank and you have no FTP or WP-CLI access, or cannot find the cause, we can fix it on request. Contact us with the site address and when the error started. Ongoing maintenance is available for a monthly fee.
Frequently asked questions
Is my content gone when WordPress shows a white screen?
Almost never. Posts, pages and settings live in the database. The blank page appears because PHP stops while building the page.
I never got the recovery mode email. What now?
It goes to the administration email address under Settings → General and only arrives if your site can send mail. Without it, disable the suspect plugin via FTP or WP-CLI.
Only wp-admin is blank, the front end works. Why?
Usually a plugin that only loads in the dashboard, or PHP running out of memory. The debug log shows which file fails.