Skip to content

A plugin update broke my WordPress site: how to get it back

A WordPress plugin update caused a critical error or white screen. How to switch the plugin off, roll it back or restore a backup, and stop it happening again.

By Miro, Wave Digital. Updated .

If your site broke straight after a plugin update, the update is almost certainly the cause. Switch that one plugin off and the site usually comes straight back. Your content is still there.

What it looks like

If the site is down and you didn't update anything, start with the website down checklist instead.

Flowchart: if the recovery email arrived, use recovery mode to deactivate the plugin; if not, rename the plugin's folder in your hosting. Then either roll the plugin back or restore a backup.
Two ways to switch the plugin off, then two ways to get it back

1. Check your email for the recovery link

When a plugin causes a fatal error, WordPress emails the site's admin address. The subject is "Your Site Is Experiencing a Technical Issue". It names the plugin that caused the problem and includes a link to recovery mode.

  1. Click the link and log in. Recovery mode pauses the faulty plugin for you, in your browser only, so you can get into the dashboard.
  2. Go to Plugins. Deactivate the one named in the email.

The link expires after a day. If the error happens again after that, WordPress sends a new one.

2. No email? Rename the plugin's folder

If the email never arrived, you can switch the plugin off through your hosting.

  1. Log in to your hosting control panel and open the file manager, or connect with FTP.
  2. Go to wp-content/plugins/.
  3. Find the folder for the plugin you just updated and rename it, for example contact-form-7 to contact-form-7-off.

WordPress can't find the plugin any more, so it deactivates it. Reload the site.

If you're not sure which plugin did it, rename the whole plugins folder to plugins-off. That switches every plugin off at once. Once you're back in, rename it back and turn plugins on one at a time until the site breaks again.

3. Find the actual error (optional)

If you want to see what went wrong, add these lines to wp-config.php, above the line that says "That's all, stop editing!":

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Errors are then written to wp-content/debug.log instead of shown to visitors. Set WP_DEBUG back to false when you're done, and delete the log file.

4. Get the old version back

With the plugin off, the site works but you've lost whatever the plugin did. A booking form or a shop plugin can't stay off for long. You have two options.

Option How Watch out
Roll back the plugin The free WP Rollback plugin puts a plugin from the WordPress.org directory back to an earlier version. It doesn't work for paid plugins bought elsewhere; the developer's account area often has older versions to download. Turn off auto-updates for that plugin until a fixed version comes out, or it will update itself again.
Restore a backup If you have a backup from before the update, restoring it puts everything back as it was. Anything added since, such as new orders or form entries, may be lost, so note those first.

5. Tell the plugin developer

Post in the plugin's support forum on WordPress.org, or contact the developer if it's a paid plugin. Include:

Often a fix is already on the way. Wait for it before updating again.

How to stop it happening again

More on keeping a site in good shape in website maintenance in NZ.

When to get help

Some of this is easy to get wrong. Get someone in if:

If you're not sure what state your site is in, our free website check will tell you what's out of date and whether it's backed up.

Is your site slow on phones, out of date or marked "Not secure"?

Put in your web address and find out free in about 30 seconds.

Rather not deal with this yourself?

Safe does your updates for you and keeps a daily backup, so if an update breaks something, we put it back. We watch the site around the clock, so we usually know before you do. Safe is $95 a month + GST, with no setup fee and no fixed term.