01 Skip to the content
WorkPrices

Problem guide · WordPress

What do I do when my WordPress site breaks after an update?

A breakage after a WordPress update often comes from a plugin or theme that does not work with the new version, or an update that stopped halfway. WordPress's own documentation says to check the admin email and the error log, deactivate plugins and reactivate them one by one, switch to a default theme, and remove a leftover maintenance file. Without a login, use the hosting file manager. If nothing works, restore your backup.

By GravenReach Media · Updated

Kellbrook website: The same sample site, on a laptop
Kellbrook websiteThe same sample site, on a laptop

Match what you see to the fix WordPress documents

You updated WordPress, a plugin or the theme, and the site broke

  1. 1Does the site say it is briefly unavailable for scheduled maintenance?

    YesDelete the .maintenance file in the site's root folderWordPress docs 1

  2. 2Does it say "There has been a critical error on this website"?

    YesCheck the site admin email for WordPress's message, then turn on the debug log and read itWordPress docs 1,2

  3. 3Is it a blank white screen, and can you still log in?

    YesDeactivate all plugins, then reactivate them one at a time until it breaks againWordPress docs 1

  4. 4Is the dashboard unreachable too?

    YesIn the host's file manager or FTP, rename wp-content/plugins to plugins_oldWordPress docs 1

  5. 5Did it break after a theme update or change?

    YesSwitch to a default WordPress theme to testWordPress docs 1

  6. 6Does it show Internal Server Error?

    YesRename .htaccess to .htaccess_old, then reset permalinks to make a fresh oneWordPress docs 1

Still broken: restore the backup you took before updating, then ask your host

Symptoms and fixes from WordPress's Advanced Administration Handbook, Common WordPress errors 1; backup advice from Updating WordPress 3.
On this page

Why an update breaks a site that worked yesterday

A WordPress site is the core software plus a theme and a set of plugins, often from many different authors. When one of them updates and another has not caught up, they can clash. WordPress's documentation lists the common results: a blank white screen with no information, which can come from PHP or database errors; a message that the update failed; or the site stuck in maintenance mode because the update did not finish 1. The host can play a part too: WordPress names running an incompatible PHP version among the common causes of a critical error 1, and its requirements page recommends a recent PHP version 5.

None of this is a reason to stop updating. WordPress says older versions are not maintained with security updates, and recommends keeping up with the latest version 4. The aim is to update in a way you can undo.

The fixes WordPress documents, in the order to try them

Work from the quickest fix to the last resort

  1. Clear a stuck maintenance message

    Log in by FTP or the host's file manager and delete the .maintenance file in the site's root 1.

  2. Find the plugin at fault

    Deactivate all plugins and reactivate them one by one. Without dashboard access, rename the plugins folder to plugins_old to turn them all off 1.

  3. Rule out the theme

    Switch to a default WordPress theme; if the site returns, the theme is the problem 1.

  4. Clear an Internal Server Error

    Rename .htaccess to .htaccess_old, load the site, then save the permalinks settings to make a fresh file 1.

  5. Restore the backup

    If nothing works, restore the backup taken before the update and replace the files from the previous version 3.

When the cause will not show itself, turn on the error log, not the error display

WordPress has a debugging mode. Its documentation shows how to switch on WP_DEBUG with WP_DEBUG_LOG, which writes errors to a debug.log file in the wp-content folder, while WP_DEBUG_DISPLAY set to false keeps them off the screen. It also says the debug tools are not recommended on live sites; they are meant for local testing and staging 2. On a live site, if you must, switch on the log only, read it, and switch it off again.

The log usually names the file that failed, and the folder it sits in names the plugin or theme. Give that line to the plugin's author or your host.

A shop's critical error, traced to one plugin

Next time: update so you can undo it

A safe update routine

  • Take a full backup, files and database, before updating 3.
  • Check that your plugins and theme support the new version 3.
  • Update a staging copy first where your host offers one.
  • Update plugins one at a time, checking the site after each.
  • Remove plugins you no longer use.
  • Keep WordPress itself up to date: old versions get no security updates 4.

Questions people ask

Should I turn off automatic updates?

Not for security reasons: WordPress says older versions are not maintained with security updates 4. Keep backups instead, and test larger updates on a staging copy.

I cannot log in to WordPress. How do I deactivate plugins?

Through FTP or the host's file manager: rename the wp-content/plugins folder to plugins_old, which deactivates all plugins 1.

Can I just show the errors on the site to see what is wrong?

WordPress advises against using its debug tools on live sites; write errors to the debug.log file with display turned off instead 2.

Will my content be lost?

Usually not: posts and pages are kept in the site's database, and deactivating a plugin does not remove them. Still, WordPress advises a backup before every update so you can restore if something does go wrong 3.

Sources

Every figure on this page, with where it came from.

  1. 1

    WordPress Advanced Administration Handbook, Common WordPress errors.
    Supports: white screen from PHP or database errors; plugin compatibility first; deactivate and reactivate plugins one by one; rename plugins folder via FTP; default theme; .htaccess rename for Internal Server Error; delete .maintenance file; failed auto-update symptoms

  2. 2

    WordPress Advanced Administration Handbook, Debugging in WordPress.
    Supports: WP_DEBUG, WP_DEBUG_LOG to wp-content/debug.log, WP_DEBUG_DISPLAY false; not recommended on live sites

  3. 3

    WordPress Documentation, Updating WordPress.
    Supports: back up before updating so you can restore; check plugins and themes before updating; restore backup and previous version files if problems

  4. 4

    WordPress Advanced Administration Handbook, Hardening WordPress.
    Supports: keep up to date with the latest version; older versions are not maintained with security updates; automatic updates since 3.7

  5. 5

    WordPress.org, Requirements.
    Supports: recommended host support for a recent PHP version, MariaDB or MySQL, HTTPS

Sites that keep breaking can be looked at under websites and landing pages.