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.
Latest dev, jquery 1.7.1, this error:
Chrome:
Uncaught TypeError: Cannot call method 'data' of undefined VM36173:1
r.logIn VM36173:1
r.loadContent VM36173:1
r.init VM36173:1
(anonymous function) VM36173:1
e.extend.each jquery.min.js?v=1.7.1:2
e.fn.e.each jquery.min.js?v=1.7.1:2
e.fn.owlCarousel VM36173:1
Drupal.behaviors.owlcarousel.attach owlcarousel.settings.js?n2khfv:27
(anonymous function) drupal.js?n2khfv:76
e.extend.each jquery.min.js?v=1.7.1:2
Drupal.attachBehaviors drupal.js?n2khfv:74
(anonymous function) drupal.js?n2khfv:412
n jquery.min.js?v=1.7.1:2
o.fireWith jquery.min.js?v=1.7.1:2
e.extend.ready jquery.min.js?v=1.7.1:2
c.addEventListener.B
Safari:
TypeError: 'undefined' is not an object (evaluating 'e.$elem.data("owl-originalStyles",e.$elem.attr("style")).data')
There's no visible output at all.
Switching to jquery 1.8 solves the problem with Owl Carousel, but leads to some other issues, so I'm not sure what to do.
Comments
Comment #1
swim CreditAttribution: swim commentedHey Scoff,
have a read of this issue, https://drupal.org/node/2179577. jQuery plugins with higher version requirements always need a little bit of a push.
Comment #2
scoff CreditAttribution: scoff commentedYes, thank you, I'm aware of that solution and have used it on one site. I just wanted to clarify if jquery 1.8+ is a requirement now or something can be done to make it work with 1.7. From the docs — "Load jQuery(1.7+) and include Owl Carousel plugin files".
Comment #3
swim CreditAttribution: swim commentedHet Scoff,
no jQuery 1.8 is not a requirement; I have a number of sites which are running 1.7 with Owl Carousel just fine. The issue which jQuery 1.7.1 encounters is documented here https://github.com/OwlFonk/OwlCarousel/issues/169 & https://github.com/OwlFonk/OwlCarousel/pull/210
Thanks @ ryancastle for posting the issue.
Comment #4
SdP CreditAttribution: SdP commentedI've the same issue:
With jquery 1.7.1 doesn't work, 1.8.2 does
I've modified the JS as suggested by swim
https://github.com/OwlFonk/OwlCarousel/pull/197/files
with the sare result: it doesn't work until I switch to jquery 1.8.2
Comment #5
swim CreditAttribution: swim commentedThe data attribute bug is certainly annoying but it's not something we can fix from the module end.
Comment #6
arruk CreditAttribution: arruk commentedI'm getting "The installed jQuery version is not supported by Owl Carousel." I have jQuery 1.10.2 installed. Should I reopen this ticket or create a new one?
Comment #7
ekkljs CreditAttribution: ekkljs commentedsame problem. "The installed jQuery version is not supported by Owl Carousel." with jQuery 1.10.2