1

Topic: vldpersonals v2.7 - JavaScript Error

Hi,

I'm just done a fresh install of vldPersonals v2.7 and I haven't done any modifications yet. Yet the Homepage is already throwing some JavaScript Errors in IE8 and Firefox 9.0.1

IE8 displayed a warning Icon with the following details:

- Error on page:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3)
Timestamp: Wed, 4 Jan 2012 09:05:37 UTC

Message: Object doesn't support this property or method
Line: 19
Char: 19673
Code: 0
URI: http://www.thaimeetup.com/includes/js/jquery.js

Message: Object doesn't support this property or method
Line: 19
Char: 15990
Code: 0
URI: http://www.thaimeetup.com/includes/js/jquery.js

Firebug in Firefox 9.0.1 is reporting the following errors:

"NetworkError: 406 Not Acceptable - http://www.thaimeetup.com/includes/js/jquery.cookie.js" jquery.cookie.js

$.cookie is not a function
[Break On This Error] eval(function(p,a,c,k,e,r){e=function(...kMember|block|hover'.split('|'),0,{}))
chat.js (line 1)

The Errors is only noticeable after logging in...I think it's the chat module which is throwing these errors.

Last edited by woscom (2012-01-04 04:22:43)

2

Re: vldpersonals v2.7 - JavaScript Error

have you tried with another computer?

3

Re: vldpersonals v2.7 - JavaScript Error

Thanks for your speedy reply ^_^

I'm a full time web designer and all the websites I've built are tested on this computer for any JavaScript / HTML Errors; all the browsers on my computer are at it's default settings.

By the way, Firebug error report on JavaScript is pretty accurate ;)

I've just tried the Online Demo at http://demo.vldpersonals.com/?template=dark and surprisingly, after logging in, it isn't reporting any errors at all, IE nor Firefox.

It's a fresh install and I haven't touched anything yet, neither the settings nor the template itself.

So...why am I getting these errors?

-_-"

Last edited by woscom (2012-01-04 05:06:47)

4

Re: vldpersonals v2.7 - JavaScript Error

You get errors because your server blocks access to jquery.cookie.js file. Usually this happens if you have mod_security module installed on your server which sometimes (depending on how it's configured) prevents you from accessing the above file. If you try to open it in your browser, you'll get an error. Contact your hosting provider to assist you with it and either reconfigure mod_security or simply make it ignore the file.

Developer

5

Re: vldpersonals v2.7 - JavaScript Error

Thanks Vlad

I'm on a VPS Server and I have full access to the server settings. Yes I do have mod_security installed and the log file is showing that it was blocked by mod_security.

I've added the following rule to modsec2.user.conf and that solved the problem.

SecRule REQUEST_URI "/includes/js/jquery.cookie.js" nolog,allow