mkinternet Posted May 30, 2022 Share Posted May 30, 2022 (edited) 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 May 30, 2022 by mkinternet (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted May 30, 2022 Share Posted May 30, 2022 hello, how did you do this update? attached screenshots of the error Link to comment Share on other sites More sharing options...
mkinternet Posted May 31, 2022 Author Share Posted May 31, 2022 Link to comment Share on other sites More sharing options...
mkinternet Posted May 31, 2022 Author Share Posted May 31, 2022 I updated PS with One Click update module. Link to comment Share on other sites More sharing options...
juanrojas Posted May 31, 2022 Share Posted May 31, 2022 Hello, I'm not sure what this error is about, it may have a solution, what I am sure of is that the update from 1.6 to 1.7 using that module is not possible Link to comment Share on other sites More sharing options...
mkinternet Posted May 31, 2022 Author Share Posted May 31, 2022 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 More sharing options...
mkinternet Posted June 1, 2022 Author Share Posted June 1, 2022 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'); 5 3 Link to comment Share on other sites More sharing options...
ocio87 Posted June 28, 2023 Share Posted June 28, 2023 Thank you so much. The change helped me by making the insert. 1 Link to comment Share on other sites More sharing options...
Oliver CG Posted January 19, 2024 Share Posted January 19, 2024 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 More sharing options...
gregor5 Posted November 6, 2024 Share Posted November 6, 2024 (edited) 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 November 6, 2024 by gregor5 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now