Guides

WordPress Site Broken After An Update? How To Fix It

WordPress site broken after an update: find what changed, check PHP and the error log, and get your content back

You clicked Update, or WordPress updated itself overnight, and now your site shows a blank page, an error, or a fresh install with none of your posts. It's a scary moment, and many people start rebuilding right away. If you have a WordPress site broken after an update, this article will help you.

We are here to help you find out what really changed and get your site and content back. This guide is based on five recent threads in the WordPress.org Fixing WordPress forum, WordPress's own source code, and our tests on a fresh WordPress 7.1.5 site in WordPress Playground, which we named Rahul Vithala.

Related Articles

Step 1: Don't Rebuild Anything Yet

In one recent forum thread, a site owner found all their pages and posts gone after an update, and they had started rebuilding. A forum member warned that if the host restores a backup later, anything rebuilt in the meantime can be overwritten. So pause first:

  • Ask your host whether they keep backups, and how far back they go.
  • Check your backup plugin, if you use one, for a recent copy.
  • Don't install, delete or "fix" anything until you know what changed.

Step 2: Find Out What Actually Updated

"An update" can mean four things: WordPress itself, a plugin, a theme, or the server your site runs on.

  • WordPress: after an automatic update, WordPress emails the site admin with the subject "Your site has updated to WordPress" and the new version number.
  • Plugins and themes: check the version numbers under Plugins and Appearance → Themes, and look for WordPress emails such as "Some plugins were automatically updated".
  • The server: your host can change the PHP version without you doing anything.

To see your WordPress version and how it updates, go to Dashboard → Updates. On our fresh test site, it said the site is kept up to date with each new version of WordPress.

WordPress Updates screen showing current version 7.1.5 and the message This site is automatically kept up to date with each new version of WordPress
Dashboard → Updates on our Rahul Vithala test site, a fresh install of WordPress 7.1.5 in WordPress Playground.

That's the default for new sites. Sites upgraded from a version older than 5.6 stay on maintenance and security releases only, unless someone changes the setting. In one forum thread, a moderator explained that a site still on WordPress 5.8 was getting only those smaller updates. They called that a good setting for a site whose plugins might not work with newer versions.

Step 3: Check Your PHP Version

In that same thread, two websites showed only a white page, though the owner hadn't changed anything. The moderator suspected a change on the hosting side, such as the PHP version. The owner checked with their host, and that was the problem. Setting PHP to 7.4 brought the sites back, but the host plans to retire PHP 7.4, so the sites still need updating.

You can see your PHP version under Tools → Site Health → Info → Server.

WordPress Site Health Info screen with the Server section open, showing the PHP version 8.3.36
The Server section of Site Health on our test site. Playground runs PHP in the browser, so the first two rows look different on a real host.

If the PHP version changed around the time your site broke, ask your host to switch it back for now. Then follow the safe update order at the end of this guide before you try a newer version again. Our guide to updating PHP in WordPress explains the PHP side.

If You See A Blank Page Or A Critical Error

A white page or "There has been a critical error" usually means a PHP error. In the white page thread, the moderator suggested switching to a default theme to rule out your theme. In the Elementor thread, the same moderator's first advice was to read the error log, and forum members added that the log usually names the plugin, theme or file that failed. You can find it in your hosting panel, or turn on WordPress debugging to write one to wp-content/debug.log.

In another thread, a team couldn't log in after updating the Elementor plugin. A moderator explained that they'd need hosting or FTP access to fix it, so find out who hosts your site first. Our guides to the critical error and the white screen of death show how to switch off the plugin or theme that's causing it.

If Your Pages And Posts Are Gone

In the thread about missing content, several forum helpers said the same thing: a normal WordPress update doesn't delete your posts and pages. When a site suddenly looks like a fresh install, with one "Hello World" post, one helper said it might be pointing to a new database. Another forum member suggested these checks before rebuilding:

  1. Open wp-config.php and note the database name (DB_NAME) and the table prefix ($table_prefix).
  2. In your hosting panel, look at your list of databases. If there's an older one besides the database named in wp-config.php, your content is probably still there.
  3. Open the current database in phpMyAdmin and look for two sets of tables with different prefixes, such as wp_ and wp2_.

If your old content is still there, your host or a developer can point the site back to it. Back up the current files and database before anyone edits wp-config.php.

Another forum member checked the Wayback Machine at web.archive.org for old copies of the pages. It had none for that site, but it may have yours.

If Your Additional CSS Disappeared

One forum user found the Additional CSS box in the Customizer empty after an update. The CSS was still in the database, with several revisions, and they restored it from there. Nobody in the thread found the cause.

We tested how WordPress stores this CSS, in code rather than through the Customizer. On our test site, we saved CSS twice with wp_update_custom_css_post(), the function the Additional CSS box uses, and WordPress kept two revisions. Then we switched to a child theme, and the CSS came back empty. When we switched back to the parent theme, it returned. WordPress saves Additional CSS separately for each theme.

So if your CSS has vanished, first check that the same theme is active, not a child theme or a different theme. A WPMU DEV support team member in the thread also advised against adding the CSS again until you've checked the database. Saving over it could replace the old version.

If A Plugin Update Broke Something

WordPress has two safety nets for plugin updates:

  • Since WordPress 6.3: if a manual plugin or theme update fails partway, WordPress restores the previous version from a temporary backup.
  • Since WordPress 6.6: if an automatic update of an active plugin causes a PHP fatal error, WordPress rolls that plugin back.

Neither one helps when the update finishes and the plugin simply works differently. In one thread, a user blamed WordPress when their expand and collapse sections started working differently after an update. A moderator pointed out that the shortcode came from the Collapse Magic plugin, so that plugin's support forum was the place to ask.

If a plugin update broke your site, you have two options:

  • Switch it off: rename its folder in wp-content/plugins, as our critical error guide shows.
  • Go back one version: on the plugin's WordPress.org page, open Advanced View and download an earlier version under Previous Versions. Upload it under Plugins → Add Plugin → Upload Plugin, and WordPress offers to Replace current with uploaded. WordPress.org warns that previous versions may not be secure or stable and doesn't recommend them for live sites, so use one only as a short-term fix until a fixed update comes out.

How To Update Safely Next Time

In the white page thread, the moderator gave a clear order for updating an old site. Most of it applies to any site:

  1. Make a backup you can download, so you don't depend on your host to restore it.
  2. Update your theme.
  3. Update all your plugins. Look closely at any that don't offer updates, because they may not work with newer PHP versions. Find alternatives for those.
  4. Once WordPress, your theme and your plugins have no updates left, move to a newer PHP version. If anything breaks, switch back and check the error log.

Test big updates on a copy of your site first. Many hosts offer a staging copy, and our guide to updating WordPress safely covers the update itself.

Common Mistakes To Avoid

  • Rebuilding before you check for backups: a restore later can overwrite your new work.
  • Pasting your CSS back in too soon: you may save over the version you're trying to recover.
  • Jumping several major versions on a live site: test the update on a staging copy first.
  • Keeping backups only with your host: in one thread, the host said there was nothing it could do and advised rebuilding the site. Our list of free backup plugins can help.

WordPress Site Broken After An Update: FAQs

Can a WordPress update delete my posts?

A normal update doesn't remove your posts and pages, as several forum helpers pointed out. If your content is missing, check whether the site is using a different database or table prefix, as shown above.

Why did WordPress update without asking me?

WordPress installs maintenance and security releases automatically, and new sites also get new major versions automatically. You can change this under Dashboard → Updates, unless your host, a plugin or a setting in your wp-config.php file has locked it.

Can I undo a WordPress update?

WordPress has no undo button for a finished update. Restore a backup taken before the update, or ask your host to restore one.

Final Words

When your site breaks after an update, find out first what changed: WordPress, a plugin, a theme or the server's PHP version. Then check the error log, your database and your backups before you rebuild anything. Let us know in the comments which update broke your site.

Sources

We checked these sources for this guide on November 30, 2026:

#Beginners#Troubleshooting#WordPress Update