Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: reset(): Passed variable is not an array or object. ERROR


Guest

Recommended Posts

Posted

I'm trying to add products to my catalogue. When I do it I get this error:

 

Warning: reset(): Passed variable is not an array or object in /home/piczon5/public_html/iveo.co.za/demostore/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/piczon5/public_html/iveo.co.za/demostore/admin/includes/classes/object_info.php on line 18

 

Any idea how to fix it?

Posted
I'm trying to add products to my catalogue. When I do it I get this error:

 

Warning: reset(): Passed variable is not an array or object in /home/piczon5/public_html/iveo.co.za/demostore/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/piczon5/public_html/iveo.co.za/demostore/admin/includes/classes/object_info.php on line 18

 

Any idea how to fix it?

 

I'm guessing wildly but is it possible that you deleted all products and now have none?

 

If so it may just begin working if you add just one product and ignore the error.

Posted
I'm guessing wildly but is it possible that you deleted all products and now have none?

 

If so it may just begin working if you add just one product and ignore the error.

 

I still have my default products in the db.

 

Here is the code of the page:

 

<?php/* $Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License*/ class objectInfo {// class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } }?>

 

Any ideas?

Posted
I still have my default products in the db.

 

Here is the code of the page:

 

<?php/* $Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License*/ class objectInfo {// class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } }?>

 

Any ideas?

 

I solved the problem:

 

You need to manually remove the default user from the database. Try using phpmyadmin and using the truncate/empty table command.

 

The tables you want are customers and customers_info

Archived

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

×
×
  • Create New...