hamzdev Posted April 20, 2010 Share Posted April 20, 2010 help needed please... i have this warning on my oscommerce, admin->customer Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/sloki/user/t23307/sites/haniftry.com/www/store/admin/customers.php on line 733 Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sloki/user/t23307/sites/haniftry.com/www/store/admin/customers.php on line 735 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/sloki/user/t23307/sites/haniftry.com/www/store/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/sloki/user/t23307/sites/haniftry.com/www/store/admin/includes/classes/object_info.php on line 18 here my admin/customers.php $reviews_query = tep_db_query("select count(*) as number_of_reviews from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers['customers_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); $customer_info = array_merge($country, $info, $reviews); // here my admin/customers.php line 733 $cInfo_array = array_merge($customers, $customer_info); // here my admin/customers.php line 735 $cInfo = new objectInfo($cInfo_array); } here is my /admin/includes/classes/object_info.php <?php /* $Id: object_info.php 1739 2007-12-20 00:52:16Z hpdl $ 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); } } } ?> please help me what is it Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2010 Share Posted April 20, 2010 Do you still have the default customer listed in the customers list John Doe ? If so, delete it. If you can not delete it in admin, then delete it using myphpadmin and don't forget to delete it from the address book as well. Chris Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.