Child pages
  • Updating PrestaShop

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If upgrading from a version between v1.3.x and v1.4.3

No version of PrestaShop below v1.4.4 supported the automatic upgrade until v1.4.4. Therefore, automatic upgrade is not available to you unless you install the autoupgrade module. It is still an experimental module, so try it at your own risks!You can download the module, and follow its instructions, on this forum thread. Please note that you need to be logged in the forum in order to download the module. Once installed, follow the instructions from this threadmanually upgrade to at least v1.4.4.

Manual upgrade

Step 1 – Save and Backup Your Current Store

...

Warning
titleCaution

Disabling your store is very important.
By doing so, you make sure that there is no activity on your store while you are updating it. Therefore, if you ever have to revert to the update previous version using a backup, you won't have lost any unfinished carts or orders.

...

  • /mails folder has all the mails that you have modified.
    If you have never made any modification there, do not worry about this folder.
  • /img folder contains your logo and all the pictures of your store (categories, products…)
  • /modules folder, only copy the modules that you have added.
  • /themes/yourtheme folder, only copy your current theme. If you use the default theme from PrestaShop, do not copy it, you must use the one from the new version.
  • /download and /upload folders, which contain all the downloadable products, the attached files and the customizable products. If you do no use any of these functionalities, do not copy these folders.
  • /classes folder: in case you have added customized classes to this folder, copy them to the new /classes folder.
    In order to function properly with the latest version of PrestaShop, all these class files need to have their class name suffixed with "Core":
    • Open each and every one of the class files, and find the ones where the class name is not Core-suffixed. If you are upgrading from PrestaShop 1.4.x, you shouldn't have any (except for custom classes).
    • Rename the class name, adding the "Core" suffix. For instance, "MyClass" becomes "MyClassCore".
      Only change the name in the PHP class within file, not the name of the file itself!
    • If all the files already have "Core" in their classname class name (such as "class AttributeCore extends ObjectModel"), then you do not need to change anything.
    • Save the edited files.
  • /config folder, only copy the settings.inc.phpfile, then modify the following lines:
    • The line that contains "PS_BASE_URI" must contain the name of the subfolder where you are going to do your update. For instance, "/prestashop/" instead of "/", or of the name of current folder for your current store.
    • If you modified your database credentials (you should not have had to do that normally), update all the lines that contain "DB_NAME", "DB_USER" and "DB_PASSWD" too.

...

Tip
titleDid you follow these 5 steps?
  1. Downloaded PrestaShop
  2. Unzipping the downloaded .zip file
  3. Manual copy of the folder of step 2.B
  4. Transfer the whole directory whole "prestashop" directory onto your FTP
  5. Edited the PS_BASE_URI line from the config/settings.inc.php file

If you answered yes to all the questions above, then proceed to step 3.

...

Visit your shop's install script URL; for instance: http://www.myprestashop.com/prestashop/install (Replace "myprestashop.com" with the actual URL of your store, and "prestashop" with the name of the folder that you have just transferred to your FTP).

That URL should show:

Image RemovedImage Added

  1. Select "Update" instead of "Installation".
  2. Read the license agreement, then select the option "I agree to the above terms and conditions".
  3. Click on the "Next" button.

If you did follow the first step of this guide concerning back-ups, you can click "I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade."
If you did not do the required back-ups or if you did not have a chance to verify the data's integrity and that these backups are functional and recent, please go back to step 1 of this guide.

Image Removed

...

Image Added

When clicking the "I certify..." checkbox, the update displays more safety instructions that you should follow. Read them carefully and follow them before you click on the "Next" button.

The parameters of your hosting provider should show on the screen, as well as more details about the operation about to be launched.

...

Otherwise, click the "Next" button at the bottom of the page.

Verifying all parameters before the update

If sufficient rights are assigned to your files and folders, the following page will show:

Image RemovedImage Added

If not, make sure that the folders' rights are properly configured: change the access rights of the folders marked in red in the install/update tool, directly on your FTP server (make a CHMOD 755 or 775, depending on your hosting provider) then click the "Refresh these Check my settings again" button.
In order to perform a CHMOD, using your FTP client, find the folders that have the wrong permission settings, right-click on each of them in order to display their properties (or even better, their access rights), and tick the boxes that are not yet ticked, until a refresh of the "System and Permissions" page gives you only green folder.

If the configuration validator indicates that folder that do not exist do not have the correct permission (for instance, the Smarty /cache and /compile folders), simply create these folders using your FTP client.

Once you're done, click "Next" at the bottom of the page, the update will start and probably last a few minutes.

...

Once the update is finished, you should see the following screen:

Image Removed

final screen, announcing that "Your update is completed!"

On your FTP server, inside the "prestashop" folder, you should delete:

  • The {{/install} folder (this subfolder contains the update tools).
  • The README files (contain information about the PrestaShop install).
  • The CHANGELOG file (contains information about the latest changes in PrestaShop).

...

Tip

Testing To-Do List (this is not a complete list, you should do as much testing as possible):

  • All pages load properly (Home, Categories, Products…)
  • Create a customer account
  • Place an order (add to cart and order)
  • Verify that payments work properly (credit card, PayPal, etc.)
  • In the Back Office, check that the order was properly placed and received
  • Send an email from the contact page or "Forgot my password"
  • Check the resulting invoice
  • Check all the modules that you have activated

If every test is successful, congratulations! Proceed to step 5.

Step 5 - Going live with your Up-to-Date Store

...

Swapping your updated store and your production store

...

Congratulations, you have achieved all the essential steps to update your store!

...

In some rare cases, some modules are not compatible with new version of PrestaShop. You should contact the company / person that provided you with this module to request a few code changes to bring it up to date.

Rolling back your database

...

Warning

Only proceed to this step if you have no other way out

...

 

If your update went bad and you do not see any other fix than to roll back to the previous version of your database, there are two mains way of doing so:

...

  • Import your backed up data via phpMyAdmin
    This is typically done by the database tools provided to you by your hosting provider, most often phpMyAdmin.
    You will find the backup data under the /admin/backups folder.
    If the size of your database is too big, you might encounter an error message. If so, you might need to ask your hosting provider for help by changing the size of the database maximum upload.
    You can also download the database from within your back office. Visit "Tools" then "DBBackup". Select your latest database nackup backup and download it to your computer by clicking on it. It should typically take between 1 and 20 minutes to download.

...