Jump to content

PS 1.7.8.5 New users cannot create an account on the shop


quentic

Recommended Posts

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

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

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 by knacky (see edit history)
Link to comment
Share on other sites

33 minutes ago, knacky said:

If you uncheck it in the administration, it should not appear in the new registration form at all.

obrazek.png.0ab0ae47e81745a9c26581510b72e0ce.png

 

Front:

obrazek.png.1be43eab276ea38c294f701024a6d909.png

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

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.

obrazek.png.c08a93cfd2e107f7bbd46a2c2d1bb033.png

Link to comment
Share on other sites

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.

obrazek.png.c08a93cfd2e107f7bbd46a2c2d1bb033.png

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

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

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

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

What I just did:

  1. I cloned the whole shop
  2. uninstalled custom theme and removed folders
  3. back the default Prestashop theme
  4. activated all debug settings (non-Prestashop modules deactivated, detactivated overrides, debug ON)
  5. 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

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

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

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

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

  • Like 1
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...