quentic Posted April 5, 2022 Share Posted April 5, 2022 Hi, recently upgraded to PS 1.7.8.5 and it looks like since new users cannot create an account. The following red text appears at the top of registration form: Impossible de mettre à jour vos informations, veuillez vérifier vos données. (which should be in english: Unable to update your data, please check you data) When in debug mode, the top errors show this: (1/1) ContextErrorException User Notice: escape: unsupported type: intval - returning unmodified string in modifier.escape.php line 257 at smarty_modifier_escape('', 'intval', 'UTF-8', true)in smarty.config.inc.php line 80 at smartyEscape('', 'intval')in SmartyLazyRegister.php line 83 Link to comment Share on other sites More sharing options...
knacky Posted April 5, 2022 Share Posted April 5, 2022 When you upgrade, the override may not work. Check override folder, module compatibility, etc. Link to comment Share on other sites More sharing options...
Disappointed Posted April 5, 2022 Share Posted April 5, 2022 1 hour ago, quentic said: Hi, recently upgraded to PS 1.7.8.5 and it looks like since new users cannot create an account. The following red text appears at the top of registration form: Impossible de mettre à jour vos informations, veuillez vérifier vos données. (which should be in english: Unable to update your data, please check you data) When in debug mode, the top errors show this: (1/1) ContextErrorException User Notice: escape: unsupported type: intval - returning unmodified string in modifier.escape.php line 257 at smarty_modifier_escape('', 'intval', 'UTF-8', true)in smarty.config.inc.php line 80 at smartyEscape('', 'intval')in SmartyLazyRegister.php line 83 Having the same problem but I could not get the debug error to show to me. In my case I had to allow partner offers to enable users to create an account. Link to comment Share on other sites More sharing options...
knacky Posted April 5, 2022 Share Posted April 5, 2022 (edited) Basic information is still missing. What version of Prestashop did you upgrade from? What kind of PHP do you use? Is there an override? What template is used? Was the ./var/cache/prod and ./var/cache/dev folders deleted after the upgrade? Edited April 5, 2022 by knacky (see edit history) Link to comment Share on other sites More sharing options...
knacky Posted April 5, 2022 Share Posted April 5, 2022 If you uncheck it in the administration, it should not appear in the new registration form at all. Front: Link to comment Share on other sites More sharing options...
Disappointed Posted April 5, 2022 Share Posted April 5, 2022 33 minutes ago, knacky said: If you uncheck it in the administration, it should not appear in the new registration form at all. Front: What you say is correct and it does not appear but thats when no one can register and the error message appears. Link to comment Share on other sites More sharing options...
knacky Posted April 5, 2022 Share Posted April 5, 2022 This is a futile endeavor because you do not answer the questions. Realize that we can't see me on your computer, your files, or your head. The more detailed information, pictures, videos, etc., it helps to solve the problem. If you do not cooperate, there will be no right answer. Personally, I don't like it anymore and I'm leaving. Maybe someone can advise. Link to comment Share on other sites More sharing options...
Disappointed Posted April 5, 2022 Share Posted April 5, 2022 7 minutes ago, knacky said: This is a futile endeavor because you do not answer the questions. Realize that we can't see me on your computer, your files, or your head. The more detailed information, pictures, videos, etc., it helps to solve the problem. If you do not cooperate, there will be no right answer. Personally, I don't like it anymore and I'm leaving. Maybe someone can advise. I answered the questions in my own topic, the op here has the same issue. My case upgraded versions all the time so from last version to current version. PHP. 7.4. What is override? Problem on default template as well as bought. In my case I have not deleted any./var etc folders. Did not know we should. Use auto upgraded from admin panel so everything should just do what its mean to do. Link to comment Share on other sites More sharing options...
quentic Posted April 5, 2022 Author Share Posted April 5, 2022 8 hours ago, knacky said: When you upgrade, the override may not work. Check override folder, module compatibility, etc. Thanks for your comment. Sorry my message went too fast. Here is some data: * php 7.4 * var/cache folder are empty * used one-click upgrade to go from PS 1.7.8.2 to 1.7.8.5 * deactivated all non-Prestashop modules: same problem * we use a them call Alcoholic by Redfox Link to comment Share on other sites More sharing options...
Disappointed Posted April 6, 2022 Share Posted April 6, 2022 18 hours ago, quentic said: Here is some data: Here is a question for you. Since in my case the allow partner offers has to be set to yes to allow anyone to register an account I ask you if yours is set to yes or no as thats where the problem exists for me so wondering if thats the same issue for you? Personally I am going to pay someone on fiverr to solve this for me as no one seems to know and those who might seem to think people asking for help are prestashop scientist or something and understand all the mumbo jumbo. Link to comment Share on other sites More sharing options...
quentic Posted April 6, 2022 Author Share Posted April 6, 2022 Knacky was a huge help! Many thanks too him. @bossman : not connected to the "allow partner offers". My problem is that my theme is incompatible with latest PS version. 1 Link to comment Share on other sites More sharing options...
Disappointed Posted April 7, 2022 Share Posted April 7, 2022 21 hours ago, quentic said: Knacky was a huge help! Many thanks too him. @bossman : not connected to the "allow partner offers". My problem is that my theme is incompatible with latest PS version. Most likely still related to my problem and theme as well. Glad Knacky was able to help you via PM. Link to comment Share on other sites More sharing options...
quentic Posted April 7, 2022 Author Share Posted April 7, 2022 What I just did: I cloned the whole shop uninstalled custom theme and removed folders back the default Prestashop theme activated all debug settings (non-Prestashop modules deactivated, detactivated overrides, debug ON) deleting var/cache/prod and var/cache/dev folders to make sure The error message is still there :-( Link to comment Share on other sites More sharing options...
quentic Posted April 7, 2022 Author Share Posted April 7, 2022 In classes/forms/CustomerForm.php line 216 : try { $ok = $this->customerPersister->save( $this->getCustomer(), $clearTextPassword, $newPassword, $this->passwordRequired ); this chunk of code generates the error when trying to save the new customer I can provide test data for each parameter used in the save method if needed Thanks for your interest Link to comment Share on other sites More sharing options...
quentic Posted April 8, 2022 Author Share Posted April 8, 2022 I started a fresh PS 1.7.8.5 install and noticed 2 mandatory checkboxes on the new customer creation form: Customer data privacy I agree to the terms and conditions and the privacy policy Both of them must be checked to validate the form. These checkboxes are not displayed on my migrated Prestashop. I guess that's why I get the error message. Anyone knows what triggers the display of these checkboxes? Link to comment Share on other sites More sharing options...
knacky Posted April 8, 2022 Share Posted April 8, 2022 Admin > Shop parameters > Order settings > Terms of service = Yes (Page for terms and conditions 😃 must be exists) Admin > Shop parameters > Customer settings > Groups > Visitor > Edit > Customer data privacy block = Yes Link to comment Share on other sites More sharing options...
quentic Posted April 8, 2022 Author Share Posted April 8, 2022 OK. I've done that. And installed the Customer data privacy module which was missing. Still no luck. Wrong guess? Link to comment Share on other sites More sharing options...
quentic Posted April 9, 2022 Author Share Posted April 9, 2022 (edited) On a clone of the shop, I've deactivated most of the modules. The error message remains. Looks like some essential data is not transmitted when Prestashop tries to save new customer record. Is ther any way to track this? Edited April 9, 2022 by quentic (see edit history) Link to comment Share on other sites More sharing options...
quentic Posted April 10, 2022 Author Share Posted April 10, 2022 On 4/7/2022 at 4:45 PM, Disappointed said: Most likely still related to my problem and theme as well. Glad Knacky was able to help you via PM. I'm so sorry I didn't dig more in the direction you gave. I was misled by other observations I made on my shop but you were RIGHT!!! Actually, "allow partner offers" was not displayed on the new customer form BUT the field was set as required in the customer section of BO On back-office of your shop go to tab "Customers" - > customers -> at the bottom, you will find: Set required fields for this section. Problem solved for me. Thanks to everyone 1 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