Jump to content

Upgrading from 1.2.5 to 1.5


Recommended Posts

I followed these instructions but it didn't work. I don't really understand when it says "Copy the files that you backed up during Step 1 to the "prestashop" folder in your desktop." (Step 2, 2nd point). Does that mean I should put all my current prestashop files (v1.2.5) into the folder of the prestashop folder of the version I am upgrading to (v1.5)? In that case, how about the files with the same name?

 

  • Save and Backup Your Current Store
    • Deactivate your store ("Maintenance" page of the "Preferences" menu).
    • Back up your files to your desktop, using your FTP client.
    • Back up your database ("Advanced Parameters/DB Backup" page, or using phpMyAdmin).
    • Back up your customized translation ("Export a language" section in "Tools/Translations" tab).

    [*]Getting ready for the new version

    • Download and unzip the latest version of PrestaShop: http://www.prestashop.com/en/download.
    • Copy the files that you backed up during Step 1 to the "prestashop" folder in your desktop.
    • Transfer the "prestashop" folder from your desktop to your FTP server (keeping your original files intact for now).
    • Checks to perform before going any further:
      • Access the /prestashop/ folder with your browser and check that everything works fine before going to the next step.
      • Access the back-office.

    [*]Starting the Update

    • Launch the update script by accessing it with your browser. In version 1.5, it is located at /install/upgrade/upgrade.php.
    • Verification of all parameters before the update: follow the instructions on screen and make sure your server conforms to the new version technical requirements.
    • Finishing the update: once the updater has finished, delete the /prestashop/install folder and access both your front and back-office to make sure it works.

    [*]QA and Testing

    • Import your translations ("Import a language pack manually section in "Localization/Translations" page).
    • Check that the main domain name is correct ("Preferences / SEO & URLs" page, "Shop URL" section).
    • Regenerate your robots.txt files ("Preferences / SEO & URLs" page, "Generate robots.txt" section).
    • Check that your theme still works as expected. If not, you will have to edit its files.
    • Test your store thoroughly: create accounts, buy products, cancel orders, check invoices, etc.

    [*]Going live with your up-to-date store

    • Swapping your updated store and your production store: your store is updated and fully functional in the /prestashop folder, and your older store is deactivated at its normal URL. They both have the same content: products, pages, images, theme, modules, etc. It is time to swap the two. Either:
      • Move all files from /prestashop to the normal URL, replacing the old files with the new ones.
      • Upload your files from your desktop to the old version's URL, replacing the old files with the new ones.
      • Move the old files to a new folder (i.e. /oldshop) and move the updated store from the /prestashop folder to the normal one.

      [*]Activate your store ("Maintenance" page under the "Preferences" menu).

Link to comment
Share on other sites

  • 2 months later...

Hello minh,

 

 

I can confirm you I did that update straight from PS 1.25 without any issue.

 

It will end up with some MySQL errors which are irrelevent I did check mine, script was trying to apply changes which were already there (check your own errors because sometimes mysql server can die on you).

 

Basically in order to have that update work straight from 1.2.5 directly on your distant server after you made a proper & full backupof your current store (if you do not know what you are doing, hire someone who does or you may end up loosing datas and all you can blame for it is yourself if you were not cautious enough) you need to make sure of those few things:

 

1- disable and move away any non-native module from the module folder.

2- if you are using a custom theme, move back to the default one.

3- MAKE SURE ALL OF YOUR FILES AND DB ARE BACKED UP PROPERLY (on different mirrors preferably)

4- tar -xvf prestashop152.tgz on your previous file. Overwrite all.

5- launch site/install/upgrade/upgrade.php

 

If you are lucky that will work from first first attempt (you will have mysql errors! check if they are normal one or if mysql died), if not start over by replacing files from your original backup AND the DB (DO NOT FORGET to drop all tables from the datables first, assuming you only have PS on that datables, otherwise get rid of the PS tables only).

 

Before going to the store make sure to get into the backoffice using the normal procedure to make the needed adjustments, modules, themes, files-regeneration etc etc...

 

 

Hope this helps.

 

Cheers.

Link to comment
Share on other sites

  • 5 months later...

Hello minh,

 

 

I can confirm you I did that update straight from PS 1.25 without any issue.

 

It will end up with some MySQL errors which are irrelevent I did check mine, script was trying to apply changes which were already there (check your own errors because sometimes mysql server can die on you).

 

Basically in order to have that update work straight from 1.2.5 directly on your distant server after you made a proper & full backupof your current store (if you do not know what you are doing, hire someone who does or you may end up loosing datas and all you can blame for it is yourself if you were not cautious enough) you need to make sure of those few things:

 

1- disable and move away any non-native module from the module folder.

2- if you are using a custom theme, move back to the default one.

3- MAKE SURE ALL OF YOUR FILES AND DB ARE BACKED UP PROPERLY (on different mirrors preferably)

4- tar -xvf prestashop152.tgz on your previous file. Overwrite all.

5- launch site/install/upgrade/upgrade.php

 

If you are lucky that will work from first first attempt (you will have mysql errors! check if they are normal one or if mysql died), if not start over by replacing files from your original backup AND the DB (DO NOT FORGET to drop all tables from the datables first, assuming you only have PS on that datables, otherwise get rid of the PS tables only).

 

Before going to the store make sure to get into the backoffice using the normal procedure to make the needed adjustments, modules, themes, files-regeneration etc etc...

 

 

Hope this helps.

 

Cheers.

 

Hello Muad'Dib,

I have one question. On #1, you say "disable and move away any non-native module from the module folder". My question is, how do you "move away" the module. Do you have to delete the files via FTP on your system? or just uninstall it from the MODULES section on the back store?

Please advise,

Thank you.

Edited by myjaguar (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...