Fix a problem · WordPress
“There has been a critical error on this website.”
That message comes from WordPress itself. It means a piece of code (usually a plugin or theme) hit a fault WordPress couldn't get past.
WordPress stopped loading the page rather than show something half-broken. Your content is usually still there, and getting the site back means finding the code that fell over.
Written by Josh Constant · About me
Or WhatsApp me, email , or use the contact form.
02Is this you?/ 07
Start with the email WordPress sent you
When this happens, WordPress tries to email the site's admin address. On the site you'll see:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
The email's subject line is “Your Site is Experiencing a Technical Issue”. Search for it, and check spam. It names the plugin or theme that caused the error. It also includes a special link that opens your site in recovery mode.
Recovery mode
Recovery mode: WordPress logs you in with the faulty code paused.
In recovery mode you can log in, see the culprit and deactivate it. Your site should then load again without it.
Can't find the email?
The admin address may be a former developer's or a mailbox nobody checks, so update it once the site is back.
The other 2 messages you might see
“Error establishing a database connection”
WordPress keeps your pages, posts and settings in a database. This message means it can't reach it.
Common causes
Common causes: the database server is down at your host, the login details WordPress uses for the database were changed, or the database is damaged. Ask your host first. If their database server has a fault, it's theirs to fix.
A blank white page
Older WordPress versions, and some faults, show nothing at all. People call it the white screen of death.
More
The causes are the same family as the critical error, without the helpful message or email.
03What to do first/ 07
Safe things to try
Think back.
An update, a new plugin or a host email about PHP in the last day is the likeliest culprit.
Use the recovery link if you have the email, and deactivate only the plugin or theme it names.
Ask your host whether they changed PHP, or whether their logs show the error.
Hosts can see error logs you may not be able to.
Check the rest of the site.
Is only one page broken, or every page, including the admin login?
More
One broken page points to a narrower cause.
What not to do
- Don't delete plugins to find the faulty one.
Why
Deactivating is enough, and deleting can remove their settings.
- Don't roll the host's PHP version backwards and leave it there.
Why
It might bring the site back, but you're then running software that may no longer get security fixes.
- Don't restore an old backup without checking what you'd lose: recent orders, bookings or form entries.
- Don't edit theme files in the WordPress editor while the site's broken.
Why
One more error can lock you out of the admin as well.
04Why it happens/ 07
What causes “There has been a critical error on this website”
- An update that didn't agree with the rest of the site.
- A plugin updated and clashes with your theme or another plugin.
- A PHP change at your host.
- PHP is the language WordPress runs on.
More
When a host moves your site to a newer PHP version, old plugins and themes can stop working. PHP 8.2's security fixes end on 31 December 2026 (php.net), so hosts may move sites off it.
- The site ran out of memory.
- Some plugins need more than your hosting plan allows.
- A file was edited by hand.
- One missing character in a theme file is enough.
- Malicious code.
- Less common, but a break-in can cause the same message.
05When to get help/ 07
Where to stop
Stop if:
- you can't get into the admin at all
- the recovery email never arrived
- the error comes back after you deactivate the named plugin
- the culprit is your theme or a plugin the site can't run without (a shop or booking system)
From there, the fix means working with the site's files and logs directly.
When to get help, and what happens next
Website fixes covers this. The error log gets read before any plugin is touched, because it names the file and line that failed. Then:
- your site loads again, and the plugin or theme that caused it is fixed or replaced
- your site is checked on your host's current PHP version, so the next change is less likely to break it
- you hear what went wrong
To stop updates doing this again: WordPress maintenance or Hosting and care.
How the fee is set
You agree a fixed fee before I start. If the job turns out bigger, I stop and ask before doing more.
Logins
I always use my own named login, which you can remove at any time. I never ask for your password. How you add me depends on your host, and I'll show you how.
Signs of a break-in
Signs of a break-in include strange admin users, files you didn't add and Google warnings. If you see them and the site is down for customers, go to Hacked website repair instead.
06FAQs/ 07
FAQs
Have I lost my website?
Very unlikely. The critical error stops pages loading. It doesn't delete your content.
Is this the same as being hacked?
Usually not. Most critical errors come from updates and PHP changes. If you see other signs, read This site may be hacked.
07Ask me/ 07
Ask me about website fixes
Or WhatsApp me, email , or use the contact form.
Not sure what's wrong?
If the site's working again and you want to know what else might break at the next update, start with a free website health check.
Book a free website health check
What you agree to
What you agree to: your web address and how to reach you. You get a written report. If you want anything fixed, I'll quote a fixed fee first, and you can say no.