[Skip to main content](#vessel-content)

#   some images are not displaying

##

- **[karolko](/forum/user/3819-karolko "View karolko's Profile")**
- [![karolko's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3819-karolko "View karolko's Profile") Topic Author
- [ Offline](/forum/user/3819-karolko)

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#41310](#41310) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  *[some images are not displaying](/forum/3-bug-report/41310-some-images-are-not-displaying#41310 "Hi,  I am having problem with some of the images linking after my latest csv import. This is example of error that I am getting when I display the product page with problematic image:  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: gd-jpeg: JPEG library reports unrecoverable error: in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 372  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: '/home/karolko/public&#95;html/media/com&#95;hikashop/upload/WGP-SWO-01.jpg' is not a valid JPEG file in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 372  Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 327  Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 361  Notes:  &#42; about 20% of my latest imported images are affected (i did import of about 300 new images)  &#42; I can open / display images that hikashop considers invalid just fine via file manager of my provider or via browser link, say   www.mephit.cz/media/com&#95;hikashop/upload/WGP-SWO-01.jpg  &#42; after I reload page when the error is displayed, blank blank image is displayed instead and the errors are no longer shown, an example:    www.mephit.cz/cs/historicke-miniatury/pi...-years-war-swordsmen  Thanks,  Karol")* was created by *[karolko](/forum/user/3819-karolko "View karolko's Profile")*

Hi,

I am having problem with some of the images linking after my latest csv import. This is example of error that I am getting when I display the product page with problematic image:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/karolko/public_html/administrator/components/com_hikashop/helpers/image.php on line 372

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/karolko/public_html/media/com_hikashop/upload/WGP-SWO-01.jpg' is not a valid JPEG file in /home/karolko/public_html/administrator/components/com_hikashop/helpers/image.php on line 372

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/karolko/public_html/administrator/components/com_hikashop/helpers/image.php on line 327

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/karolko/public_html/administrator/components/com_hikashop/helpers/image.php on line 361

Notes:

- about 20% of my latest imported images are affected (i did import of about 300 new images)
- I can open / display images that hikashop considers invalid just fine via file manager of my provider or via browser link, say [ www.mephit.cz/media/com\_hikashop/upload/WGP-SWO-01.jpg](http://www.mephit.cz/media/com_hikashop/upload/WGP-SWO-01.jpg)
- after I reload page when the error is displayed, blank blank image is displayed instead and the errors are no longer shown, an example:

[ www.mephit.cz/cs/historicke-miniatury/pi...-years-war-swordsmen](http://www.mephit.cz/cs/historicke-miniatury/pike-and-shotte/blistery/product/6726-thirty-years-war-swordsmen)

Thanks,

Karol

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTMxMC1zb21lLWltYWdlcy1hcmUtbm90LWRpc3BsYXlpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

14 years 8 months ago [\#41459](#41459) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: some images are not displaying](/forum/3-bug-report/41310-some-images-are-not-displaying#41459 "Hi,  I am having problem with some of the images linking after my latest csv import. This is example of error that I am getting when I display the product page with problematic image:  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: gd-jpeg: JPEG library reports unrecoverable error: in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 372  Warning: imagecreatefromjpeg() &#91;function.imagecreatefromjpeg&#93;: '/home/karolko/public&#95;html/media/com&#95;hikashop/upload/WGP-SWO-01.jpg' is not a valid JPEG file in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 372  Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 327  Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/karolko/public&#95;html/administrator/components/com&#95;hikashop/helpers/image.php on line 361  Notes:  &#42; about 20% of my latest imported images are affected (i did import of about 300 new images)  &#42; I can open / display images that hikashop considers invalid just fine via file manager of my provider or via browser link, say   www.mephit.cz/media/com&#95;hikashop/upload/WGP-SWO-01.jpg  &#42; after I reload page when the error is displayed, blank blank image is displayed instead and the errors are no longer shown, an example:    www.mephit.cz/cs/historicke-miniatury/pi...-years-war-swordsmen  Thanks,  Karol")*

Hi,

That's not HikaShop which considers the image as invalid but the GD library of PHP which HikaShop uses for images resize.

Looking around, you could try the fix proposed here:
[ bugs.php.net/bug.php?id=29878](https://bugs.php.net/bug.php?id=29878)

ie add the code: Code:

ini_set('gd.jpeg_ignore_warning', 1);

before the code: Code:

return ImageCreateFromJPEG($image);

in the file administrator/components/com_hikashop/helpers/image.php

Or it could be a problem with the jpeg library installed on the server:
[ bugs.php.net/bug.php?id=50125](https://bugs.php.net/bug.php?id=50125)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTMxMC1zb21lLWltYWdlcy1hcmUtbm90LWRpc3BsYXlpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.098 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
