Guest Posted August 12, 2006 Share Posted August 12, 2006 wow, no idea what's going on here. when creating a new customer for checkout, the shipping address returns a blank. when going to admin to see what the problem is, receive the following error: Warning: reset(): Passed variable is not an array or object in .../admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /admin/includes/classes/object_info.php on line 18 if i log back into the customer account, click "view or change addresses" [note the default address shows as empty], and add a new address, and "set as primary address" - the account is then fine. however, none of the customer information (i.e., account created, last modified, last logon) is available in admin. based on the support found here: Bug Report changed the following: $address_id = tep_db_insert_id(); tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); to be: //$address_id = tep_db_insert_id(); $address_id = '1'; //tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); however, just set up a new account and the problem seems to remain. in addition, i'm now getting the following error upon submission of the new customer account. 0 - insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('0', '0', now()) [TEP STOP] Link to comment Share on other sites More sharing options...
Guest Posted August 12, 2006 Share Posted August 12, 2006 went into phpMyAdmin and changed customer_default_address_id in the customers table to Null: No and Default: 1. doesn't seem to have made a difference. also, reset the create_account.php file with the backup (default) file, and still getting the following error on submission of the new customer account: 0 - insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('0', '0', now()) [TEP STOP] very nervous and at my wit's end, any assistance will be very much appreciated. :'( Link to comment Share on other sites More sharing options...
Guest Posted August 12, 2006 Share Posted August 12, 2006 made some real headway, but still needing support. in looking at the db tables, noticed that the customers table and the customers_info were out of whack (i.e., customers_info had one more row than customers - strange). emptied out the customers, customers_info, and address_book tables, and reset the customer_default_address_id in the customers table back to Null: Yes and Default: NULL. tried again, and still had the no ship to problem, but the [TEP STOP] error went away. reincluded the $address_id = '1' code above, which fixed the customer checkout problem. so now...where i'm at...despite giving address_id a value of '1', the customers_default_address_id field is still maintaining a null value. i've tried with the "tep_db_query" line both active and commented out, doesn't seem to make a difference. not sure if any of this matters for sale purposes, but i still cannot access customer info in the admin screen. Still receiving the error: Warning: reset(): Passed variable is not an array or object in .../admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /admin/includes/classes/object_info.php on line 18 seems like a much more manageable problem, if anyone has input, please feel free. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.