Skip to content
Blog

How to fix a plugin update that breaks WordPress

How to fix a plugin update that breaks WordPress: find the plugin, turn it off, restore the restore point or roll back, and stop it happening again.

The WP Waterfall team · Guides

You pressed Update, and now the site shows a white page or an error. This guide shows how to fix a plugin update that breaks WordPress in four steps, and how to make the next update safe. It takes a few minutes, and nothing in it needs a terminal.

First, find out what broke

A white screen means PHP stopped. Open the site, then Logs, and pick the PHP error log. The last lines name the file that failed, and the file path names the plugin: wp-content/plugins/some-plugin/.... If the site is slow rather than dead, the PHP slow log lists the requests that took over 5 seconds and what they were running.

If you cannot read the logs, the chat can. Nami, the assistant, reads the last lines of the error log for you and names the plugin.

The error log names the file that failed, and the path names the plugin.

Turn the plugin off

A deactivated plugin stops running. Its files stay, so nothing is lost. Open Plugins and Themes, find the plugin, and choose Deactivate. If wp-admin itself is broken, the same thing works from Tools, then WP-CLI:

plugin deactivate some-plugin

Reload the site. If it is back, you have time to think. If it is not, more than one plugin updated, so deactivate the others from the same run and turn them back on one at a time.

Put the site back

WP Waterfall takes a restore point before it changes plugin files, and automatic updates keep theirs for 3 days. Open Backups, pick the System-generated tab, and restore the one from before the update. You can restore only the code and leave today's orders and comments in place.

On a live site in Git mode, the code is a release that nothing edits in place, so the update happened on staging and reached live through a deploy. Live keeps its last ten releases. Open Info on live, find Deployment history on the Deploys card, and choose Roll back next to the release before the update. Rollback changes code only, and the database and uploads stay as they are.

Each release on live can be made the active one again with one click.

Either way, the site runs the old plugin version again, and the broken version is gone.

Stop it happening again

Three habits remove most of the risk:

  • Update on staging first. Staging is a private copy of your site. Update there, click around, then deploy to live. On WP Waterfall every code change to live starts on staging, so this is the normal path, not an extra step.
  • Let the platform check the update. Automatic updates run once a day, free, on staging and previews. Each run takes a restore point, updates one plugin at a time, and checks the home page, the login page, and the PHP error log after each. An update that fails is held back, and you get one notice naming it.
  • Add pictures for the pages you care about. Safe Updates, $5 a month for the site, does the same on the days you choose, then compares pictures of your pages before and after and has an AI review the change. A page that changes more than you allow waits for your approval instead of going live.

With a held back update, the Plugins card shows the reason. Choose Apply anyway when the change is fine, or wait for the developer's next version. The details are in Plugins and themes.

What to do next

Open the Automatic updates card on your staging environment and turn it on. The next broken update will be held back on staging, with a note in your inbox, instead of taking down live.

Read next

Try what you just read about.

See it in your own dashboard.