Jump to content

The user can't register


Recommended Posts

When I use prestashop 1.5.2 ,I can't register when I use IE8 browser,but other browsers no such problem,Below is a web page error message prompt:

 

Page error detailed information:

 

User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)

timestamp: Tue, 30 Oct 2012 08:44:03 UTC

 

 

message: object dose not support this property or method

line: 473

character: 1

code: 0

URI: http://localhost/prestashop/index.php?controller=authentication&back=my-account

 

 

message: 'countriesNeedIDNumber' Undefined

line: 55

character: 2

code: 0

URI: http://localhost/prestashop/themes/default/js/tools/statesManagement.js

 

How do I fix it?

 

Thanks a lot !

Link to comment
Share on other sites

  • 1 month later...

I have the same problem in my Prestashop 1.5.2

The problem is only with Internet Explorer 8. It works fine with IE9, FireFox and Chrome.

 

On the my-account / Login page I can not use the "Create your account" button and the additional State-chooser does not pop up when required.

IE8 reports the error below:

 

Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)

 

message: Object does not support this method or property

line: 457

character: 1

code: 0

URI: http://www.secretnamexy.com/index.php?controller=authentication&back=my-account

 

message: 'countriesNeedIDNumber' is undefined

line: 55

character: 2

code: 0

URI: http://www.secretnamexy.com/themes/default/js/tools/statesManagement.js

 

Extra info:

A clean installation of Prestashop 1.5.2 does not have this problem. But as soon as I roll my database into it, the problem occurs.

And yes I have redefined all the zones in the shop, but I can not see that I have done anything "illegal"?

 

I hope that someone in here can guide us in the right direction. :mellow:

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

Have you compared the table content for "country" ( or "ps_country" depending if you use tabel prefixes) for the old database against a default prestashop install?

 

The error you describe is a JavaScript error, so this could indicate that the data pulled from the database is not in the correct format causing IE to throw an error. A possible problem could be if it expects a number but gets a character.

 

Edith

Edited by terraGirl (see edit history)
  • Like 1
Link to comment
Share on other sites

Have you compared the table content for "country" ( or "ps_country" depending if you use tabel prefixes) for the old database against a default prestashop install?

The error you describe is a JavaScript error, so this could indicate that the data pulled from the database is not in the correct format causing IE to throw an error. A possible problem could be if it expects a number but gets a character.

 

Thank you for your input, Edith.

 

When I compare my country table with the deafult one, I don't see any problems. I have also tried to import the default country table into my database, and it did not solve the problem.

But your input has helped me with more ideas to try out. I'll do some more testing and post the results here.

 

/Finn

Link to comment
Share on other sites

After a lot of exporting/importing single tables I have found out a little more.

And unfortunately I have now found the problem in my default installation as well. :(

 

The problem is present when you have more than one language in your shop. If you run a single language shop then there is no problem.

 

So the problem might be somewhere in the language selector?

Link to comment
Share on other sites

Thanks for the replies!

 

Is there any chance this is linked to the "compatibility view" in IE8? What mode are you running regarding compatibility when you see the error? and does switching modes make any difference?

 

No, compatibility view does not help.

 

Hello all, I just wanted to make sure that you have 'Keep W3C Validation" setting enabled in Advance Parameters>Performance

 

Yes, 'Keep W3C Validation' is enabled.

Link to comment
Share on other sites

This is crazy... What steps after modifying the *.tpl file do I need to get it to work on IE8? Do I need to clear out my cache on IE8 and Prestashop? Where do I do it in Prestashop, what are the exact steps? And if it is done in the default, I'm assuming if there are other templates it must be done in them as well?

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

  • 3 weeks later...

Hi everybody,

 

I had the same problem and the solution worked for me too (I am on 1.5.2).

 

However, when you want to create an account on the order-opc page (with one page checkout), the register button doesn't work neither! it doesn't come from the same reason as its type is already "input".

 

The problems occurs only on IE 8 32bit&64bit (it even works with IE7...).

 

Did you meet the same issue?

Thanks in advance for your help

 

Fred

 

//EDIT//

OK the error comes from the file StatesManagement.js in your folder theme/js/tools

 

the line with "console.log" is not understood by IE8.

As I don't sell in the US I don't need it and put it in comments. Now it works fine for me.

This could be a solution for non US dealers.

 

See you!

Edited by Frédéric D. (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...