Category DIV images stopped showing

  • Posts: 45
  • Thank you received: 7
10 years 5 months ago #161618

I recently updated to Business 2.3.1, but this problem may have started before then. My site runs Joomla 2.5.22, also recently updated.

I have a category page, disctraininghub.com/shop which shows six categories. This is a Hikashop content menu set to a div layout. Under the section, "parameters for DIV", the field "type of item layout" is set to "image and title".

I turned on debug mode and this is what the system returned:

Notice: Undefined offset: 0 in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 353

Notice: Undefined offset: 1 in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 353

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 454

Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 568

Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 464

Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 465

Warning: imagefill() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 466

Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 467

Warning: imageantialias() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 474

Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/one010th/public_html/site_dth_live/administrator/components/com_hikashop/helpers/image.php on line 490


I'm not smart enough to know what this is trying to tell me.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #161637

Hi,

These errors mean that the image thumbnails cannot be generated. But it doesn't say why.

I think that it might come from a view override. Go in the menu Display->Views and look at the view files for the view "category" of your template and see if you edited any of them. If so, try to remove the customization (make sure that you save your modifications before, in case it doesn't come from that view file) and see if that helps.

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

  • Posts: 45
  • Thank you received: 7
10 years 5 months ago #161762

None of the "category" views have been overridden.

As a test, I removed one of the category images and then uploaded it again, but it still doesn't show. I then tried saving the image as a GIF file (the original image was a PNG file) and that didn't help either.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #161968

Could you provide a screenshot of the "images" section of the configuration ? Can you try to set both a height and a width in the options if that's not the case ?

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

  • Posts: 45
  • Thank you received: 7
10 years 5 months ago #161977

I had originally specified only an image width and I had left the height blank. The Help says that if one is left blank the other will be calculated.

As a test, I added a figure for height so that both height and width were specified (150 each) and that fixed the problem.

The following user(s) said Thank You: Jerome

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

Time to create page: 0.061 seconds
Powered by Kunena Forum