Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hej,
after I enable "aggregate Javascript files" flexslider don't work
you have also the problem?
kind regards
drew
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedI've tested all the modules with aggregate js on and I'm not seeing an issue.
Can you supply which browser you're using and if there are any javascript errors?
Comment #2
minorOffense CreditAttribution: minorOffense commentedHaven't heard back nor have I heard of any other reports so I'll assume this is an isolated incident or it was fixed in a newer release.
Please reopen if that is not the case.
Thanks!
Comment #3
sgerner CreditAttribution: sgerner commentedI'm having the same issue. When I turn on js aggregation none of the slides are visible. I've tested with Chrome 19, Firefox 12, and IE 9. I've also tried removing all the other js libraries I was loading just to see if anything was clashing, but the problem persists. When I looked at the CSS, all of the li's containing the slides (.flexslider .slides > li) are set to "display: none".
Comment #4
marcoka CreditAttribution: marcoka commentedusing drupal 7.14, i can not confirm this. i suggest testing it on a clean install. maybe other modules interfere.
Comment #5
minorOffense CreditAttribution: minorOffense commentedCan you try using a stock theme (Bartik for instance)? And perhaps provide a list of modules you're using?
Comment #6
minorOffense CreditAttribution: minorOffense commentedComment #7
topham CreditAttribution: topham commentedI ran into this same issue, unfortunately the site in question has a considerable number of modules and inter-dependencies and disabling a few modules to test is time consuming and difficult.
However, I spent a bit of a time dropping in a few dsm (from Devel) around the code and it looks to me like the underlying problem is related to Flex Slider / flexslider_views. From what I can tell when you're using flexslider_views it's never calling flexslider_add() and therefor the library isn't be registered for the page.
I modified flexslider_views.module to add the following function
And my problem with Flexslider not working with aggregation goes away. This might be over-kill or the wrong spot to include the call.
Comment #8
minorOffense CreditAttribution: minorOffense commentedTry 2.x
The rendering pipeline has been redone. Unless some posts a patch for 1.x I won't be fixing it.
Comment #9
Perignon CreditAttribution: Perignon commentedThis is still an issue even under 2.0-alpha3. I spent 2 hours tonight trying to figure out why my production server wasn't showing images when my dev server was - then I realized that I always turn off CSS/JS aggregation on my dev servers. Enabling aggregation makes the slideshow disappear. Adding the code proposed in #7 works and fixes the problem.
Comment #10
MXTI was having the same issue when javascript aggregation was active.
I resolved in this way:
Stable release 2.2.0 for flexslider jquery plugin was released on august 2013, but some times later there was another commit after stable release, only for minified version of the file (jquery.flexslider-min.js).
If you download this very latest version and use this instead of the "old" one, all works fine.
You can download this version here:
https://github.com/woothemes/FlexSlider/blob/ca347d49f3656ff7ba7ea1a043f...
Hope this help
Comment #11
minorOffense CreditAttribution: minorOffense commented#7 would have flexslider added on all pages. Using hook_init like that may be a temporary work around but not a long term solution.
Since I have flexslider working in a cached environment with views it's tough to debug this. Is the caching on your views turned on by any chance?
In your browser, is there a 404 or something when trying to load a js file? Maybe add some alter hooks for add css / add js to see which libraries are loading with aggregation on?
Comment #12
joeeastham CreditAttribution: joeeastham commentedI had this issue too. Sadly, I don't have time to really investigate at the moment, but I can confirm that turning off views caching fixed the issue for me.
Comment #13
pixelsweatshop CreditAttribution: pixelsweatshop commentedAs per Priority levels of issues, I am upgrading this issue to critical.
Critical bugs either render a system unusable (not being able to create content or upgrade between versions, blocks not displaying, and the like), cause loss of data, or expose security vulnerabilities. These bugs are to be fixed immediately.
As per #10, a simple library update is all that is needed. Maintainers, can we get this rolled into the latest stable as this issue is keeping sites from going live?
Comment #14
minorOffense CreditAttribution: minorOffense commentedWe don't package FlexSlider into the module so there's nothing for us to do.
As for caching and views, Views doesn't allow us to attach libraries to blocks or other views items. So in some cases caching views can break the loading of the flexslider library. Sadly nothing we can do as this is a views bug.
As for the update minified library, we can add docs about it and update the example make file but other than that it's up to WooThemes to make a new release for FlexSlider with the fix in place.
Comment #15
plato1123 CreditAttribution: plato1123 commentedWhat's the best fix for this one, #10?
Comment #16
imoreno CreditAttribution: imoreno commented#10 did the trick for me, all is working as expected with aggregation turn on.
Comment #17
afem CreditAttribution: afem commented#10 worked perfectly. Thanks
Comment #18
nicxvan CreditAttribution: nicxvan commented#10 worked for me on one site but not another, turning js aggregation on stops the rotating.
Comment #19
BBC#10 worked for me as well. Thanks much!
Comment #20
nicxvan CreditAttribution: nicxvan commentedJust a note on#18, environment indicator was interfering with the flexslider js.
Comment #21
nemanja_legenda CreditAttribution: nemanja_legenda commentedI had same issue, but then i downloaded flexslider 2.3.0 and all issue related with aggregation are gone. You can download new version from this url https://github.com/woothemes/FlexSlider.
Comment #22
nemanja_legenda CreditAttribution: nemanja_legenda commentedI had same issue, but then i downloaded flexslider 2.3.0 and all issue related with aggregation are gone. You can download new version from this url https://github.com/woothemes/FlexSlider. Hope this will help someone.
Comment #23
nemanja_legenda CreditAttribution: nemanja_legenda commentedCorrection, version is 2.2.2
Comment #25
dadderley CreditAttribution: dadderley as a volunteer commentedI had the same problem.
I had version 2.2.0 installed.
I grabbed the current version (2.6) from https://github.com/woothemes/FlexSlider.
The problem is gone.
Thanks
Comment #26
rcodina CreditAttribution: rcodina commentedThanks @dadderley I have tested version 2.6.2 and it works too.
Comment #27
rcodina CreditAttribution: rcodina commentedComment #28
ykarthikvarma CreditAttribution: ykarthikvarma commented#10 worked for me too. Thanks !