You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having custom fields for customer registration (Sales -> Customers -> Custom fields) for either location account OR address, but not for both. Then this error appears upon clicking "Continue" in the register user form:
Notice: Undefined index: address in /home/gardsbut/public_html/shop/catalog/controller/account/register.php on line 281
Fatal error: Unsupported operand types in /home/gardsbut/public_html/shop/catalog/controller/account/register.php on line 281
This is because register.php is only checking for isset($this->request->post['custom_field']), if that is true it concatenate the values ['account'] and ['address'] under that post data but one of them is empty since we only have custom fields for one.
The text was updated successfully, but these errors were encountered:
replace line
if (isset($this->request->post['custom_field'])) {
with this
if (isset($this->request->post['custom_field'])&&is_array($data['custom_field'])) {
When having custom fields for customer registration (Sales -> Customers -> Custom fields) for either location account OR address, but not for both. Then this error appears upon clicking "Continue" in the register user form:
Notice: Undefined index: address in /home/gardsbut/public_html/shop/catalog/controller/account/register.php on line 281
Fatal error: Unsupported operand types in /home/gardsbut/public_html/shop/catalog/controller/account/register.php on line 281
This is because register.php is only checking for isset($this->request->post['custom_field']), if that is true it concatenate the values ['account'] and ['address'] under that post data but one of them is empty since we only have custom fields for one.
The text was updated successfully, but these errors were encountered: