PrestaShop broken after updating: how to roll back without losing orders

PrestaShop broken after updating

Someone clicks “update” and the shop stops working: a blank screen, a 500 error, the product page without a price or a cart that will not move forward. The first impulse is to restore the backup from before, and it is the one that costs the most money, because the backup from before does not have the orders or customers that came in afterwards. If the shop was selling between the backup and the problem, restoring without more is deleting those sales.

Below you will find how to know what broke, how to see the real error and how to roll back without losing what came in in the meantime.

First: what was updated

A module is not the same as the whole of PrestaShop, and there is a third case almost nobody suspects: that you did not update anything and the hosting did.

What was updated Typical symptom How to undo it
A module Only one part fails: payment, shipping, a page or a block Going back to that module’s previous version, or disabling it
PrestaShop Almost everything fails, or the back office does With the update backup, saving the new orders first
The theme The shop looks broken but the back office works Going back to the theme’s previous version
The server’s PHP Everything fails at once, without anyone touching anything Asking the hosting for the PHP version you had, while the shop is adapted
What was updated when PrestaShop broke
Diagnosis.

If nobody on your team has touched anything and the shop has gone down, ask the hosting whether it has changed the PHP version. It happens more than it seems, especially when a version stops being supported. We explain it in the PHP flaw and your PrestaShop shop.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

How to see the real error

With a blank shop you know nothing. You need to see the error message.

  1. If you can get into the back office, enable debug mode in Advanced Parameters > Performance. The shop will show the error instead of a blank page. Do it with the shop in maintenance mode and your IP allowed, so customers do not see it, and turn it off when you finish.
  2. If you cannot get into the back office, debug mode is enabled in a configuration file, or you check the server’s error logs from the hosting control panel.

The error almost always names a file, and that file’s path tells you who is to blame: if it is inside /modules/, it is a module; if it is in /themes/, the theme; if it is in the core, the PrestaShop update. Step by step, in how to find the cause of a 500 error.

If it was a module

It is the most common case and the easiest. From Modules > Module Manager, disable the module the error points to and check that the shop comes back. Then:

  • If the module is essential (payment, shipping), go back to the previous version with the developer’s file and ask them for a fix.
  • If it is not, leave it disabled until there is a version that works, and uninstall it if there is not.

If the back office does not load either, you disable it by renaming the module’s folder via FTP. It is an emergency measure: afterwards you have to put the name back and disable it from the manager.

If it was PrestaShop: rolling back without losing orders

If the update was done with the official assistant, that same module lets you update, back up and restore the shop, and it has an option to restore from a backup if you made one during the update. PrestaShop recommends letting the assistant make its own backup, because that way it can roll back immediately if something fails.

But watch the order, because that backup is from before the update:

  1. Put the shop in maintenance mode so no more orders come in.
  2. Extract what came in since the update: orders, new customers and messages, from the back office lists or with an export. Also note any stock changes you made by hand.
  3. Restore the backup.
  4. Put back in what you extracted, and check the stock of the products sold.
  5. Take the shop out of maintenance and place a complete test order.

If the update was done by hand or without a backup, there is no roll-back button. Then you have to fix forwards, finding out what broke, and not blindly restore a backup when you do not know how old it is.

Rolling back a PrestaShop update without losing orders
In this order.

Why it breaks when updating

It is almost never PrestaShop itself. It is the pieces that depend on it:

  • Modules that are not compatible with the new version, especially those that touch the core to change its behaviour.
  • An old commercial theme, built for a previous version. We explain it in how to choose a PrestaShop theme.
  • Changes made directly in PrestaShop’s files instead of in a module or a child theme. The update overwrites them.
  • The PHP version, which the new PrestaShop version requires to be higher, or which the hosting raises and the old shop cannot handle.

That is why the rule for updates is the same as for modules: first on a copy of the shop, and only when it works, on the real one. We explain it fully in how to update PrestaShop.

Why PrestaShop breaks when updating
The pieces that depend on it.

What changes when it is done properly

The result of rolling back a PrestaShop update properly
Selling again the same day.

Done in order, the shop is selling again the same day, no order is lost and you know exactly which piece failed, so the next update does not repeat the scare. Done the wrong way round, you recover a shop that works but with orders from customers who no longer exist in your back office, and you find out when they call asking about them.

The checklist before updating

Almost everything that breaks when updating can be avoided with an hour of preparation. Before clicking the button:

  1. A full backup of files and database, stored off the server, and checked.
  2. Note the exact version of PrestaShop, PHP and each module, so you know where to go back to.
  3. Read the new version’s release notes: what changes, which PHP versions it supports and which modules are affected.
  4. Check compatibility of the theme and the payment, shipping and ERP modules with the new version.
  5. Do the update on a copy of the shop first and test the complete purchase process there.
  6. Choose the moment: low traffic, never during a campaign or before a weekend, and with someone available to check afterwards.
  7. Tell the team not to touch the back office for a while.

What to test right afterwards

When you finish, a fifteen-minute test tells you whether everything went well:

What How
Home, category and product page Open them on desktop and mobile, logged in and logged out
Search and filters Search for a product and apply two filters
Cart and order Add a product, change the quantity and get to payment
Payment A test order with each payment method, or at least the main one
Emails Check that the order confirmation and the shop notification arrive
Back office Open orders, products and modules without errors
Errors Check the server’s error log and PrestaShop’s

If something fails, it is better to know at that moment, with the backup just made and the cause still easy to find, than the next day with orders in between.

What breaks if you get it wrong

  • Restoring the backup without extracting the new orders first. They disappear from the back office, even though the customer has already paid.
  • Restoring only the files or only the database. A shop with files from one version and a database from another does not start, or starts broken.
  • Leaving debug mode on. It shows anyone internal information about your shop.
  • Deleting the folder of the failing module. You disable it, you do not delete it.
  • Updating again without knowing what failed. It breaks again at the same point.

In short

  1. Before restoring the backup, know what was updated: PrestaShop, a module, the theme or PHP.
  2. The real error is in debug mode and in the server logs.
  3. If it was a module, disable it or go back to its previous version.
  4. Roll back without losing the orders that came in after the backup.
  5. Always update with a backup, on a copy of the shop first and with a full test afterwards.

When you cannot do this yourself

Disabling a module from the manager and putting the shop in maintenance mode is something you can do. Reading the error, restoring a PrestaShop update without losing the orders in between or adapting a module or theme to the new version needs someone technical. It is part of PrestaShop maintenance, where updates are tested on a copy first, and of what we do when upgrading PrestaShop (in Spanish) to a new version.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

Frequently asked questions

What do I do if my PrestaShop goes blank after updating?

Enable debug mode or check the server’s error log to see the real error. It almost always points to a module, the theme or the PHP version. Restoring the backup without knowing can lose the orders that came in afterwards.

How do I go back to a module’s previous version in PrestaShop?

If you kept the previous version, you replace the module’s files with that version’s and check whether the update changed the database. If you did not keep it, you have to ask the developer for it.

Are orders lost when restoring a PrestaShop backup?

Yes, if the backup is older than those orders. That is why, before restoring, you have to export the orders, customers and payments that came in since the backup, or fix the error without restoring.

How often should PrestaShop be updated?

Security updates are worth applying soon. Major version changes are planned, tested on a copy and done at a quiet time.