- Posts: 2
- Thank you received: 0
Product photos not showing
- dick.davies
-
Topic Author
- Offline
Less
More
12 years 6 months ago #148596
by dick.davies
Product photos not showing was created 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!
-- 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.
12 years 6 months ago #148669
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Product photos not showing
Hi,
please edit the file "administrator/components/com_hikashop/helper/image.php" and replace
By:
It should fix your problem of "forceSize" and empty width/height value.
The patch will be include in the next HikaShop build.
Regards,
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;
}
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];
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.
- dick.davies
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
12 years 6 months ago #149399
by dick.davies
Replied by dick.davies on topic Product photos not showing
Yes that fixed it fine - many thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds