Jump to content

[Solved]Fatal error in registration v1.3.6 (authentication.tpl)


Recommended Posts

Hello!

I have question about authentication.tpl in version 1.3.6. Why when delete all info (include email) and then press register web site shows Fatal error? I discover it in my local host test web and then I test it on prestashop showcase online and it shows same thing, but I have older version 1.3.1.1 on my local host and when I test this thing there it shows me all correct (regular error message with no fatal error white page).

And one more thing about authentication.tpl why when you forget to enter name, password, city(and other request fields) if you have forget to enter password in error message it shows only one error only for invalid password but if you fill in password correct and don't enter all other request fields it shows error for all unfilled request fields, why?

Best regards,
Artizzz

Link to comment
Share on other sites

I found solution for fatal error! matching 1.3.1.1 version and 1.3.6 in authentication.php I found changes and playing with those and I found that there need to change back in 56 line from if to elseif.

in authentication.php:

from

    if (Customer::customerExists($email))
       $errors[] = Tools::displayError('someone has already registered with this e-mail address');



to

    elseif (Customer::customerExists($email))
       $errors[] = Tools::displayError('someone has already registered with this e-mail address');



If something wrong with this please say me because I'm not good in coding. But for me all is ok.

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...