You open your site and see nothing: a blank white page, or a short message that says "There has been a critical error on this website". Visitors can't see your pages and you may not be able to open wp-admin either. This is almost always a PHP error caused by one plugin, the theme, or a setting on the server, and it is usually fixable in under half an hour.
Table of Contents
Work through these steps in order. Stop as soon as the site comes back.
Step 1: Check whether it's the whole site or only part of it
Open the home page, an inner page and /wp-admin/. If only wp-admin is blank, the problem is probably in a plugin that loads in the admin area. If everything is blank, it is more likely the theme or a PHP setting.
Step 2: Look for the recovery-mode email
Since WordPress 5.2, a fatal error sends an email to the site's admin address with a recovery-mode link. The email names the plugin or theme that caused the error. Open the link, log in, and WordPress lets you deactivate the faulty plugin without touching any files. Check spam as well, because this email often lands there. The link expires after a day.
Step 3: Turn on the error log
If there's no email, make WordPress write the error to a file. Connect with SFTP or your host's file manager, open wp-config.php in the site's root folder, and add these lines above the "That's all, stop editing" comment:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Reload the broken page, then open wp-content/debug.log. The last lines usually say something like "Fatal error ... in /wp-content/plugins/some-plugin/file.php on line 42". The folder name after plugins/ or themes/ tells you what to switch off. Remove the three lines when you're done, so the log doesn't grow and nobody can read it.
Step 4: Switch off the plugin without logging in
If you can't reach wp-admin, rename the plugin's folder in wp-content/plugins/, for example some-plugin to some-plugin-off. WordPress deactivates a plugin whose folder it can't find. If you don't know which plugin it is, rename the whole plugins folder to plugins-off, load the site, then rename it back and activate the plugins one at a time from wp-admin until the error returns.
Step 5: Rule out the theme
Rename your active theme's folder inside wp-content/themes/. WordPress falls back to a default theme such as Twenty Twenty-Five if one is installed. If the site loads, the error is in your theme, often in functions.php after a recent edit. Undo the last change you made there.
Step 6: Check memory and the PHP version
- Memory: "Allowed memory size exhausted" in the log means the site needs more. Add
define( 'WP_MEMORY_LIMIT', '256M' );to wp-config.php, or raise it in your hosting panel. - PHP version: an old plugin may break on a new PHP version, and a new plugin may break on an old one. In your hosting panel, move up or down one version (for example 8.2 to 8.3) and test.
Step 7: Check recently changed files and clear caches
If the error began right after an update, restore the most recent backup from before it. Then clear your caching plugin and your host's cache. Old cached pages can show the white screen long after the fix.
When it is not a normal error
If the log points at a file you don't recognise, such as a strange name inside wp-content/uploads/ or a plugin you never installed, treat it as a possible hack. Don't just delete the file. Read how to know if your WordPress site has been hacked and the redirect fix guide, and get a backup of the current state first.
How to avoid it next time
- Update on a staging copy first, not on the live site.
- Take a backup before every update batch.
- Update a few plugins at a time, so you know which one broke the site.
- Remove plugins you don't use.
Related reading
- What should actually be in a WordPress maintenance retainer
- How to know if your WordPress site has been hacked
Still showing a white screen?
Run your site through the free audit once it loads, to see outdated plugins and weak spots before the next break. If you'd rather not edit files, I fix this kind of error and send a short note on what caused it. Start on the contact page, or see the fixed prices on the fixed-price page.
Get the free WordPress Security Checklist 2026
25-point checklist PDF - malware detection, hardening guide, login security. Used by 500+ WordPress site owners.
- ✓ 25-point security checklist PDF
- ✓ WordPress malware scan guide
- ✓ Hardening checklist for any WordPress site
No spam. Unsubscribe any time.
You're in!
Check your inbox - the checklist PDF is on its way.
Need help with your WordPress site?
I'm a freelance WordPress developer who fixes exactly this kind of problem.
150+ projects. Clients in UK, US, UAE & Ireland. Fast turnaround.

Rajan Gupta
Freelance WordPress DeveloperI'm Rajan Gupta, a freelance WordPress developer based in India with 150+ projects delivered for agencies and businesses in the UK, US, UAE, and Ireland. I specialise in performance optimisation, Core Web Vitals, custom Sage/ACF builds, and WooCommerce development - every project ships with a 90+ PageSpeed baseline.