Posted by cerup on October 3, 2009 at 8:04am
Jump to:
| Project: | Javascript Tools |
| Version: | 6.x-1.0 |
| Component: | Collapsiblock |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
I'm getting using jstools and collpsiblock.
I'm getting an error in watchdog:
Type: page not found
Location http://www.domainname.com/sites/all/modules/jstools/jquery.cookie.js?m
Referrer http://www.domainname.com/admin/reports/dblog
Message 406.shtml
Severity warning
It happens on pretty much everypage and only when collapsiblock is turned on (probably because it's the only module that calls jstools and jquery.cookie). When I go to view source in firefox and see the jquery.cookie.js file it doesn't load it (although it's present in the folder). When I enable 'javascript optimization' the problem goes away, but I need to disable it while I'm in development.
Any help would be appreciated.
Comments
#1
I vaguely remember a similar error report that had to do with server configuration not allowing access to this file.
#2
The problem is that your host blocks the file name "jquery.cookie.js" for some reason. Js aggregation aggreagtes js in a file with a random name. This name is abviously not equal to "jquery.cookie.js" so it passes the checks on your host.
2 possibile solutions:
- ask your host why the f*** he doesn't allow it
- change the file name to jquery_cookie.js
We don't like to rename the jquery file in core because its an external library.
#3
#4
This could be because Apache's mod_security is blocking .cookie.js.
This seems to be an issue on Drupal 7 as well.
misc/jquery.cookie.js giving 406, causing 'draggable' reordering of menuitems to fail, in Drupal 7.
Workaround: Enable JavaScript Aggregation under admin/config/development/performance
Follow this up at http://drupal.org/node/817362