This is a strange problem that I have had for a while.
I have a views display which creates a jCarousel block which is displayed in Quicktabs.
Ajax is disabled in all three(jCarousel, Views, and Quicktabs) modules.
Enabling or disabling caching in in Views doesn't make any difference.
Block caching, js, and css aggregation are enabled.
Sometime usually after periods of heavy load on my server (usually caused by crawlers). jCarousel doesn't load the images anymore.
I compared the source code of the page when it is working and when it is not working and I have found out:
"sites\u002Fall\u002Fmodules\u002Fjcarousel\u002Fjs\u002Fjquery.jcarousel.min.js":1, "sites\u002Fall\u002Fmodules\u002Fjcarousel\u002Fjs\u002Fjcarousel.js":1,
and
"sites\u002Fall\u002Fmodules\u002Fjcarousel\u002Fskins\u002Fdefault\u002Fjcarousel-default.css":1,
and
"carousels":{"jcarousel-dom-1":{"view_options":{"view_args":"", "view_path":"node\u002F22", "view_base_path":null, "view_display_id":"block_1", "view_name":"image_gallery_carousel", "jcarousel_dom_id":1}, "skin":"default", "autoPause":1, "start":1, "selector":".jcarousel-dom-1"}}},
are missing comparing to when the carousel works properly. Now I have no idea why they would not get added!

When this happens, the only thing that fixes the issue is "clearing all cache" in drupal performance page.
I really appreciate any input, since I have been struggling with this for a long time without any luck. Let me know if you need more info.

Comments

faite’s picture

Im having a similar issue with the carousels in a quicktab not working. When it doesnt work I look into the source and it looks like the jcarousel.js and the jquery.jcarousel.min.js weren't even loading. When I cleared the cache they would for a bit then stop again. I hard coded the js files into the theme and even when they load very often the carousel doesn't load up. Its super strange. I am working thought it now and will report back soon.

siavashr’s picture

Hi Faite, thanks for your reply! I'm looking forwards to see what you find out. Cheers

vefverksmidja’s picture

We are having the exact same problem. Randomly the JCarousels on www.hi.is just stop appearing and the only thing we can do is clear the cache. This started in early January and no solution has been found yet. Just now I tried loading the js manually in the theme, but no dice.

Vefverksmiðjan

vefverksmidja’s picture

Hi again,

For us the problem is solved. It turned out that the latest versions of Context UI were buggy and cause whole blocks to disappear.

Vefverksmiðjan

siavashr’s picture

Hi Vefverksmiðjan! We use Context UI too! Which version of Context UI did you revert back to?

vefverksmidja’s picture

Hi again,

We did not revert to an older one, but that would be a good idea. I just disable the Context UI module (the context themselves still work) when I'm not changing the contexts. I think Context beta2 was the newest one that is still OK, but I'm not sure.

regards, Vefverksmidjan

siavashr’s picture

Thanks Vefverksmidjan,
Disabling Context UI doesn't seem to help our issue. So the search goes on! :)

peaton’s picture

Disabling Context UI worked for me!

suvankar7’s picture

I did not installed context UI, but same problem is on my site. I cannot figure out yet to solve this. any idea guess?

markpavlitski’s picture

Issue summary: View changes
Status: Active » Postponed

Unfortunately jCarousel is not compatible with block caching at present (due to outstanding views/core block issues).

See #1296632: Compatibility with block caching for more details and a workaround.

Until that issue can be resolved block caching will cause issues with jCarousel.