MoOoG Posted November 26, 2014 Share Posted November 26, 2014 (edited) I'm new to prestashop. Yesterday I upgraded my prestashop dashboard with "1-click Upgrade" module from version 1.4.8.2 to 1.6.0 stable. After the upgrade the whole website template was changed and some images were missing, so i decided to rollback the versions. At first it seemed everything was OK, but today I noticed some images on the site are missing/or I might have wrong URL's to the images (I don't know how it was before). I also did backups of database and website. I checked the URL of a missing image and it doesn't exist even in the backup folder. Any idea what is going on? Here is an example of error i get in the browser: Failed to load resource: the server responded with a status of 404 (Not Found) I tried to run image regeneration and this error was returned: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your >request. Please contact the server administrator, webmaster@{mywebsite}.com and inform them of the time the >error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Edited November 26, 2014 by MoOoG (see edit history) Link to comment Share on other sites More sharing options...
MoOoG Posted November 27, 2014 Author Share Posted November 27, 2014 Nothing? Link to comment Share on other sites More sharing options...
musicmaster Posted November 27, 2014 Share Posted November 27, 2014 The 1-click upgrade and specially the rollback procedure are not particularly reliable and you are always recommended to make a complete backup of both the database and the files and not to rely on the backup of the 1-click procedure. As for your questions: questions should be specific. You don't mention the urls where the site looks for pictures and cannot find them. And you don't switch on debug mode and report the specific errors. So how can we help you? Link to comment Share on other sites More sharing options...
MoOoG Posted November 27, 2014 Author Share Posted November 27, 2014 The 1-click upgrade and specially the rollback procedure are not particularly reliable and you are always recommended to make a complete backup of both the database and the files and not to rely on the backup of the 1-click procedure. As for your questions: questions should be specific. You don't mention the urls where the site looks for pictures and cannot find them. And you don't switch on debug mode and report the specific errors. So how can we help you? I made a complete database and website backups. The images url (which aren't found) is usually like this: GET http://{thewebsite}.com/img/c/sl-default-medium.jpg 404 (Not Found) I think "sl-default-medium.jpg" is defined by prestashop and ofcourse, it's not found on server because it's not there. Some images have the right URL and some have the wrong URL. I could normally define the URL by myself but there are plenty of images on the server and I don't know which are the right ones for the articles. My question is if there is any way to get the website back to the state where all the paths were right (or I will have to do it by my own)? As I mentioned image regeneration returs an error and it deletes some of the pictures from the server, so i have to use my backups to upload them back on server. Link to comment Share on other sites More sharing options...
musicmaster Posted November 27, 2014 Share Posted November 27, 2014 My suggestion would be just to get the site back from the backup. When looking at http://{thewebsite}.com/img/c/sl-default-medium.jpg I notice the following things: - these are either language or country icons. - on my own site and also on an old 1.4 backup I see only "no image found" images for those images - image generation generates images from the mother image (here sl.jgp). - sl-default-medium.jpg sounds like an 1.5/1.6 image. 1.4 images don't have the "default" in their name. - one possibility is that you are still using the 1.6 theme Link to comment Share on other sites More sharing options...
MoOoG Posted November 27, 2014 Author Share Posted November 27, 2014 (edited) My suggestion would be just to get the site back from the backup. When looking at http://{thewebsite}.com/img/c/sl-default-medium.jpg I notice the following things: - these are either language or country icons. - on my own site and also on an old 1.4 backup I see only "no image found" images for those images - image generation generates images from the mother image (here sl.jgp). - sl-default-medium.jpg sounds like an 1.5/1.6 image. 1.4 images don't have the "default" in their name. - one possibility is that you are still using the 1.6 theme No, the theme is the same as it was. I just found out all the missing images have image path as "/img/c/sl-default-medium.jpg". I tried to run image regenerate by unchecking "delete previus images" - and i got this error: It is not possible to write "no image" image (categories) image file. Check the permissions for writing this file. ...i don't know how to get permission for writing. In FileZilla I clicked right click on "img" file and choose > file permission and checked owner, group and public permission to write. ->I still get the same error. About the backups - as i was adviced I only created a backup of "public_html" and i already rewrite it with the new one on the server - ofcourse, the problem stays the same. EDIT: One more question - i hope it's not dumb... After rollback, should I also use and upload a backup of my database? The question is, if the database of my prestashop was also changed after the update to 1.6? Edited November 27, 2014 by MoOoG (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted November 28, 2014 Share Posted November 28, 2014 No, the theme is the same as it was. I just found out all the missing images have image path as "/img/c/sl-default-medium.jpg". I tried to run image regenerate by unchecking "delete previus images" - and i got this error: It is not possible to write "no image" image (categories) image file. Check the permissions for writing this file. ...i don't know how to get permission for writing. In FileZilla I clicked right click on "img" file and choose > file permission and checked owner, group and public permission to write. ->I still get the same error. About the backups - as i was adviced I only created a backup of "public_html" and i already rewrite it with the new one on the server - ofcourse, the problem stays the same. EDIT: One more question - i hope it's not dumb... After rollback, should I also use and upload a backup of my database? The question is, if the database of my prestashop was also changed after the update to 1.6? To start with the last: yes a backup includes a backup of the database. That is the most important part as that is what contains your products and orders. And yes, the database was considerably changed from 1.4 to 1.5 - mostly due to the introduction of multistore. In addition part of the database is configuration: which image formats are enabled, which modules are enabled, which languages are enabled, etc, etc. The Prestashop rollback is supposed to roll back both the files and the database. BTW. do you use the default theme in 1.4? Link to comment Share on other sites More sharing options...
MoOoG Posted November 28, 2014 Author Share Posted November 28, 2014 (edited) To start with the last: yes a backup includes a backup of the database. That is the most important part as that is what contains your products and orders. And yes, the database was considerably changed from 1.4 to 1.5 - mostly due to the introduction of multistore. In addition part of the database is configuration: which image formats are enabled, which modules are enabled, which languages are enabled, etc, etc. The Prestashop rollback is supposed to roll back both the files and the database. BTW. do you use the default theme in 1.4? Yes I use the default theme in 1.4. Why? Btw. I upgraded back to 1.6 version (latest stable) and now I use the same theme as I did in 1.4. What i first noticed is that this theme is not working well on lastest version (I tried to compare with a new theme). Is it possible to make my old theme to work on 1.6 well? The problems I have: *shopping cart doesn't work *live edit positioning doesn't work *image sizes are not as they should be *layout of the site is different Edited November 28, 2014 by MoOoG (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted November 28, 2014 Share Posted November 28, 2014 Yes I use the default theme in 1.4. Why? Just wondering where those "default" images came from. You cannot use 1.4 themes on 1.6. Or - to put it more exactly - you may try to do so and sometimes it will work, but in fact there are so many problems with the transition from 1.4 to 1.5 that people are often recommended to switch back to their default theme while they are still on 1.4 and only then to upgrade. Link to comment Share on other sites More sharing options...
Recommended Posts