A WordPress Plugin Update Broke Your Site: Recover, Then Prevent It
If an update just took your site down, the first section gets it back. The rest is about the process that stops it happening again without leaving security patches waiting for weeks.
By the Wesolvers team · · 13 min read
First, get the site back
Don't debug the live site while it's down. For the next twenty minutes the goal is to undo the change, not to understand it. Investigation can wait for a calmer hour.
Read what the site is telling you
"There has been a critical error on this website": a PHP fatal error, almost always in the plugin or theme you just updated. Since WordPress 5.2, core catches these and emails the site's admin address.
A blank white page: the same fatal error, on a setup where the error screen is suppressed or the crash happens too early to show it.
"Briefly unavailable for scheduled maintenance": an update stopped halfway and left a .maintenance file in the site's root folder. Delete it, then rerun the update.
The site loads but looks or behaves wrong: broken layouts, dead buttons, a checkout that won't complete. Recovery mode won't help, but the steps below still apply. For a store, our guide to diagnosing a WooCommerce checkout that stops working goes deeper.
Use the recovery mode link if you have it
When core catches a fatal error, it sends an email to the admin address with a subject like "Your Site is Experiencing a Technical Issue". The email names the plugin or theme that crashed and contains a private recovery mode link.
Open the link and log in. In your browser only, WordPress pauses the plugin that crashed so that wp-admin loads.
Go to Plugins and deactivate the plugin it names. Visitors keep seeing the error until you do this, because the pause only applies to your session.
Exit recovery mode and load the site in a private window to confirm it works for everyone.
No email and no wp-admin: disable the plugin from the file system
The email often never arrives: the site can't send mail, or the admin address belongs to someone who left years ago. WordPress also limits how often it sends these emails, so don't wait for a second one. Go straight to the files.
Connect with SFTP or your host's file manager and open wp-content/plugins.
Rename the folder of the plugin you just updated, for example woocommerce-subscriptions to woocommerce-subscriptions-off. WordPress can't find the plugin, so it doesn't load it, and the site comes back.
If you updated several plugins at once and don't know which one crashed, rename the whole plugins folder, check the site loads, then rename it back. WordPress may mark the plugins inactive when that happens. Reactivating them one at a time also tells you which one is the problem.
If the theme is the culprit, rename its folder in wp-content/themes. WordPress falls back to a default theme as long as one is installed.
With SSH access, WP-CLI is faster
Run wp plugin list --status=active to see what's running. Then run wp plugin deactivate followed by the plugin's slug to switch the culprit off. If WP-CLI crashes too, because it loads the same broken code, add --skip-plugins --skip-themes to the command. To put back a specific earlier version of a plugin from WordPress.org, use wp plugin install with the slug, --version= followed by the version number, and --force.
Roll back the plugin to the version that worked
Deactivating gets the site up; rolling back gets the feature back. Core has no plugin rollback button. Since version 6.6 it does undo an automatic plugin update on its own when that update causes a fatal error, but a manual update you ran yourself stays installed.
For WordPress.org plugins, the plugin's page has an Advanced View listing previous versions as ZIP files. Since WordPress 5.5 you can upload that ZIP under Plugins, Add Plugin, Upload Plugin, and replace the installed version. WP Rollback, a widely used free plugin, does the same from the dashboard for WordPress.org plugins and themes. Premium plugins' earlier versions come from the vendor's customer account, and some vendors only offer the latest, which is a good reason to keep your own copy of every ZIP you install.
Check the changelog before you roll back. WooCommerce and many larger plugins migrate the database after a major release, and old code running against a migrated database can cause a second, quieter round of breakage. If a migration ran, ask the vendor whether rolling back is safe.
Restore from backup, but know what you lose
A full restore is the bluntest tool you have. On a brochure site that's fine. On a store, a membership site or anything with forms, restoring the database erases every order, signup and entry since the backup. Restore only the files where you can, or restore to a staging copy and move across what you need. Back up the broken state first, so you can still find out what went wrong.
Find the actual error
Your host's PHP error log usually has the answer: a line beginning "PHP Fatal error" with a file path, and the path names the plugin. If you can't reach that log, edit wp-config.php and set WP_DEBUG and WP_DEBUG_LOG to true, with WP_DEBUG_DISPLAY set to false so visitors never see the errors. Errors are then written to wp-content/debug.log.
On many servers anyone can read that file from the web. Point WP_DEBUG_LOG at a path outside the web root, or turn it off once you're done.
Clear every cache layer
A site can be fixed and still look broken. Purge the page cache plugin, your host's server cache, the CDN, and any object cache such as Redis, and regenerate a page builder's CSS and JavaScript files if one was involved. Then test in a private window, on mobile, and on the checkout or form that matters most.
Once the site is stable, switch off automatic updates for the plugin that broke, so tonight's run can't reinstall the same version.
Why updates break WordPress sites
Most breakage has one of six causes. Knowing which one you hit tells you whether this was bad luck or will keep happening.
PHP version jumps. Hosts upgrade PHP on their own schedule. Code that only raised warnings on older PHP versions can throw fatal errors on PHP 8. WordPress.org's own statistics show about 31% of WordPress sites still run PHP 8.1 or older, a branch whose security support ended on 31 December 2025, so many of these upgrades are still to come.
Major versions. When a plugin goes from 4.x to 5.0, its developers are telling you something changed in a way that can break things. On WooCommerce sites, a major release can also leave the template copies in your theme out of date. WooCommerce, Status lists every outdated override, and that list is the first place to look when a WooCommerce update breaks the site's layout.
Plugin conflicts. Two plugins can each work alone and fail together, for example when they ship different versions of the same library. Metorik's analysis of more than 6,000 stores found an average of 58 active plugins per WooCommerce store, each on its own release schedule, and nobody tests them together except you.
Abandoned plugins. Patchstack counted 1,614 plugins and themes removed from WordPress.org in 2024 over unpatched security issues. An abandoned plugin never gets fixed for a new PHP or WordPress version, and Liquid Web found that 77% of WordPress users rarely or only occasionally review and remove plugins.
Premium plugins with expired licenses. When a license lapses, updates stop silently. Renewing a year later means jumping several versions at once, the riskiest update there is. Paying doesn't buy safety either: Patchstack's 2026 report found three times more known exploited vulnerabilities in premium components than in free ones.
Auto-updates without testing. They run whenever WordPress's scheduler fires, often several at once, with nobody watching. The rollback added in WordPress 6.6 only catches a fatal error. It can't see a broken checkout, a missing menu or a form that stopped sending.
The real cause: updates go to production first
Site owners describe it the same way again and again: every plugin update is a gamble, and sometimes the whole site goes white and nobody can log in to undo it. That isn't bad luck. It's the order the work is done in: update the live site, look at the homepage, restore a backup if something looks wrong.
The maintenance market mostly sells that same order. Our Care Plan Pricing Index read 372 tiers from 169 providers' published pricing pages, and only 16% of those tiers say updates are tested before they go live. Most plans promise to repair the damage, few promise to check first.
Professionals struggle with this too. In the WebPros and CloudLinux 2026 survey of WordPress agencies, 65% named keeping plugins and themes updated across client sites as a top challenge. Among agencies managing 100 or more sites, 45% still update them by hand, one at a time.
How to test WordPress updates safely: the update pipeline
In the Website Operations Maturity Model, the jump from Managed to Proactive is the point where updates stop being applied to production first. What follows is the pipeline we use to make that jump. It scales from a single company site to an estate of dozens.
1. A staging site that matches production
A staging site built months ago tells you little. Clone production shortly before each update cycle, with the same database, PHP version and caching. Then make the clone safe: anonymize customer data, stop outgoing email, switch payment gateways to test mode, and block indexing.
2. Update in small batches
Thirty updates at once and one broken page tells you nothing about the cause. Group low-risk items together, and give anything touching checkout, payments, forms or the page builder a batch of its own. Changelog lines like "requires PHP", "breaking change" or "database update" also earn an item its own batch.
3. Automated checks on the pages that earn money
A smoke test is a short script that loads the pages that matter and proves they work: the homepage, one example of each key template, search, the main lead form, login, and on a store, add to cart through to a test-mode payment. Each must return a normal response, add nothing to the PHP error log and throw no JavaScript errors. It runs in minutes, and it's what lets you patch quickly without guessing.
4. Visual regression on key templates
Many updates break a site without causing an error. Visual regression tools, usually built on a headless browser such as Playwright, screenshot each template before and after and flag the differences. Mask rotating banners and dates to avoid false alarms, and have a person review what's flagged. This catches the moved buttons and broken layouts a smoke test misses.
5. A release window
Deploy when traffic is low and the person who can roll back is free for the next two hours. Avoid Fridays, launches and peak trading. If you don't know what an hour of downtime costs, the downtime calculator works it out from your own figures, and that number usually settles when the window should be.
6. A rollback plan written before you deploy
Take a database snapshot right before deploying, keep the previous ZIP of every component you update, note which items run a migration, and agree who decides to roll back. Set the rule in advance: if checkout or the main form fails, roll back within fifteen minutes and investigate on staging.
7. Monitoring after the release
Watch the PHP error log, uptime with a check for page content, a scheduled test transaction or form submission, and the order or lead rate against a normal day, for at least the next 24 hours. A checkout that quietly stops taking orders won't trip an uptime alert, because the page still loads.
Patching fast without breaking things
Testing takes time, and attackers move faster than most maintenance schedules. Patchstack's State of WordPress Security in 2026 found that heavily exploited vulnerabilities reached mass exploitation in a weighted median of 5 hours after disclosure. It also found that 46% of vulnerabilities had no patch from the developer at the time they were disclosed. A monthly maintenance day is too slow for the first figure and does nothing about the second.
The answer is to treat updates differently by risk, not to skip testing. Sort every update into one of four tiers:
Tier 1, actively exploited or critical security fixes in something you run: deploy the same day, within hours. Run only the automated smoke test on a fresh clone, deploy, and watch closely. If no patch exists yet, deactivate the plugin or put a firewall or virtual-patching rule in front of it until one ships.
Tier 2, other security releases: deploy within a few days, through the normal pipeline.
Tier 3, routine minor and feature updates: batch them weekly or fortnightly and run the full set of checks.
Tier 4, major versions, PHP upgrades, WooCommerce and page-builder majors: plan them like a project, with full regression testing and a planned release window. Waiting for the first point release (5.0.1, not 5.0) is often worth it.
What Tier 1 depends on
Two things must exist before the vulnerability does: an inventory of every plugin and theme you run, matched against a vulnerability feed so you hear about your own stack, and a smoke test that runs in minutes. Without them the choice is between patching blind and waiting. With them, fast patching is routine. Measure your time to patch, from a fix's release to production, and set a target for each tier.
Should you turn on WordPress auto-updates?
For minor core releases, yes. They carry security fixes and install automatically by default, so leave that alone. For plugins, it depends on what the site does and what else you have in place.
On a brochure site with daily backups and an uptime monitor, auto-updating well-maintained plugins beats updates that never happen. On a site that sells, books or captures leads, keep WooCommerce, payment gateways, membership plugins and the page builder on the pipeline, and auto-update low-risk items only if monitoring will tell you within minutes when something breaks. Core's automatic rollback is a last line of defense that only notices crashes.
Where this leaves you
Recover first, then fix the process. How the last bad update went usually tells you where you sit on the maturity model, and the 18-question scorecard confirms it, with no email required.
If you'd rather nobody on your team had to think about update tiers, that's what our website maintenance service is built around: updates tested on staging before they reach production, vulnerability monitoring with clear response times, and backups whose restores have actually been tested.
Frequently asked questions
How do I roll back a WordPress plugin update?
Core has no rollback button. For a WordPress.org plugin, download the previous version from the Advanced View on its plugin page and upload it under Plugins, Add Plugin, Upload Plugin, replacing the installed one. WP Rollback does the same from the dashboard, and WP-CLI's wp plugin install with --version= and --force does it in one command. Check the changelog first in case the update changed the database.
What causes a WordPress critical error after an update?
Almost always a PHP fatal error in the plugin or theme you just updated: code that doesn't run on your PHP version, a clash with another plugin, or a call to something removed. The admin email names the component, and the PHP error log gives the file and line.
How do I fix a WordPress critical error when I can't access wp-admin?
Use the recovery mode link in the email sent to the admin address. Without it, rename the plugin's folder in wp-content/plugins over SFTP or your host's file manager, or run wp plugin deactivate with its slug over SSH. Then roll back to the version that worked.
Why didn't I get the WordPress recovery mode email?
It goes to the site's admin email address, which may belong to someone who has left, or the site may not send email reliably, or it landed in spam. Don't wait for it: disable the plugin from the file system. Afterward, set up reliable email delivery and either a monitored admin address or the RECOVERY_MODE_EMAIL constant in wp-config.php pointing to one.
My site is stuck in maintenance mode after a plugin update. What do I do?
An update stopped partway and left a file named .maintenance in the site's root folder. Delete it and the message disappears. The plugin that was updating may be half-installed, so reinstall it.
A WooCommerce update broke my site. What should I check first?
Check whether WooCommerce is waiting for a database update, then open WooCommerce, Status for outdated template files in your theme. Test checkout end to end with a test payment, since gateways and checkout add-ons are where conflicts show first. Don't restore a full database backup on a live store: you'd lose every order since.