hanmeng Posted October 30, 2012 Share Posted October 30, 2012 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 More sharing options...
a21989 Posted December 5, 2012 Share Posted December 5, 2012 same thing happened on my website, the weird thing is , some customers can , some cant Link to comment Share on other sites More sharing options...
MrFinn Posted December 12, 2012 Share Posted December 12, 2012 (edited) 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. Edited December 12, 2012 by MrFinn (see edit history) Link to comment Share on other sites More sharing options...
terraGirl Posted December 12, 2012 Share Posted December 12, 2012 (edited) 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 December 12, 2012 by terraGirl (see edit history) 1 Link to comment Share on other sites More sharing options...
MrFinn Posted December 13, 2012 Share Posted December 13, 2012 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 More sharing options...
MrFinn Posted December 13, 2012 Share Posted December 13, 2012 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 More sharing options...
terraGirl Posted December 13, 2012 Share Posted December 13, 2012 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? PS: compatibiliby mode in IE8 is explained here: http://blogs.msdn.com/b/ie/archive/2008/08/27/introducing-compatibility-view.aspx Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 13, 2012 Share Posted December 13, 2012 Hello all, I just wanted to make sure that you have 'Keep W3C Validation" setting enabled in Advance Parameters>Performance Link to comment Share on other sites More sharing options...
MrFinn Posted December 13, 2012 Share Posted December 13, 2012 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 More sharing options...
MrFinn Posted December 14, 2012 Share Posted December 14, 2012 Now I have made a new fresh installation of 1.5.2 And as soon as I enable more than 1 language this problem occur. Another symptom: When I go to the Log in page I am no longer able to change language or currency in IE8. Link to comment Share on other sites More sharing options...
sak2 Posted December 18, 2012 Share Posted December 18, 2012 Solution here. Link to comment Share on other sites More sharing options...
MrFinn Posted December 19, 2012 Share Posted December 19, 2012 Better solution here: http://forge.prestashop.com/browse/PSCFV-5936 Link to comment Share on other sites More sharing options...
mtporter Posted December 26, 2012 Share Posted December 26, 2012 When modifying the fix in Dreamweaver, it gives a syntax error on line 32 which line 32 is: var idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if}; Link to comment Share on other sites More sharing options...
mtporter Posted December 26, 2012 Share Posted December 26, 2012 (edited) 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 December 26, 2012 by mtporter (see edit history) Link to comment Share on other sites More sharing options...
Frédéric D. Posted January 13, 2013 Share Posted January 13, 2013 (edited) 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 January 13, 2013 by Frédéric D. (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts