Skip to main content

Product photos not showing

More
12 years 6 months ago #148596 by dick.davies
-- URL 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 or Create an account to join the conversation.

More
12 years 6 months ago #148669 by Jerome
Replied by Jerome on topic Product photos not showing
Hi,

please edit the file "administrator/components/com_hikashop/helper/image.php" and replace
Code:
$scaling = $this->scaleImage($origin->width, $origin->height, $size['x'], $size['y'], $scalemode); if($scaling !== false) { $this->thumbnail_x = $scaling[0]; $this->thumbnail_y = $scaling[1]; } else { $this->thumbnail_x = $origin->width; $this->thumbnail_y = $origin->height; }
By:
Code:
$scaling = $this->scaleImage($origin->width, $origin->height, $size['x'], $size['y'], $scalemode); if($scaling !== false) { $this->thumbnail_x = $scaling[0]; $this->thumbnail_y = $scaling[1]; } else { $this->thumbnail_x = $origin->width; $this->thumbnail_y = $origin->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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: dick.davies

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

More
12 years 6 months ago #149399 by dick.davies
Yes that fixed it fine - many thanks.

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

Time to create page: 0.207 seconds
Powered by Kunena Forum