chasehe Posted August 9, 2013 Share Posted August 9, 2013 Hi: I don't know whether anyone else has encountered the same problem. Help is appreciated. I am using Prestashop 1.5.4.1. Afte finishing everything, I turned on the SEO friendly url feature, and suddenly, all the product images are not showing in the front office any more. In the back end, when I check the product page, all products are still there, with images. I turned off the seo feature, then I am able to see the product images again. Why? 1 Link to comment Share on other sites More sharing options...
polaram Posted August 9, 2013 Share Posted August 9, 2013 Please provide link of website i can help you. Link to comment Share on other sites More sharing options...
vekia Posted August 9, 2013 Share Posted August 9, 2013 i think that in this case is necessary to regenerate the htaccess file Link to comment Share on other sites More sharing options...
chasehe Posted August 9, 2013 Author Share Posted August 9, 2013 Thanks Polaram and vekia, for responding and offering help. I tried the method recommended by vekia, regenerating .htaccess file, but it doesn't work. I have attached 2 images here, one is before turning on seo, another is after turning on the seo. the website link is: http://perfumelet.com. Link to comment Share on other sites More sharing options...
vekia Posted August 9, 2013 Share Posted August 9, 2013 i checked your website, without friendly urls everything works well there can you, for test purposes, run the friendly url mode? 1 Link to comment Share on other sites More sharing options...
chasehe Posted August 9, 2013 Author Share Posted August 9, 2013 Thanks vekia, I have turned on the seo features, the women category has products. Kindly tell me what you think. Link to comment Share on other sites More sharing options...
vekia Posted August 9, 2013 Share Posted August 9, 2013 thanks i checked your website that's correct, something doesn't work well there. When you've got friendly urls ON, the back office displays pictures correctly? additional question: when you create new product now and upload pictures to it, pictures don't work too? Link to comment Share on other sites More sharing options...
chasehe Posted August 9, 2013 Author Share Posted August 9, 2013 thanks i checked your website that's correct, something doesn't work well there. When you've got friendly urls ON, the back office displays pictures correctly? additional question: when you create new product now and upload pictures to it, pictures don't work too? Thanks for your response. In the back office, everything works fine. The product is not entered one by one, instead, it's imported in bulk, and everything is fine there as well, the product pictures are showing when I view products in the back office. I am investigating the issue myself, by comparing the page source. I noticed that when the seo is disabled, the <img tag is pointing to different url compared to that when the seo is enable. For example: on the 1st page of Makeup, the <img src is something like this: <img src="http://perfumelet.com/img/p/4/0/0/4/4004-home_default.jpg" alt="" height="180px" width="200px">. When seo is enabled, the <img src becomes:<img src="http://perfumelet.com/4004-home_default/bare-escentuals-cleanser-110-ml-quick-change-brush-cleanser-for-women.jpg" alt="" height="180px" width="200px">. Obviously it's not pointing to the same folder. I think this must be an issue with the class file, but I don't know where to look for it in the code. Any help is appreciated. Link to comment Share on other sites More sharing options...
stottycabanas Posted August 9, 2013 Share Posted August 9, 2013 Having just checked on my site where the images display OK, I don't think it's related to the image source urls - that's just the way Prestashop constructs them according to whether friendly urls are switched on or off. I suspect it's more to do with the fact you said you did a bulk import of your products (and the images presumably). Judging by other threads, there may be a risk of some loss of integrity in the database. Maybe check the ps_image table to verify the tie-up between products and images and the ps_product_lang table to check the link_rewrite column looks to be populated OK. It's just a hunch though, I have nothing concrete to back this up. Link to comment Share on other sites More sharing options...
chasehe Posted August 10, 2013 Author Share Posted August 10, 2013 Having just checked on my site where the images display OK, I don't think it's related to the image source urls - that's just the way Prestashop constructs them according to whether friendly urls are switched on or off. I suspect it's more to do with the fact you said you did a bulk import of your products (and the images presumably). Judging by other threads, there may be a risk of some loss of integrity in the database. Maybe check the ps_image table to verify the tie-up between products and images and the ps_product_lang table to check the link_rewrite column looks to be populated OK. It's just a hunch though, I have nothing concrete to back this up. Thanks. I checked the ps_image table, and found that starting from image_id 8, the product_id has jumped by 1, so that image_id 8 corresponds to product_id 9, and etc., id_lang seems normal....I don't know how to interpret these results, as I reasoned: since image_id up to 7 all matches, if the problem lies here, then after enabling seo, at least product 1-7 should have no problem in displaying the image, but it turns out that it's not the case. I am still at a loss. Link to comment Share on other sites More sharing options...
billkou Posted August 29, 2013 Share Posted August 29, 2013 Same problem here on a test site with no imported products. From the default installation with the default products, as soon as I enable SEO the images won't appear. Entering a new product while having SEO enabled doesn't solve the issue. I'm running nginx+php-fpm. Link to comment Share on other sites More sharing options...
Recommended Posts