Guest Posted February 4, 2008 Posted February 4, 2008 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?
♥FWR Media Posted February 4, 2008 Posted February 4, 2008 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. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted February 4, 2008 Posted February 4, 2008 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?
Guest Posted February 4, 2008 Posted February 4, 2008 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.