Post by scpost » Thu Nov 10, 2011 12:54 am

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
Last edited by scpost on Fri Nov 11, 2011 10:59 pm, edited 1 time in total.

New member

Posts

Joined
Thu Nov 10, 2011 12:51 am

Post by wernerrenrew » Thu Nov 10, 2011 10:29 am

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
Last edited by wernerrenrew on Fri Nov 11, 2011 7:10 am, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Thu Oct 27, 2011 9:48 pm
Location - Netherlands

Post by scpost » Fri Nov 11, 2011 6:10 am

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

New member

Posts

Joined
Thu Nov 10, 2011 12:51 am

Post by uksitebuilder » Fri Nov 11, 2011 6:17 am

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 ;)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by chas5427 » Tue May 01, 2012 11:17 pm

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?

Newbie

Posts

Joined
Tue May 01, 2012 11:11 pm
Who is online

Users browsing this forum: No registered users and 8 guests