webp bug

  • Posts: 221
  • Thank you received: 6
  • Hikashop Business
3 weeks 1 day ago #364669

-- HikaShop version -- : 5.1.1
-- Joomla version -- : ‎5.2.0
-- PHP version -- : 8.2.25
-- Browser(s) name and version -- : 131.0.6778.86 Chrome
-- Error-message(debug-mod must be tuned on) -- : no errors

There is one product, for some reason it displays one image, but the product itself does not have such an image. I looked there to see why the webp image was attached, but it is from another product. There must be some error in the logic.

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
3 weeks 21 hours ago #364673

Hi,

When a product has no image, HikaShop will use the "default image" configured under the Main tab of the HikaShop configuration:
www.hikashop.com/support/documentation/5...fig.html#main_images
I would recommend checking this first.

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

  • Posts: 221
  • Thank you received: 6
  • Hikashop Business
3 weeks 19 hours ago #364678

You don't get it. The product page displays an image that belongs to another product.
But this image is not in the attached product images.
At the same time, on the product page itself, when loading, one image is displayed first, but if you hover the mouse over it, another one will be displayed.

Go to the page that is attached to the topic, there, when loading, you will see the main product image, this image belongs to another product. If you hover the mouse over the thumbnails under the main image, you will see that this first image does not match.

It is unknown how it appeared on this page, it should not be there at all.

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
3 weeks 15 hours ago #364680

Hi,

Ok, I see what you mean.
The issue is indeed not linked to the default image.

The main image is /images/com_hikashop/upload/1.jpg on that page.
The thumbnail is /images/com_hikashop/upload/thumbnails/400x400f/1.jpg which matches with the main image.
Since you have the "add webp image" setting activated in the HikaShop configuration, HikaShop will generate a webp image for the image if none has already been generated, and then add it in the HTML next to the jpg one.
The webp image is /images/com_hikashop/upload/thumbnails/400x400f/1.webp and this one doesn't correspond to the jpg image.

Here is what I think happened:
- you added an image called 1.jpg at some point for a product.
- HikaShop generated the thumbnails/400x400f/1.jpg and thumbnails/400x400f/1.webp files for it.
- you deleted the image from the product, which lead to HikaShop also deleting the thumbnails/400x400f/1.jpg thumbnail. HikaShop doesn't delete the webp image as the support for webp was added after the deletion of thumbnail files and I didn't think about this case when doing so.
- you then added another image also called 1.jpg for another product.
- HikaShop generated the thumbnails/400x400f/1.jpg for it, but since the webp thumbnail from the previous image file was still there, it didn't regenerate it.

So, the solution in your case it quite easy. Delete the /images/com_hikashop/upload/thumbnails/400x400f/1.webp file via FTP or the Joomla media manager and HikaShop will regenerate it from the current 1.jpg main file.
On our end, we'll look at adding support for webp thumbnails deletion when the main file is being deleted.

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

  • Posts: 221
  • Thank you received: 6
  • Hikashop Business
2 weeks 6 days ago #364697

Thank you, I really deleted several webp files and the product became in order. We will continue to observe.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum