No image in product page after upgrate to 4.1.0

  • Posts: 99
  • Thank you received: 3
  • Hikaserial Standard Hikashop Multisite
1 week 4 days 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: 1 week 4 days ago by ButterflyPixel.

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

  • Posts: 65706
  • Thank you received: 9590
  • MODERATOR
1 week 4 days 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: 99
  • Thank you received: 3
  • Hikaserial Standard Hikashop Multisite
1 week 3 days ago #306509

Hi,

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

Thanks for your support.

Last edit: 1 week 3 days ago by ButterflyPixel.

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

  • Posts: 3
  • Thank you received: 2
  • Hikashop Essential
1 week 2 days 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

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

Time to create page: 0.059 seconds
Powered by Kunena Forum