dpower717 Posted December 20, 2011 Share Posted December 20, 2011 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 More sharing options...
solarm Posted December 3, 2012 Share Posted December 3, 2012 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(); 1 Link to comment Share on other sites More sharing options...
mtporter Posted January 2, 2013 Share Posted January 2, 2013 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. 1 Link to comment Share on other sites More sharing options...
David Eschmeyer Posted April 2, 2014 Share Posted April 2, 2014 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now