error when adding products

  • Posts: 152
  • Thank you received: 0
13 years 1 month ago #26426

Hi, I get the following error when adding a product:

Warning: Invalid argument supplied for foreach() in public_html/administrator/components/com_hikashop/classes/field.php on line 102

Using joomla 1.7 and hikashop business 1.5.4


Create your own style of luxury bespoke furniture online

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26450

Hi,

Thank you for the report.

You can fix that by changing the code:
foreach($loadedCategories as $cat){
$categories[$data->product_id][$cat]=$cat;
}

to:
if(!empty($loadedCategories)){
foreach($loadedCategories as $cat){
$categories[$data->product_id][$cat]=$cat;
}
}

in that file.

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

  • Posts: 152
  • Thank you received: 0
13 years 1 month ago #26482

Thanks Nicolas, that fixed it


Create your own style of luxury bespoke furniture online

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

Time to create page: 0.055 seconds
Powered by Kunena Forum