Jump to content

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

Link to comment
Share on other sites

  • 11 months later...

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
Link to comment
Share on other sites

  • 5 weeks later...
  • 1 year later...

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