Invalid Argument

  • Posts: 8
  • Thank you received: 0
13 years 6 months ago #13922

I am getting this error message -


Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com_hikashop/views/product/view.html.php on line 508

Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com_hikashop/views/product/view.html.php on line 558


You can view it here - http://www.groweasyorganics.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=7&name=mineralplex-gallon&Itemid=59&category_pathway=0

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
13 years 6 months ago #13931

You're using HikaShop 1.4.1. Please update to the latest version and try again.

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

  • Posts: 11
  • Thank you received: 0
13 years 6 months ago #14078

Hi

I'm using the latest version and am still getting this error when importing products. Everything looks fine, though, but I don't want to run into problems later.


Warning: Invalid argument supplied for foreach() in /home/simplyco/domains/simplycolostrum.co.za/subdomains/master/public_html/administrator/components/com_hikashop/views/product/view.html.php on line 203

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
13 years 6 months ago #14082

Hi,

Your problem is NOT the same. You're getting that notice on the back end products listing page.
Please edit that page and change the code on that line 203:
foreach($prices as $price){
to:
foreach(@$prices as $price){

and try again.

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

  • Posts: 1
  • Thank you received: 0
13 years 6 months ago #14960

Hi there,

Similar but different error here:

"Warning: Invalid argument supplied for foreach() in /home/jolidage/public_html/shop/components/com_hikashop/views/product/view.html.php on line 617"

& shows on front end. I have the latest version (downloaded & installed today) 1.4.9

Code at line 617 reads:

foreach($element->characteristics as $k => $characteristic){

Any help massively appreciated :)

-lisa

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
13 years 6 months ago #14968

Please try to change that line by:
foreach(@$element->characteristics as $k => $characteristic){

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

Time to create page: 0.071 seconds
Powered by Kunena Forum