In short
- Stop making changes on the live store. Clicking update, reinstall or deactivate at random can make recovery harder.
- Protect orders first: note or export any orders placed since your last backup before you restore anything.
- Find the cause on a staging copy, test a full order, then change how you update so it does not happen again.
The first 15 minutes
Take a breath and work out what is actually broken. The answer decides what you do next.
- The whole site shows an error or a blank page.
- The shop works, but the admin area does not.
- The site looks fine, but customers cannot complete checkout or pay.
- The layout is broken, but orders still come through.
If customers cannot pay, that is the most urgent case, because every hour costs orders. If only the layout is affected, you have time to fix it carefully.
If you see “There has been a critical error”
Since WordPress 5.2, a fatal error triggers a protection mode. WordPress sends an email to the site’s admin email address with a special recovery mode link. Recovery mode pauses the failing plugin or theme for you only, so you can log in to the admin area and deactivate it, while visitors still see the error. Check the admin inbox, including the spam folder.
Restore, or roll back one component
You have two main options. Which one is right depends on how much has changed since the update.
A
Restore a full backup from before the update
How it shows
Best when several things were updated at once, or the database was changed during the update.
What to do
Ask your host for a restore point from just before the update, or use your own backup. Before you restore, record or export any orders, customers and messages received since that backup: restoring the database removes them. Re-enter them afterwards.
B
Roll back the one plugin that failed
How it shows
Best when you know which plugin caused the problem and it did not change the database.
What to do
Install the previous version of that plugin. Keep copies of previous versions for this reason. Be careful with major WooCommerce updates: if the update ran a database update, rolling back the plugin files alone can leave the store in an inconsistent state. In that case, restore the full backup instead.
Find the real cause on a staging copy
Once the store is working again, reproduce the problem on a staging copy, never on the live store. These are the causes we see most often:
- An extension that is not yet compatible with the new WooCommerce version, often a payment, shipping or subscription extension.
- Outdated WooCommerce template files in the theme. WooCommerce, then Status, lists template overrides that are out of date.
- A PHP version that the new version of a plugin no longer supports.
- A caching or optimisation plugin serving old files, or combining scripts that the new version changed.
- A payment gateway plugin that needs its own update to work with the new checkout.
The logs under WooCommerce, then Status, then Logs, and the server’s PHP error log usually point to the file and plugin involved.
Test the checkout before you call it fixed
- Place a test order with every payment method you offer, including cash on delivery and any local gateway such as bKash.
- Check that the order appears correctly in the admin, stock goes down and the customer and admin emails arrive.
- Check shipping costs for more than one location.
- Test on a phone, not only on a desktop browser.
How to stop it happening again
- Take a full backup, files and database, stored away from the server, before every update.
- Update on a staging copy first, then repeat the same updates on the live store.
- Read the changelog before major WooCommerce versions, and check your key extensions support them.
- Update one component at a time, and test between steps, so you know which one caused a problem.
- Update when the store is quiet, not during a sale or a campaign.
- Keep a short log of every update and every test result.
This is the work a maintenance plan covers. It is dull when it goes well, which is the point.