Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Variable passed to each() is not an array or object


socal_kl

Recommended Posts

Posted

I'm getting the following error below when I go to edit one of my products thats already in my catalog.

 

 

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/kmgmedio/public_html/charisma/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/kmgmedio/public_html/charisma/admin/includes/classes/object_info.php on line 18

 

Now the edit product page still shows up wit h this error on top, but the page is blank with no products in it. Not sure what to do Ive tried uploading my backup of the object_info.php but nothing. any help is appreciated.

 

cheers

Weather you think you can, or you think you can't. Your right.

Posted

That class function is being called 7 times on the categories page

$pInfo = new objectInfo($product);

and

$cInfo = new objectInfo($cInfo_array);

 

Is the GET variable 'action' set in your address bar? If so, what is the value,,

I am assuming:

action=new_product

 

The first thing I would do is determine which class function is creating the error, then why the value sent to the class function is not an array.

Lloyd

Posted
That class function is being called 7 times on the categories page

$pInfo = new objectInfo($product);

and

$cInfo = new objectInfo($cInfo_array);

 

Is the GET variable 'action' set in your address bar? If so, what is the value,,

I am assuming:

action=new_product

 

The first thing I would do is determine which class function is creating the error, then why the value sent to the class function is not an array.

 

the address bar is showing the GET variable as action=new_product

Weather you think you can, or you think you can't. Your right.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...