WordPress site broken, slow or hacked? A calm, step-by-step fix guide
White screen, "critical error", painfully slow pages or redirects to spam sites: here is how to diagnose and fix a WordPress site in the right order, without making things worse.
Michel Jandy · 24 November 2026 · 5 min read
Short answer: nine times out of ten, a WordPress outage comes from a plugin, a theme or an incompatible PHP version. Back up first, turn on error logging, then disable plugins one at a time. If the site is hacked, take it offline, change every password and restore a clean backup: deleting the visible malicious code is never enough.
A typical Monday: a client calls because their site shows "There has been a critical error on this website". The night before, they clicked "Update all". Twenty minutes later the site was back. We see this every week. Most WordPress problems are quick to fix if you follow a method; the wrong reflexes (reinstalling at random, deleting folders, restoring an already infected backup) turn a twenty-minute fix into a week of trouble.
Step 0: back up before you repair
Even a broken site holds your content, orders and settings. Before touching anything, copy the files (via FTP or your host's file manager) and export the database. If something goes wrong, you can roll back.
The five most common WordPress failures
| Symptom | Most likely cause | First move |
|---|---|---|
| White screen or "critical error" | Plugin or theme conflict after an update, PHP memory limit | Enable debug mode, read the error, disable the culprit |
| Error 500 | Corrupted .htaccess, wrong PHP version | Rename .htaccess, resave permalinks, check PHP |
| "Error establishing a database connection" | Changed credentials, overloaded database server | Check wp-config.php, contact your host |
| Very slow site | Too many plugins, heavy images, no caching, undersized hosting | Measure first, then fix the main bottleneck |
| Spam redirects, unknown links, Google warning | Hack, usually through a vulnerable plugin | Put the site in maintenance mode and follow the hack procedure |
Finding the faulty plugin
WordPress often emails the administrator a "recovery mode" link: it is the easiest way back into the dashboard to deactivate the faulty plugin. Without it, rename the wp-content/plugins folder over FTP to disable all plugins at once. If the site comes back, restore the folder name and reactivate plugins one by one until you find the culprit. Same logic for themes: switch temporarily to a default theme.
The PHP version trap
Each PHP version is supported for four years. PHP 8.2 stops receiving security fixes after 31 December 2026, according to the official PHP schedule. Staying on an old version is risky, but jumping straight to the newest one can break older plugins. Test on a staging copy first, then switch.
Slow WordPress site: where to start
Google measures real-user experience with Core Web Vitals: the main content should appear in under 2.5 seconds and the page should respond to a click within 200 milliseconds, per Google's published thresholds.
- Measure first with PageSpeed Insights and the Core Web Vitals report in Search Console.
- Optimise images: the number one cause. WebP or AVIF, correct dimensions, lazy loading.
- Remove unused plugins: each one adds code and risk.
- Turn on page caching, and object caching where your host supports it.
- Check your hosting: very cheap shared plans hit their limits fast. See our guide on how to choose web hosting.
Hacked WordPress site: the procedure that works
WordPress core is rarely the weak point. Patchstack's 2026 report counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, 91% of them in plugins, with almost half unpatched at disclosure and mass exploitation starting within hours. An unmonitored site is a target.
- Isolate the site with a maintenance page or a temporary block from your host.
- Change every credential: WordPress, FTP, database, hosting, admin email. Delete admin accounts you don't recognise.
- Find the entry point: vulnerable plugin, weak password, pirated ("nulled") theme. Skip this and the attacker comes back.
- Clean or restore: restore a backup from before the infection and patch immediately, or replace core, theme and plugin files with official copies and inspect the database.
- Ask Google for a review in Search Console once the site is clean, if a warning was shown.
- Meet your legal duties: if personal data may have leaked, GDPR notification rules may apply.
Never settle for deleting the visible malicious code: attackers almost always leave a hidden backdoor.
Do it yourself or call a pro?
If you are comfortable with FTP and the failure clearly followed an update, the steps above are often enough. Call a professional if the site earns money (shop, bookings), if you suspect a hack, or if you don't know what changed. An emergency fix usually takes one to three hours; a hacked site left online costs far more in lost sales and reputation.
The real cure: stop waiting for the next outage
Almost every emergency we handle would have been prevented by regular maintenance: tested updates, off-site backups, security and uptime monitoring. That is what our WordPress maintenance service covers. To compare offers, read our guide to WordPress maintenance costs.
Frequently asked questions
Why does my WordPress site say "There has been a critical error on this website"?
It signals a fatal PHP error, usually caused by a plugin or theme conflict after an update. Use the recovery link emailed to the administrator, or disable plugins by renaming the plugins folder over FTP, then reactivate them one by one.
How much does it cost to fix a WordPress site?
A simple failure (plugin, PHP, .htaccess) usually takes one to three hours. Cleaning a hacked site takes longer because the entry point must be found, files and database cleaned, and the site hardened. Maintenance plans often include these interventions.
How can I tell if my WordPress site has been hacked?
Typical signs: redirects to unknown sites, pages or links you did not create, new admin accounts, a Google or browser warning, spam sent from your domain, or your host suspending the account.
Should WordPress update automatically?
Minor core security releases can stay automatic. For plugins and major versions, back up, test on a staging copy, then update production and check key pages.
Does Google penalise a slow WordPress site?
Speed is part of Google's page experience signals, but the bigger cost is visitors leaving. Aim for the main content to load in under 2.5 seconds on mobile.
Got a project in mind?
Tell us about your business: we reply within one working day with a clear proposal.
Start a project →