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

Asked by:
moonshine / 10 Points
Time:
2012-04-25 2:03 am EST
Category:
Drupal
Hits:
3,332
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.

ANSWERS

0

ChristiNi
Staff
13,688 Points
2012-04-25 3:28 pm 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 support@webhostinghub.com 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' => 'http://plugins.jquery.com/project/cookie',
'version' => '1.0',
'js' => array(
'misc/jquery.cookie.js' => array(),
),
);


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

Regards,

Christi N.

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

Christi,

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.
https://www.modsecurity.org/tracker/browse/CORERULES-29

If it is possible this change, I would appreciate.

Thanks,

Claudio Shigueo Watanabe
claudiosw
6 Points

2013-06-02 2:25 am 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
jamesr
2,132 Points
Staff
2013-06-03 4:57 pm 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 modsecurity.org fixed this rule.

Thanks,

Claudio Shigueo Watanabe
claudiosw
6 Points

2013-06-08 6:23 am 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
ScottM
16,266 Points
Staff
2013-06-10 6:17 pm 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!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com 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.
}