Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
Hi,
I'm getting the following error while clicking on the links inside a carousel:
Uncaught TypeError: Cannot read property 'animating' of undefined (line 5 of jquery.flexslider-min.js)
which leave me on the same page.
I'm using Flexslider in a views (format: Flexslider).
Any idea how to fix this?
Thx for help.
Here is a link: http://wwwenger.kostik.net
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedA link to the slider would help debugging.
Comment #2
sahaj CreditAttribution: sahaj commentedAdded link to help debugging (http://wwwenger.kostik.net)
Comment #3
tuananh3988 CreditAttribution: tuananh3988 commentedi same error :(
Comment #4
minorOffense CreditAttribution: minorOffense commentedI don't see the error on that page in Firebug.
I'll try to keep an eye out for it. I'm deploying a couple more sites with FlexSlider soon.
Comment #5
Peacog CreditAttribution: Peacog commentedI see that the original poster has fixed the problem, but I had the same error so this might help others in the same situation. It turned out it was happening because I was trying to re-use an option set that had been set up as a navigation controller for another slider. So I cloned the optionset, cleared the 'Use as navigation' field in 'Advanced Options' and used my new optionset instead.
Comment #6
axelpezzo CreditAttribution: axelpezzo commentedHi,
i've found a solution for this problem. The problem is that the FlexSlider library use a parameter called "animation" but the module uses a parameter called "animating". For this reason the library going in crash.
So, i add a behaviors into the .js file of my theme and i add a new definition for flexslider adding the right parameters:
$(".flexslider").flexslider({
animation: "fade",
});
Comment #7
jive01 CreditAttribution: jive01 commentedI am getting this error as well. I suspect #6 is the right answer, but was unable to follow exactly what he did.
Can a patch be submitted for this?
Comment #8
Samshel CreditAttribution: Samshel commentedI ran into the same problem and #5 was on point. @jive01 should try that solution.
Comment #9
sumit-k CreditAttribution: sumit-k commentedIf you are using flexslider module then goto configuration -> media and click on edit of flexslider format.Then goto advance option and leave blank "use as navigation field" and check other configuration.It worked for me.
Comment #10
amaria CreditAttribution: amaria commentedThe animating property is no longer in 7.x.2.x-dev so closing as outdated.