vectran Posted December 2, 2009 Share Posted December 2, 2009 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 More sharing options...
jhnstcks Posted December 4, 2009 Share Posted December 4, 2009 You shouldnt copy over all the old modules to the new version as then you arent getting the benefit of any fixed modules (paypal is better in 1.2 than 1.1) You should just move any custom modules that are not included in the prestashop package. Link to comment Share on other sites More sharing options...
SN Deco Posted December 15, 2009 Share Posted December 15, 2009 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 More sharing options...
jhnstcks Posted December 15, 2009 Share Posted December 15, 2009 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 More sharing options...
SN Deco Posted December 15, 2009 Share Posted December 15, 2009 aparently, the new htaccess trick did a pretty good job. now i'm trying to generate new thumbnails, but i receive the same 500 error. any idea what can i do about that? Link to comment Share on other sites More sharing options...
jhnstcks Posted December 15, 2009 Share Posted December 15, 2009 Is the error appearing as soon as you try and regenerate the thumbnails or is it after a few minutes? Link to comment Share on other sites More sharing options...
SN Deco Posted December 15, 2009 Share Posted December 15, 2009 after a few minutes. Link to comment Share on other sites More sharing options...
jhnstcks Posted December 15, 2009 Share Posted December 15, 2009 Then that is because your server is timing out as its trying to to do the same action for too long. This is a common problem when you have a lot of images.The only solution i found was to contact my host and have them lift the timeout limit. Link to comment Share on other sites More sharing options...
SN Deco Posted December 15, 2009 Share Posted December 15, 2009 i'm talking wth my hosting provider right now and he provided me a few logs. should i post them here? Link to comment Share on other sites More sharing options...
SN Deco Posted December 15, 2009 Share Posted December 15, 2009 i talked to them, the raised the limit to 60 seconds, but after almost 4 minutes of waiting i have received the same 500 error.i google a little bit about this timeout php setting and i found this: http://php.net/manual/en/function.set-time-limit.phpi tried php_value max_execution_time 200 in .htaccess, but it gave me 500 error all over the place. Link to comment Share on other sites More sharing options...
jhnstcks Posted December 15, 2009 Share Posted December 15, 2009 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 More sharing options...
vectran Posted December 15, 2009 Author Share Posted December 15, 2009 I was generating about 500 images and it failed on me....Do you have Photoshop? You can batch convert them in a few minutes and then upload them... Link to comment Share on other sites More sharing options...
SN Deco Posted December 16, 2009 Share Posted December 16, 2009 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 More sharing options...
brandonc503 Posted February 9, 2010 Share Posted February 9, 2010 i am having same issue with regenerating thumbnails.. where would i put the .htaccess file with php_value max_execution_time so that it affects the regenerating script? Link to comment Share on other sites More sharing options...
howard Posted May 8, 2010 Share Posted May 8, 2010 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 More sharing options...
rocky Posted May 9, 2010 Share Posted May 9, 2010 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 More sharing options...
howard Posted May 20, 2010 Share Posted May 20, 2010 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 More sharing options...
rocky Posted May 20, 2010 Share Posted May 20, 2010 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 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