Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR when editing "customers" by admin panel


Rentor

Recommended Posts

It is my first time here.

 

Hello!

 

I installed and configured my new shop.

 

Everything is going fine, but when I try to edit "CUSTOMERS" by the admin panel this Warning messages appears:

Warning: reset(): Passed variable is not an array or object in /home/domain/public_html/shop/admin/includes/classes/object_info.php on line 17

 

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

 

 

The Warning message appears and the forms come blank, so I can't view or edit any customer information.

When I try to edit as a customer by the "My Account" link on Shop, it goes fine.

 

The object_info.php file is like this:

<?php

/*

$Id: object_info.php,v 1.1.1.1 2003/02/20 01:03:52 ptosh Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2001 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);

}

}

}

?>

 

 

I appreciate any help.

 

Thanks,

Rentor

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...