Jump to content

image not showing after enabling seo


Recommended Posts

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?

  • Like 1
Link to comment
Share on other sites

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

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

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

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

  • 3 weeks later...

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

×
×
  • Create New...