lucifer_1 Posted May 26, 2017 Share Posted May 26, 2017 (edited) I have a few old shops with a lot of failures. I tried a few times the 1 click upgrade from 1.5 to 1.6 but it never works, there are a lot of errors and i can't fix them.Now with Prestashop 1.7 i think (i hope) it is time to make an upgrade to 1.7 within a few weeks. Good idea?Or still a lot of issues with the 1.7? And how to manage?Build a new shop, make the layout... on a new domain? Or a folder on the current domain? And then? convert the database of the 1.5 prestashop to a 1.7 version? How to do that?And after the convert, do the import to the new shop? I saw that it is possible to buy a migration module. What does this module exactly? Edited May 26, 2017 by lucifer_1 (see edit history) Link to comment Share on other sites More sharing options...
gray Posted May 26, 2017 Share Posted May 26, 2017 You would have thought "convert the database" of any old version of prestashop into a 1.7 version, would have come as a standard function or module. Its causing me days and days of endless headaches. I am beginning to think its just not worth the hassle. Link to comment Share on other sites More sharing options...
Masteries Posted May 26, 2017 Share Posted May 26, 2017 (edited) 1.7 version is still unstable according to many developers. I recommend upgrading to the latest release of 1.6 instead. If you still want to upgrade to 1.7, you can try doing it manually. Here's what I did to upgrade from 1.6.0.6 to 1.7.1.0: 1. Download/export your entire Prestashop directory through FTP (or through whatever other means) to your desktop. 2. Download a fresh copy of the latest release. 3. Open those two folders side by side. 4. Move the following content to the fresh copy of Prestashop from your old: /mails. Has all the mails templates, including those that you have modified. If you have never made any mail template modification, do not worry about this folder. /img. Contains your logo and all the pictures of your store (categories, products, etc.). Take good care of these specific files and folders: logo.jpg - your store's logo favicon.ico - your store's favicon logo_stores.gif - your store's logo for the Store Locator's map /c - your categories' images /cms - your CMS page's images /co - your attributes textural colors /m - your manufacturers' logos /p - your products pictures /scenes - your categories' image-maps /st - your physical stores' photos /su - your suppliers' logos ...basically, copy all folders except /img/admin and /img/jquery-ui. /download and /upload. 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. In case you have added customized classes to this folder, copy them to the new /classesfolder. When updating from a version below 1.4, you must manually edit these classes that you have customized. You do not have to edit classes that you didn't customize. In order to function properly with the latest version of PrestaShop, all these class files need to have their class name suffixed with "Core". Do not attempt these if you are not comfortable with PHP files. Here is how to you should edit the customized files that you want to keep: Copy the class files that you have customized into the /classes folder in "prestashop-prep". 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 (such as "class AttributeCore extends ObjectModel"), then you do not need to change anything. Save the edited files. /config. You only have to copy one file, but it is essential: the settings.inc.php file. /translations - if you are using another language than the ones available in the default installation, you will have to copy that language's folder in the /translations folder of the new installation. Failing that, the update will not work properly. NOTE: Do NOT copy /modules and /themes folder as they're not compatible with 1.7. (You may also skip /classes if you don't know what you're doing). 6. Export your current database through phpMyAdmin or using some other program you're comfortable with. 7. On your hosting account, create a new database & user. 8. Edit your config file (settings.inc.php) to match with new database credentials. 9. Import the new Prestashop folder (where you moved your old data to) to your server through FTP or whatever other means. 10. Import the database you exported. 11. Go to this link: www.yoursite.com/install/upgrade/upgrade.php and wait until it stops loading. (This process will upgrade your database). 12. See if your site is up and running. Enable debug mode if you get ERROR 500 to find and fix it. 13. Don't forget to change your shop URL if you're using a different domain name in the database. You do this by going to the "ps_shop_url" table and edit the column "domain" and "domain_ssl" to your current one. NOTE: Do all this on a testing environment (use XAMPP if you're knowledgeable) or create a /test/ folder on your server. NOTE 2: You may get locked out of Back Office where it will say "Access denied" when you login, this can be fixed by deleting ps_access table in the new database and importing the one I've attached to this post. You can find more info here: http://doc.prestashop.com/display/PS16/Manual+update ps_access.zip Edited May 26, 2017 by Masteries (see edit history) 2 Link to comment Share on other sites More sharing options...
lucifer_1 Posted May 27, 2017 Author Share Posted May 27, 2017 (edited) Thank you so much for all this information! Is it worth it to upgrade to the latest stable version of 1.6 (it is a lot of work with the layout) or wait a few months more to upgrade to 1.7? Edited May 27, 2017 by lucifer_1 (see edit history) Link to comment Share on other sites More sharing options...
Masteries Posted May 27, 2017 Share Posted May 27, 2017 Thank you so much for all this information! Is it worth it to upgrade to the latest stable version of 1.6 (it is a lot of work with the layout) or wait a few months more to upgrade to 1.7? That's up to you. If you're in a hurry to upgrade your shop then go with 1.6, if not then wait until 1.7 gets more stable. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now