Safety
A WordPress plugin update broke your site: how to recover and stop it happening again
What to do when a plugin update breaks a WordPress site: get back in, find the plugin, roll back safely, and update with checks next time.
In this article
In this article 7 sections
If a plugin update broke your site, get back in first, then find the plugin, then put the previous version back. Check whether WordPress emailed the admin address a recovery-mode link: it lets you log in with the broken plugin paused. If there is no email, rename that plugin's folder in wp-content/plugins over SFTP or your host's file manager, which deactivates it. Then reinstall the version that worked and update again only after you know why it failed. A recent backup from your backup plugin is the fallback when files alone do not fix it.
1. Get back into wp-admin
- The "There has been a critical error on this website" page. WordPress caught a PHP fatal error. It usually emails the site's admin address a link that opens recovery mode, where the plugin that crashed is paused for your session only.
- No email, or a white screen. Connect over SFTP or the host's file manager and rename
wp-content/plugins/<plugin-folder>to<plugin-folder>-off. WordPress deactivates a plugin whose folder it cannot find. - You do not know which plugin. Rename the whole
pluginsfolder, log in, rename it back, then reactivate plugins one at a time.
2. Find what actually failed
Look before you roll back, so you fix the right thing:
- The error message on the recovery-mode screen or in the email names a file and line, and that path names the plugin.
- If
WP_DEBUG_LOGis on,wp-content/debug.loghas the same error with a time. - Check the plugin's changelog for a raised minimum PHP or WordPress version. A plugin that now needs a newer PHP than your host runs fails the same way on every update.
An AI client connected in Read Only can do this reading for you: see how to diagnose WordPress errors with AI.
3. Roll back to the version that worked
- From wordpress.org. The plugin's page has an Advanced view with previous versions to download. Upload that zip under Plugins, Add New, Upload Plugin and choose to replace the current version.
- A premium plugin. Download the previous version from the vendor's account area.
- When the database changed too. Some updates migrate their own tables. Putting old files back over new data can break things in a new way, which is when you restore from your backup plugin instead.
4. Update with checks next time
Most broken updates show up in the first page load after the upgrade, so the useful check is simple: load the pages that matter before and after, and compare.
GoBuildWP Pro's safe-update ability does that for one plugin, theme or supported WordPress core release per call:
- It requires a successful backup newer than 24 hours (by default) from UpdraftPlus, Duplicator, BackWPup or All-in-One WP Migration, read through
backup-status. Skipping that requirement is allowed and recorded. - It zips the current version as a rollback copy.
- It loads the home page and up to four recently modified pages logged out, plus the REST index and an admin-ajax request.
- It runs the update through WordPress's own upgrader.
- It loads the same pages again and reads the PHP fatal errors the update's requests logged.
- If a page that worked now returns an error, a fatal or the critical-error page, it tries to put the rollback copy back automatically.
updates-available lists what has an update first and says which items safe-update will not handle. safe-update-history shows past runs and their outcome: updated, rolled back with the reason, or rollback failed.
Limits, stated plainly
- The checks cover only the pages and requests listed above. A broken checkout or form on another page can pass them.
- The rollback copy is a zip of that one plugin or theme directory, kept for seven days. It is not a full-site restore and it does not roll back database changes the update made.
- A rollback can itself fail, and
safe-updatereports that asrollback_failedrather than hiding it. - GoBuildWP makes no backups of its own. It reads the status of supported backup plugins, and Pro can start a backup through UpdraftPlus, BackWPup or All-in-One WP Migration. Restores happen in the backup plugin.
How GoBuildWP's undo and rollback works for agent changes.
Free and Pro
GoBuildWP Free can read what failed with site-issues, list plugins and themes with list-extensions, and update a plugin with update-plugin, a plain update with no checks that needs explicit confirmation. Pro adds safe-update, updates-available and safe-update-history. See Pro pricing.
Call to action
Read more about WordPress AI safe updates, or start free and connect a client in Read Only to read your site's recent issues.
Frequently asked questions
How do I roll back a plugin update that broke my site?
Deactivate the plugin by renaming its folder, then install the previous version: wordpress.org plugins list older versions in the Advanced view, and premium vendors offer them in your account. If the update also changed the database, restore from your backup plugin instead.
Will WordPress tell me which plugin broke?
Usually. For a PHP fatal error, WordPress shows the critical-error page and emails the admin address a recovery-mode link that names the plugin and pauses it for your session.
Should I turn off automatic plugin updates?
For plugins that run checkout, forms or membership, many site owners update them by hand after a backup instead. Turning updates off entirely leaves security fixes waiting, so decide per plugin.
Does safe-update restore my database?
No. It restores the plugin or theme files from its rollback copy. Database changes stay, which is why it asks for a recent backup first.
Can an AI client fix a broken site on its own?
It can read what failed and propose a fix. With GoBuildWP, deactivating a plugin is a destructive call that needs explicit confirmation, and the change is recorded so it can be undone.