Hi there,

My host returns a 404 on anything that has ".cookie" in it, I've tried tons of filenames (bla.cookie.bla, bla.cookie, ...) anything that has .cookie in it won't work. (bla.cookiebla does work though)

as a result, it fails to load the jquery.cookie.js

I know u probably won't rename the file and the reference to it, just because I have a messed up host, so I simply renamed it to jquery_cookie.js and put str_replace("jquery.cookie.js", "jquery_cookie.js", $scripts); in my page.tpl.php

I just felt like I should post this to let u know that some ppl might run into this problem and not understand what's wrong, I'm contacting my webhost about it right now to find out what the reason of this weird behavior is.

Comments

gábor hojtsy’s picture

Hm, we are importing this jQuery plugin from the jQuery community, and they ended up with this naming scheme, so we are basically following them straight, it is not our decision. Not sure what we can do about it, I don't expect us to rename the file.

seutje’s picture

Status: Active » Closed (works as designed)

oh don't get me wrong, I don't expect u to rename it.

I just felt like I had to post this here, coz my hosting company (AlfaHosting) is pretty big in my country (Belgium), and they let me know that it is due to a mod_security rule which doesn't allow ".cookie" to be in the filename.

so I figured there's bound to be other hosting companies or other ppl using the same hosting company that have been wondering why they can't get this to work properly, and I figured it wouldn't hurt to post this up so ppl can find a reference to it, and don't have to dig around with firebug for a good 4 hours before noticing it's not their (or u as the module maintainer) fault.

But the hosting company is performing research right now as to why this mod_security rule is in place, and if it could possibly cause any harm to remove this rule.

Thx again for an awesome module and I apologize if I've caused any confusion or if I've caused u to waste time researching this issue.

I'ma go ahead and tag this as "by design"

gábor hojtsy’s picture

Category: support » bug
Status: Closed (works as designed) » Postponed

Also reported at #496714: the jquery.cookie.js triggers the apache's mod_security error. Since Drupal 7 ships with the same file with the same filename, I've opened #522646: jquery.cookie.js incompatible with Apache mod_security by default with background info copied from here too, so we can resolve this in Drupal 7 and port the fix to the Drupal 6 version of the module. Reopening this issue in postponed state, so we can come back to it.

nco71’s picture

Following the issue. Same problem , not sure if it due to apache mod secutiry with my host provider.
All my jquery effect crash after this and that s the only jquery bug. So I hope by correcting them I can solve the other bugs

pendashteh’s picture

Version: 5.x-1.0 » 6.x-1.7

thanks. it solved my problem.
but there is a strange note. i have multi-site running. the problem just arose for one of them.
i use D6.

gábor hojtsy’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

Drupal 6 is not supported. The same problem was not reported for Drupal 7.