This problem seem to variate depending on mySQL versions.
In your includes/modules/<your_template>/create_account.php file,
I cannot reproduce this problem when using mySQL v4.x.
Very well. For now,
replace:
PHP Code:
$sql = "update " . TABLE_CUSTOMERS . "
set customers_default_address_id = '" . (int)$address_id . "', " . $additional_sql . "
where customers_id = '" . (int)$_SESSION['customer_id'] . "'";
with:
PHP Code:
$sql = "update " . TABLE_CUSTOMERS . "
set customers_default_address_id = '" . (int)$address_id . "'" . $additional_sql . "
where customers_id = '" . (int)$_SESSION['customer_id'] . "'";
This should fix the problem. I will try to find a universal fix for both mySQL versions eventually.
Also, I have noticed even though the user gets this error on there side the command still goes through and they create an account. If the customer backs up a page it shows them logged in and if they click on "view or change account information" everything is blank, yet on my side I see the new customer and if I click on there account I get this error:
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /www/freehostingnow.com/c/o/m/commtech/htdocs/catalog/admin/customers.php on line 1213
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /www/freehostingnow.com/c/o/m/commtech/htdocs/catalog/admin/customers.php on line 1213
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /www/freehostingnow.com/c/o/m/commtech/htdocs/catalog/admin/customers.php on line 1215
Warning: reset() [function.reset]: Passed variable is not an array or object in /www/freehostingnow.com/c/o/m/commtech/htdocs/catalog/admin/includes/classes/object_info.php on line 29
Warning: Variable passed to each() is not an array or object in /www/freehostingnow.com/c/o/m/commtech/htdocs/catalog/admin/includes/classes/object_info.php on line 30
Which version of PHP are you using again ? I surely can't reproduce this problem . . .