Upgraded from 1.3.9h to 1.5.1, I tested and seemed to be fine. An existing customer placed order no problem. Today a new customer tried to register but could not complete. I tried to make a new test customer but failed and the store reported back that the email address already existed. I checked the customer table and found the test customer had been created. I checked the address_book table and customer_info table but could not find corresponding entry. I viewed the error logs and found the following;
[08-Apr-2014 19:19:35] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /xxx/xx_admin/customers.php on line 1225
[08-Apr-2014 19:19:35] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in/xxx/xx_admin/customers.php on line 1227
[08-Apr-2014 19:19:35] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /xxx/xx_admin/includes/classes/object_info.php on line 29
[08-Apr-2014 19:19:35] PHP Warning: Variable passed to each() is not an array or object in /xxx/xx_admin/includes/classes/object_info.php on line 30
The customers.php lines starting with 1222 are as follows;
$reviews = $db->Execute("select count(*) as number_of_reviews
from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers->fields['customers_id'] . "'");
$customer_info = array_merge($country->fields, $info->fields, $reviews->fields);
$cInfo_array = array_merge($customers->fields, $customer_info);
$cInfo = new objectInfo($cInfo_array);
}
$group_query = $db->Execute("select group_name, group_percentage from " . TABLE_GROUP_PRICING . " where
group_id = '" . $customers->fields['customers_group_pricing'] . "'");
Any advice welcome.
On a Shared Server
Zen Cart 1.5.1
Server OS: Linux 3.2.52
Database: MySQL 5.5.32-log
Server: Apache/2
PHP Version: 5.2.17 (Zend: 2.2.0)
Bookmarks