Product photos not showing

  • Posts: 2
  • Thank you received: 0
11 years 2 months ago #148596

-- 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.

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
11 years 2 months ago #148669

Hi,

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

		$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:
		$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.

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.
The following user(s) said Thank You: dick.davies

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

  • Posts: 2
  • Thank you received: 0
11 years 2 months ago #149399

Yes that fixed it fine - many thanks.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum