Closed (outdated)
Project:
Flex Slider
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2013 at 13:07 UTC
Updated:
28 Apr 2019 at 12:45 UTC
Jump to comment: Most recent
Comments
Comment #1
philben commentedI've been having the same issue - I've changed jQuery version from 1.7.2 to 2.0.0, nothing worked for me. So, 7wonders, how did you resolve your issue, which jQuery version worked for you? Some answers 'll be appreciated. Thanks.
Comment #2
rutcreate commentedIn my case, there are 2 jquery files (core, theme). I removed it from theme. it works perfectly fine.
Comment #3
katrien_w commentedThanks, this solution works fine for me!
Comment #4
sgdev commentedThis is actually a bigger issue than just moving jQuery files.
We have a client using Formstack to embed forms into pages. Included in the Formstack code is a document.write to http://static.formstack.com/forms/js/3/jquery.min_1d14cd3798.js, which loads another jQuery file.
The result is the "
TypeError: $(...).once is not a function" error for Flex Slider, and the slideshow does not load.There needs to be some logic in Flex Slider to identify if another jQuery has been loaded, and skip the process if there has been.
Comment #5
sgdev commentedOne additional comment on this topic. Some third-party tools provide options to remove jQuery from being embedded in the JavaScript during the time it is created. For other tools, there might be an option to use iframes instead. Both of these are viable approaches that would fix the problem.
Regarding a solution that would block jQuery from loading, the more I think about it, the more I feel it is not that straightforward. What if the third-party app needs a particular version of jQuery to run? What if the Drupal site is dependent on a particular version?
Is there possibly a solution in Drupal core than handles this issue, such as wrapping third-party embeds in a way that does not interfere with loading site content?
Comment #6
lukejoliat commentedI'm getting this same error, but I cannot figure out how to resolve it from the comments here. Do I have duplicate jquery files? What exactly do I need to do to stop the error?
Comment #7
LucasLLLS commentedI was having a similar issua, then i have changed my jQuery version from 1.10 to 1.8 and it solved the problem.
Comment #8
amaria commentedIs this still happening? Be sure to use the latest version of the FlexSlider library. There were some issues with older versions of the library with newer versions of jQuery.
Comment #9
amaria commentedComment #10
ferrete commentedI had the same problem, check if jQuery is called more than 1 time and make sure that you start the script with jQuery(function($) {
Comment #11
hardik jayeshbhai hihoriya commentedIn my case, there are 2 jquery files (core, theme). I removed it from theme. it works perfectly fine.
it's working complete #2
thank you
Comment #12
shobhit_juyal commented#11, worked for me. Thanks
Comment #13
gabble_ratchet commentedJust to add my experience to this thread - I was getting the exact same error on a fresh load after clearing the cache. In my case it turned out to be Font Awesome that was causing the issue. I was using the svg/js option which caused the aforementioned issue. I removed that and instead included the css via cdn and the issue has gone away.
Comment #14
derekrezek commentedin my case i removed it from the core,
in core.libraries.yml > jquery.ui
Comment #15
wdev commented#11, worked for me. Cool
Thanks