Jump to content

How I upgraded from 1.1.0.5 to 1.2.5.0


Recommended Posts

Just writing this to document how I easily upgraded from 1.1.0.5 to 1.2.5.0 (latest), it took me a few attempts, but this is how I did it in the end.

Original install was in the root directory (public_html). So the shop can be accesed at the root url not www.myshop.com/prestashop/.

I moved all the contents to a folder labelled 'oldinstall'. I then proceeded to edit settings.inc.php in public_html/oldinstall/config/ and changed the PS_BASE URI to:

define('__PS_BASE_URI__', '/oldinstall/');



I then uploaded all the files of the new install (1.2.5.0) to the public_html folder. I followed the instructions in the wiki, and copied the 'p' folder from the old 'img' folder (located in /oldinstall/) as well as copying all the contents from 'mails/', 'themes/' and 'modules/'. Lastly I also moved the old settings.inc.php to the new installation location (public_html/config/) so the installer knows where the old install is located.

Lastly I ran the install and it worked with no problems, am having to redo my custom theme though.

Please make sure you backup everything (several times) before trying an upgrade.

Link to comment
Share on other sites

  • 2 weeks later...

i am trying to upgrade from 1.1.0.5 to 1.2.5.0 (latest) and i am facing strange problems: right after i have upgraded, no product pictures we're displayed, even if i copied the img/p folder. A few hours ago, it started to show some pictures in the product page (but not all of them, replacing most of them with a picture with a question mark). almost 12 hours after i have upgraded prestashop, most of product pages are shown, except some categories images and those in the "viewed products" module i have in my right sidebar.

sincerly, i have no idea what's the problem! i tried to regenerate thumbnails from backoffice, but failed with a 500 server error. editing every product and category with problems is not an option, because in backoffice every picture is loaded and aparently, works fine.

i would also appreciate any help with home text editor, because after the upgrade i have lost my homepage text.

Link to comment
Share on other sites

1. did you generate a new htaccess file for the new prestashop version as it is a lot different from your previous version.

2. Now that you tried to generate new thumbnails and it failed, only half the thumbnails will be there now.

3. you need to transfer the xml file from the old editorial folder into the new folder and overwrite the old file, as this is where the homepage text is saved.

Link to comment
Share on other sites

Have you got the permissions set on your img/ folders and all folders inside the /img/ folder set correctly?

There is another of doing it but it is very long winded.

Basically you need to rename your img/p/ folder then create a new img/p/ folder. Then move some of the imgages from the old /p/ folder to the new folder. then regenerate the thumbnails. This will generate new images for these files. Then move the new images to a temporary folder. Repeat the process till you have generated new thumbnails for everything in your old /p/ folder. When thats finished moved all the newly generated thumbnails, that you moved to the tempoary folder to the new /p/ folder.

Aslong as you dont try and generate too many thumbnails you shouldnt have a problem with this method.

Link to comment
Share on other sites

i have managed to regenerate the thumbnails for the products, thanks to jhnstcks. i still have a few unsolved issues with category thumbnails, because they are being replaced by a question mark image, but i have backup and i think i'll upload them again (there are only a few of them).

the major problem i am facing right now it's the modules position. i edited their position and tried to make some pages (like the checkout page) look lighter than other. having to reposition them by hand sounds like a big pain. can you help me to import the old modules position settings? are they stored in mysql or in plaintext on the web server?

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
1. did you generate a new htaccess file for the new prestashop version as it is a lot different from your previous version.

2. Now that you tried to generate new thumbnails and it failed, only half the thumbnails will be there now.

3. you need to transfer the xml file from the old editorial folder into the new folder and overwrite the old file, as this is where the homepage text is saved.


Call me thick if you want but I can't find out anywhere in this forum, exactly what the " htaccess file" is. Unless it is the ps_access in the database ? all my htaccess files within the program are not accessible?
can anyone put me strait on this issue
Link to comment
Share on other sites

No, it isn't ps_access. The .htaccess file should be in the root directory of your PrestaShop. If you don't have friendly URLs enabled on the Preferences tab, you don't need it. If friendly URLs is enabled, you should create a blank .htaccess file in the root directory of your PrestaShop with chmod 666 permissions, then go to Tools > Generators and click "Generate .haccess file" to write the .htaccess file.

Link to comment
Share on other sites

  • 2 weeks later...

thank you for you help . That has solved that problem, and I have upgraded almost completely successfully to 1.2.5. But I cant get my original home page, it is the default is there anywhere I should look for it or do I have to rewrite it? I lost all my visits and visitors stats before upgrading alas the upgrade has not solved this problem. I have another shop on the same server so it isn't an issue with them CAN ANYONE HELP PLEASE

Link to comment
Share on other sites

If you overwrote modules/editorial/editorial.xml with the one that comes with PrestaShop, then you have replaced everything you entered in the "Home text editor v1.5" module with the default content. If you have a backup of your website, you can restore that file. If you haven't, you'll have to rewrite the content from scratch.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...