Error in Drupal: Page Not Found - misc/jquery. cookie.js

Asked by:
moonshine / 10 Points
2012-04-24 7:03 pm EST
It doesn't effect the user, but I have a back log of these errors.

Page Not Found - misc/jquery.cookie.js - But it IS There!

To ask this user for more information, please first login.

To submit an answer, please login.



13,688 Points
2012-04-25 8:28 am EST
Hello moonshine,

I'm sorry you're having trouble with your Drupal site. While checking into this, I found that this error usually is triggered when you are in the admin area of Drupal. The file jquery.cookie.js triggers a mod_security rule on the server. To resolve this, there are two options:

1. Request that mod_security be turned of for the site. This can be done by sending an email to with the domain name you want mod_security disabled for. Be sure to include either the AMP password or the last 4 digits of the credit card on file for account verification.

2. Using the cPanel File Manager, change the file name jquery.cookie.js to jquery_cookie.js and modify your modules/system/system.module file as follows:

Look for the following code and change misc/jquery.cookie.js to misc/jquery_cookie.js

// Cookie.
$libraries['jquery.cookie'] = array(
'title' => 'Cookie',
'website' => '',
'version' => '1.0',
'js' => array(
'misc/jquery.cookie.js' => array(),

Please let us know if you have any additional questions or need further assistance.


Christi N.

To submit a comment on this answer, please first login.


I had this problem too.
I understand that these two are possible options but I think that the best option would be to change the mod_security rule. It seems from this link that the default rule has changed already in August 2010.

If it is possible this change, I would appreciate.


Claudio Shigueo Watanabe
6 Points

2013-06-01 7:25 pm EST
Thank you for your comment. Unfortunately, on our server, mod_security can only be disabled in a per domain basis in the Modsec Manager. Modsec Rules need to be edited in the httpd.conf file which is not accessible on our servers. Sorry for that.

Best Regards,
James R
2,132 Points
2013-06-03 9:57 am EST
Sorry for the delay.
What I mean is to change the Mod_security rule for everyone and not just for me as from the link that I sent I understand that fixed this rule.


Claudio Shigueo Watanabe
6 Points

2013-06-07 11:23 pm EST
Hello Claudio,

While the server mod_security rules may be changed at some point during server upgrade or maintenance. it is not something that requires immediate attention. For accounts that are experiencing issues, it is advised that you disable/enable the mod_sec for the cPanel account as needed.

Best Regards,
Scott M
16,266 Points
2013-06-10 11:17 am EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.