Hi all,

Having a little problem with the javascript on a site of mine. First of all, I'm on Drupal 6.17 running a custom built theme.

Here's what happened:

1. Thought I was ready to go into production mode, so enabled normal caching and enabled Optimize Javascript in the Performance page.
2. All ok so far
3. Realised that there was still a couple of things left to do, so unOptimised the JS and disabled caching
4. Since then, no JS seems to work on the pages - my slideshows aren't sliding and even the collapsed field sets of the system pages are not working - they just stay collapsed.
5. Using Admin Menu, if I then clear all caches, the javascript starts working again just on that page - if I navigate to another, it stops working again and I have to clear the caches. This also happens if I navigate BACK to the original page that I cleared the cache on - I have to reclear to get the JS working again.

EEK!

This is a real problem, as it manifests itself not only in admin login mode, but in anonymous just-browsing-around mode, which means that the active functionality of the site is impaired.

Anybody have any ideas as to what happened here and how to fix it? Never had this issue before, not with the 15 or so other Drupal sites I've built.

Shot!

Comments

pixelz’s picture

As I have garland running as my admin theme, I though I'd check out whether I get the same issue when in Garland

Interestingly I don't! hmmmmm....

Curiouser and curiouser...

pixelz’s picture

anybody have any?

bojanz’s picture

Install Firebug and see which error it's reporting.

baronmunchowsen’s picture

I have this exact same problem. JS was cached, disabling it to make some changes rendered all the javascript from working (though no errors reported in firebug etc.). The JS only stopped working for logged in users, site was fine for anonymous.
Weird - I enable caching again and it's all good. Haven't figured it our yet... my js looks like:

script type="text/javascript" src="/misc/jquery.js?M"
script type="text/javascript" src="/misc/drupal.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/build/spamspan/spamspan.compressed.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/seo/google_analytics/googleanalytics.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/third_party/lightbox2/js/lightbox.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/third_party/jquery_ui/jquery.ui/ui/minified/ui.core.min.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/third_party/jquery_ui/jquery.ui/ui/minified/ui.draggable.min.js?M"
script type="text/javascript" src="/sites/all/modules/contrib/third_party/jquery_ui/jquery.ui/ui/minified/ui.resizable.min.js?M" 
script type="text/javascript" src="/sites/all/modules/contrib/third_party/jquery_ui/jquery.ui/ui/minified/ui.dialog.min.js?M"