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

#   Product photos not showing

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 7 months ago [\#148596](#148596) by [dick.davies](/forum/user/31514-dick-davies "View dick.davies's Profile")  *[Product photos not showing](/forum/26-product-category-display/866702-product-photos-not-showing#148596 "-- URL   worldmissionbooks.org.uk/  -- HikaShop version -- : &#91;1402191159&#93; -- Joomla version -- : 3.2.3 -- PHP version -- :5.3.10 -- Browser(s) name and version -- : Firefox 27.01 -- Error-message: Warning: imagecreatetruecolor(): Invalid image dimensions in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 446 Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 560 Warning: imagefill() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 462 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 482  I'm not seeing product images!")* was created by *[dick.davies](/forum/user/31514-dick-davies "View dick.davies's Profile")*

-- URL [ worldmissionbooks.org.uk/](http://worldmissionbooks.org.uk/)
-- HikaShop version -- : [1402191159]
-- Joomla version -- : 3.2.3
-- PHP version -- :5.3.10
-- Browser(s) name and version -- : Firefox 27.01
-- Error-message: Warning: imagecreatetruecolor(): Invalid image dimensions in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com_hikashop/helpers/image.php on line 446 Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com_hikashop/helpers/image.php on line 560 Warning: imagefill() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com_hikashop/helpers/image.php on line 462 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com_hikashop/helpers/image.php on line 482

I'm not seeing product images!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#148669](#148669) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product photos not showing](/forum/26-product-category-display/866702-product-photos-not-showing#148669 "-- URL   worldmissionbooks.org.uk/  -- HikaShop version -- : &#91;1402191159&#93; -- Joomla version -- : 3.2.3 -- PHP version -- :5.3.10 -- Browser(s) name and version -- : Firefox 27.01 -- Error-message: Warning: imagecreatetruecolor(): Invalid image dimensions in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 446 Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 560 Warning: imagefill() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 462 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 482  I'm not seeing product images!")*

Hi,

please edit the file "administrator/components/com_hikashop/helper/image.php" and replace Code:

$scaling = $this-&gt;scaleImage($origin-&gt;width, $origin-&gt;height, $size['x'], $size['y'], $scalemode); if($scaling !== false) { $this-&gt;thumbnail_x = $scaling[0]; $this-&gt;thumbnail_y = $scaling[1]; } else { $this-&gt;thumbnail_x = $origin-&gt;width; $this-&gt;thumbnail_y = $origin-&gt;height; }

By: Code:

$scaling = $this-&gt;scaleImage($origin-&gt;width, $origin-&gt;height, $size['x'], $size['y'], $scalemode); if($scaling !== false) { $this-&gt;thumbnail_x = $scaling[0]; $this-&gt;thumbnail_y = $scaling[1]; } else { $this-&gt;thumbnail_x = $origin-&gt;width; $this-&gt;thumbnail_y = $origin-&gt;height; } if(empty($size['x'])) $size['x'] = $scaling[0]; if(empty($size['y'])) $size['y'] = $scaling[1];

It should fix your problem of "forceSize" and empty width/height value.
The patch will be include in the next HikaShop build.

Regards,

---

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

The following user(s) said Thank You: [dick.davies](/forum/user/31514-dick-davies "View dick.davies's Profile")

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 7 months ago [\#149399](#149399) by [dick.davies](/forum/user/31514-dick-davies "View dick.davies's Profile")  Replied by *[dick.davies](/forum/user/31514-dick-davies "View dick.davies's Profile")* on topic *[Product photos not showing](/forum/26-product-category-display/866702-product-photos-not-showing#149399 "-- URL   worldmissionbooks.org.uk/  -- HikaShop version -- : &#91;1402191159&#93; -- Joomla version -- : 3.2.3 -- PHP version -- :5.3.10 -- Browser(s) name and version -- : Firefox 27.01 -- Error-message: Warning: imagecreatetruecolor(): Invalid image dimensions in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 446 Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 560 Warning: imagefill() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 462 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /var/www/vhosts/worldmissionbooks.org.uk/httpdocs/administrator/components/com&#95;hikashop/helpers/image.php on line 482  I'm not seeing product images!")*

Yes that fixed it fine - many thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjY3MDItcHJvZHVjdC1waG90b3Mtbm90LXNob3dpbmc/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.052 seconds

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