- Posts: 152
- Thank you received: 0
error when adding products
- plantpotphil
-
Topic Author
- Offline
Less
More
14 years 11 months ago #26426
by plantpotphil
Create your own style of luxury bespoke furniture online
error when adding products was created by plantpotphil
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
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.
14 years 11 months ago #26450
by nicolas
Replied by nicolas on topic Re: error when adding products
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.
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.
- plantpotphil
-
Topic Author
- Offline
Less
More
- Posts: 152
- Thank you received: 0
14 years 11 months ago #26482
by plantpotphil
Create your own style of luxury bespoke furniture online
Replied by plantpotphil on topic Re: error when adding products
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.186 seconds