img error issue..

  • Posts: 241
  • Thank you received: 5
11 years 2 weeks ago #131242

-- www.wodrocket.com/index.php?option=com_h...ct&task=show&cid=722
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- :

see screenshot. I removed the img file and the issue was resolved, but please let me know what I need to do to avoid in the future.




Thanks.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 weeks ago #131267

Hi,

When you have a lot of images to resize and these images are big, it will use some memory that we can't control because it is managed by PHP GD.
As you can see in your screenshot, it try to allocate 44MB and it overpass the limitation of 128MB

It is a little bit logical that the memory limit is reach if only one single image ask for so many memory (because it should be a very big image).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 241
  • Thank you received: 5
11 years 2 weeks ago #131488

Ok but I am a bit confused because the image size was not significant. I have highlighted the img in the screenshot below and also provided a link to a development site where it is working fine.

link to img (development site is working):
184.154.228.9/~throwdow/live/index.php?o...ct&task=show&cid=722

I still can't figure out what would have caused the error and how to prevent it in the future. It was solved by removing the img but that is not enough for the future.

Many Thanks.


Attachments:
Last edit: 11 years 2 weeks ago by cberry1971.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 week ago #131680

Jerome is not talking about the size of the thumbnails that hikashop will generate but the size of the original images that you're uploading.
So you need to upload smaller images and/or increase your server memory limitation (at least temporarily so that HikaShop can generate the thumbnails once).

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

  • Posts: 241
  • Thank you received: 5
11 years 1 week ago #131683

I understand but am still unclear by why this relatively small image caused the problem when others do not.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 week ago #131684

I don't know the size in pixels of that image so I can't say.
260 KB for a jpg image can amount to a really big image in pixels and the PHP GD library doesn't take into account the size in KB but the size in pixel of images from the memory reservation.
Also, maybe you have other products displayed with modules on that page and thus it has to generate the thumbnails for all the images of all the products displayed and thus require more memory.
Unfortunately, we have no control on that.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum