images are gone after update to 4.1.0

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 weeks ago #307065

-- HikaShop version -- : 4.1.0

please have a look to my shop:

This message contains confidential information


the system want to load the thumbnails in the webp format from existing images, put there is none:
This message contains confidential information


on all list views and module views the path to the images are wrong.
i guess it has something to do with the webp image function what you have implemented in the v4.1 version.
how can i fix this? Is it possible to deactivate the webp standard?

Attachments:
Last edit: 3 months 2 weeks ago by n00bster.

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

  • Posts: 66841
  • Thank you received: 9874
  • MODERATOR
3 months 2 weeks ago #307067

Hi,

Please check the folderimages/com_hikashop/upload/thumbnails/250x250/ of your website via the Joomla media manager in the backend.
If you see the webp image there, then the image was generated and the issue is that you have something in your htaccess or your web server config blocking access to files with the webp extension. So you need to change that.
If you don't see the webp image there, then normally the webp image HTML shouldn't appear on your frontend and you should see the normal images. So this case shouldn't happen.

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 weeks ago #307102

hi Nicolas.

in the thumbnail folder are no webp images stored.
how is this system working?
does hikashop generate also for existing images webp versions or only for fresh uploaded when i update my shop to 4.1.0?

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 weeks ago #307103

sorry i noticed that there are a nother folder for the thumbnails with the square format 250x250

.../images/com_hikashop/upload/thumbnail_250x250

in the following folder there are "webp" images:
.../images/com_hikashop/upload/thumbnails/250x250

what are the difference between this two folders? or is the first one bis the "underline" wrong and i should delete it?

Last edit: 3 months 2 weeks ago by n00bster.

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

  • Posts: 66841
  • Thank you received: 9874
  • MODERATOR
3 months 2 weeks ago #307104

Hi,

The first folder is the old folders for thumbnails. It shouldn't be used anymore.
That's why you don't see the webp images there.

So what you say confirms what I was suspecting. The webp images are correctly generated for the thumbnails. The issue is that you have something in your htaccess or your web server config blocking access to files with the webp extension. So you need to change that. You might want to contact your hosting support about that.

The following user(s) said Thank You: n00bster

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 1 week ago #307424

nicolas wrote: The first folder is the old folders for thumbnails. It shouldn't be used anymore.
That's why you don't see the webp images there.


hi, i noticed that the old folders, after i deleted them, are generated again with a brand thumbnail in it soon as i reload a product detail page with an brand (see the image).
This message contains confidential information


what could be the problem that the old folder is generated?

Attachments:
Last edit: 3 months 1 week ago by n00bster.

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

  • Posts: 66841
  • Thank you received: 9874
  • MODERATOR
3 months 1 week ago #307441

The issue comes from your customized code.
The function $this->image->display($manufacturer->file_path,false,$manufacturer->file_name, '', '', 100, 100) is the old function we had before to display thumbnails.
The new function (new since HikaShop 2.5 or something like that) is getThumbnail. With it, it's up to you to add the img tag.
So you want something like this now:

		$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
		$img = $this->image->getThumbnail($manufacturer->file_path, array('width' => 100, 'height' => 100), $image_options);
		if($img->success) {
			echo '<img src="'.$img->url.'"/>';
		}

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 days ago #307674

ok thank you for clarification.
i found this code to display the brand image what does also link to the brand page in the forum here.

when i use your code i lose my link (href) around the image. do you have any code sample from the new code after 2.5 hikashop version?

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

  • Posts: 66841
  • Thank you received: 9874
  • MODERATOR
3 months 1 day ago #307692

Hi,

Well, it's the same as the old code, but you just replace the display function call with the img tag of my code above...
So it's like that:

		$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
		$img = $this->image->getThumbnail($manufacturer->file_path, array('width' => 100, 'height' => 100), $image_options);
		if($img->success) {
			echo '<a href="'.hikashop_contentLink('category&task=listing&cid='.$manufacturer->category_id.'&name='.$manufacturer->alias.'&Itemid='.$Itemid,$manufacturer).'"><img src="'.$img->url.'"/></a>';
		}

The following user(s) said Thank You: n00bster

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

  • Posts: 371
  • Thank you received: 15
  • Hikashop Business Hikashop Multisite
3 months 1 day ago #307710

For people with Admin Tool .htaccess maker:

Just Add in Upper and Lower case, webp and WEBP to your allowed file formats area.


Kind regards,
Lumiga
Attachments:
The following user(s) said Thank You: n00bster

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 12 hours ago #307734

Thank you a lot Nicolas.
the old image folder generation has stopped after i changed the depending code for showing the manufacturer image.

@Sailfin73 you right, thank you for your input :)

Last edit: 3 months 12 hours ago by n00bster.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum