Jump to content

Frontend add new address error after upgrade


mkinternet

Recommended Posts

Hi.

I have upgraded PS from 1.6.1.23 to 1.7.8.6.

When i want to add new address as a customer i got errror "Please fix the error below". I cant add new address either in checkout process and in customer account. I tested it on default classic theme.

I can add address from backend customer form.

I found similar issues but without any solutions

https://github.com/PrestaShop/PrestaShop/issues/15957

https://github.com/PrestaShop/PrestaShop/issues/26925

validateCustomerFormFields class is registered in database (ps_hooks).

PHP version 7.4

Clearing /var/cache didn't help

 

Edited by mkinternet (see edit history)
Link to comment
Share on other sites

I mean 1-Click Upgrade module.

I found this error message in /controllers/front/AddressController.php:69:                $this->errors[] = $this->trans('Please fix the error below.', [], 'Shop.Notifications.Error');

Link to comment
Share on other sites

I think i found the solution

There was no hook in the database wity actionValidateCustomerAddressForm

INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `active`, `position`) VALUES (NULL, 'actionValidateCustomerAddressForm', 'Customer address form validation', 'This hook is called when a customer submit its address form', '1', '1');

  • Like 5
  • Thanks 3
Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...
On 6/1/2022 at 3:22 PM, mkinternet said:

I think i found the solution

There was no hook in the database wity actionValidateCustomerAddressForm

INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `active`, `position`) VALUES (NULL, 'actionValidateCustomerAddressForm', 'Customer address form validation', 'This hook is called when a customer submit its address form', '1', '1');

That's the type of errors that needs you to invest a lot of time because there is no error, debug logs or something like that. It worked like a charm! Thank you so much!

Link to comment
Share on other sites

  • 9 months later...

We had this issue after upgrading all the way from 1.6. to 8.2 ... tried this solution but it doesn't work. Now we get Error 500 .... any ideas?

 

EDIT: found the problem - Mobile Phone number is a required filed. Will have to debug, but the fast workaround is to set is as required  field in the back end while debugging - at least the customer can finish this step now.

Edited by gregor5 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...