No image in product page after upgrate to 4.1.0

  • Posts: 143
  • Thank you received: 9
5 years 6 months ago #306489

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.x.x

Hi,

After upgrade to 4.1.0, I do not see the product image in product page.
If I will delete from firebug the code that refers to image .webp version

<source srcset="/images/com_hikashop/upload/thumbnails/100x100f/XXXXXXXX.webp" type="image/webp">
then I can see the image in page.
I rolled back to 4.0.2 ( I do not have the 4.0.3) and all works fine.

Please advice

Last edit: 5 years 6 months ago by ButterflyPixel.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 6 months ago #306491

Hi,

With HikaShop 4.1.0, we add the support of webp. It's an optimized image format that is added to the normal images so that browsers supporting it can use the webp image instead of the normal jpg/png images. These webp images are smaller and thus it helps speed up the display of the page (which is good for SEO, etc).
If you don't get the image displayed, it means that the system couldn't generate the webp image for some reason.
There is probably a permission issue in your images folders preventing PHP from generating the webp images.
I would recommend to check on that.
Also, I've added a patch on our end to skip the display of the webp tags in the HTML if the image couldn't be generated.
So if you update again with the new install package on our website, even without fixing the issue with the webp images not generated, you should still see the images of your products.

Please Log in or Create an account to join the conversation.

  • Posts: 143
  • Thank you received: 9
5 years 6 months ago #306509

Hi,

I found that some rules in .htaccess was creating the issue.

Thanks for your support.

Last edit: 5 years 6 months ago by ButterflyPixel.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 5
5 years 6 months ago #306582

If it helps anyone, I use the htaccess maker feature of AdminTools. In the section "Allow direct access, except .php files, to these directories" I added a line:
/images/com_hikashop/upload/
That fixed it.

Editing .htaccess directly you would want to add:
RewriteCond %{REQUEST_FILENAME} !(\.php)$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^images\/com_hikashop\/upload/ - [L]

The following user(s) said Thank You: nicolas, trevsmiff, DFX

Please Log in or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 7
5 years 3 months ago #309455

giving a bit more info on this - the problem for me was permission for the webp image generation. I had to allow the webp image format in .htaccess. That solved the problem, but it did take a bit of hunting around.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum