Page 1 of 1

[SOLVED] Scripting error on fresh install 1.5.1.3

Posted: Thu Nov 10, 2011 12:54 am
by scpost
I get this Scripting error on fresh install 1.5.1.3 in several different versions of IE
No changes were made to fresh install. Is this my hosting server?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; BRI/1; BRI/2)
Timestamp: Wed, 9 Nov 2011 16:46:31 UTC


Message: Object doesn't support property or method 'cookie'
Line: 362
Char: 1
Code: 0
URI: http://www.vbsarea.com/shop/index.php?r ... path=20_26

http://www.vbsarea.com/shop/index.php?r ... path=20_26

Re: Scripting error on fresh install 1.5.1.3

Posted: Thu Nov 10, 2011 10:29 am
by wernerrenrew
Hi,

You have a weird thing going on with your server only someone with full access to your server could identify the real problem.

Your server gives a very rare status code for this file.
http://www.vbsarea.com/shop/catalog/vie ... .cookie.js

I did a few little tests.
The 406 error means the server does know about the file.
I stripped part of the url and the server still gives the same status code for this file.
This is even weirder than the 406 itself but points me in the direction of the problem being the request uri.

After a few tests i came to the conclusion that your server doesn't accept .cookie in a url very weird.

goto this folder
/catalog/view/javascript/jquery/ui/external/

in this folder is this file
jquery.cookie.js

rename it to (take away the dot)
jquerycookie.js

now open this file
catalog/view/theme/your_theme/template/common/header.tpl
the your theme part for you still is default remember to edit this file when you install another theme

find line 26
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>

also remove the dot here

I think this should fix your problem

Regards Werner

Re: Scripting error on fresh install 1.5.1.3

Posted: Fri Nov 11, 2011 6:10 am
by scpost
Hey thanks. I think this solves it if you want to give it a shot. I guess it does not like the name 'Cookie' as you said. I would have never thought that would be it.

My hosting is http://www.inmotionhosting.com/ which is pretty a reputable company I thought.
Thanks again

Re: Scripting error on fresh install 1.5.1.3

Posted: Fri Nov 11, 2011 6:17 am
by uksitebuilder
yah, it is a PHP mod_security rule that doesn't like the word cookie in filenames.

If it doesn't work by just removing the dot, try changing the word cookie in all places mentioned above to biscuit or something else ;)

Re: [SOLVED] Scripting error on fresh install 1.5.1.3

Posted: Tue May 01, 2012 11:17 pm
by chas5427
fyi - also had same issue in ie8 only. changing the file name resolved the issue posted by wernerrenrew (thank you). issue flagged by ie8 was line with this code: view = $.cookie('display'); in category.tpl

an issue to resolved in a future update?