My WordPress site shows a white screen after an update
A white screen or a “critical error” message after an update means PHP hit a fatal error, almost always from a plugin or theme that does not work with the new version. Turn on the error log to see which one, switch that plugin or theme off, and the site comes back.
The problem
You clicked update, or the host or WordPress updated automatically, and now the site shows a blank white page, or the message “There has been a critical error on this website”. You may also be locked out of the admin screens.
How to fix it
- Check the admin email for a message from WordPress titled about a technical issue. It names the plugin or theme at fault and contains a recovery mode link that lets you log in and deactivate it.
- If there is no email, turn on logging. Using your host’s file manager or SFTP, open
wp-config.phpand add these lines above the line that says to stop editing:
Reload the site, then opendefine( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );wp-content/debug.log. The first fatal error names a file path. A path containing/plugins/something/or/themes/something/is your culprit. - Rename that plugin’s folder inside
wp-content/plugins, for example by adding-offto the end. WordPress treats it as deactivated. Reload. - If the error names the theme, rename the theme’s folder. WordPress falls back to a default theme if one is installed.
- If no single plugin is named, rename the whole
pluginsfolder, reload, then put it back and rename plugins one at a time. - If the log says memory was exhausted, raise
WP_MEMORY_LIMITinwp-config.php, and ask the host whether the plan allows more. - If the log mentions a PHP version problem, check the PHP version in your host’s control panel. A recent host change can break older code. See upgrading PHP without breaking the site.
- When the site is back, turn debug logging off. Update the broken plugin or find a replacement before updating anything else.
When to stop
Stop when the log shows an error you cannot place, when it is a core file, or when the site went down while orders or members are active. Restoring a backup can cost recent orders and sign-ups.
Or I can do it for you
You do not have to dig through this yourself. If the site is down now, send an emergency request. I move fast on emergencies. For clients on a monthly maintenance plan, updates are tested on a copy first, so this is much less likely to happen at all. Otherwise it is a one-off fix I quote. See website maintenance, or get a quote.