Jump to content
dpower717

Error in authentication with countriesneedIDnumber

Recommended Posts

Hi all,

 

After upgrading to the new design presta template got only one error on authentication.php, and only on internet explorer, on firefox everything is running fine !

 

Webpage error details

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.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

Timestamp: Tue, 20 Dec 2011 09:48:52 UTC

 

Message: Object doesn't support this property or method

Line: 6

Char: 25

Code: 0

URI: http://www.mydomain.com/authentication.php?back=my-account.php

 

Message: 'countriesNeedIDNumber' is undefined

Line: 85

Char: 90

Code: 0

URI: http://www.mydomain.com/themes/prestashop_new/cache/b7da43f9bfbc4565c97e418ddc4a1ccf.js

 

As i can see in this JS file, it is defined, and it should otherwise firefox should have the same problem.

Anyone a idea ??

Share this post


Link to post
Share on other sites

try to add in /themes/default/authentication.tpl VAR declaration for variables :

 

Original:

<script type="text/javascript">
// <![CDATA[
idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
countries = new Array();
countriesNeedIDNumber = new Array();
countriesNeedZipCode = new Array(); 

Modification:

<script type="text/javascript">
// <![CDATA[
var idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
var countries = new Array();
var countriesNeedIDNumber = new Array();
var countriesNeedZipCode = new Array(); 

  • Like 1

Share this post


Link to post
Share on other sites

This does not fix. If I go to just 1 language, the problem goes away. Only in IE8 does it appear when there are more than 2 languages involved.

  • Like 1

Share this post


Link to post
Share on other sites

This does not fix. If I go to just 1 language, the problem goes away. Only in IE8 does it appear when there are more than 2 languages involved.

 

thanks mtporter you solved it for this case... but this user does not need other languages so that was a good solution.

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More