Title: TypeError: jQuery(&#8230;).cycle is not a function
Last modified: August 22, 2016

---

# TypeError: jQuery(…).cycle is not a function

 *  Resolved [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/)
 * Hi,
 * I am having following error in the js files details of which is appended here
 *     ```
       TypeError: jQuery(...).cycle is not a function
   
       fit: rt_fit
       ```
   
 * This error is appearing on line 57 of rotating_tweet.js. I am using latest version
   of WordPress, with updated version of plugin (1.7.4) with Avada theme. The link
   to the site is [here ](http://tallgrasspr.com/)
 * What do you suggest to fix this?
 * [https://wordpress.org/plugins/rotatingtweets/](https://wordpress.org/plugins/rotatingtweets/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324817)
 * It’s generally hard to fix these without seeing the site.
 * A quick fix might be switching to version 2 of the JavaScript.
 * I’ve had problems with the Avada template in the past, mainly because it used
   to load its own version of `jquery.cycle` which clashes with the one that Rotating
   Tweets uses. I thought I had a fix, but it appears I didn’t! But, as said, it’s
   hard to fix without seeing the site.
 *  Thread Starter [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324852)
 * I know that there was problem in past, and you helped to get it fixed, i have
   shared the link >>[http://tallgrasspr.com/](http://tallgrasspr.com/) where this
   problem is appearing.
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324856)
 * Moving to version 2 of the Rotating Tweets JavaScript on the Rotating Tweets 
   setting page is probably the fastest way to fix this.
 * It does look like the same problem as [here](https://wordpress.org/support/topic/non-rotation-of-tweets?replies=5)
   however I don’t know why the solution no longer works!
 * Does the code:
 *     ```
       wp_deregister_script( 'jquery.cycle' );
           wp_register_script( 'jquery.cycle', get_bloginfo('template_directory').'/js/jquery.cycle.lite.js', array(), false, true);<br />
       	wp_enqueue_script( 'jquery.cycle' );
       ```
   
 * still exist somewhere in the Avada theme? Might they – possibly – have changed
   the name of the script?
 *  Thread Starter [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324922)
 * I have not updated the theme or anything. I think I have added Qcapcha on the
   site, which has resulted in breaking this functionality. However I will retest
   and confirm.
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324928)
 * Yup. It’s QapTcha that’s broken the site. I hadn’t spotted that before.
 * It puts in a second copy of jQuery and that’s pretty much guaranteed to wreck
   everything (including a bunch of Avada functionality) – because everything earlier
   on the page gets overwritten.
 * How did you install it? It appears to be a very poorly written plug-in that doesn’t
   follow WordPress coding standards.
 * One thing that might work would be to set the option for Rotating Tweets to load
   at the bottom of the page on the settings page. If that doesn’t work, then you
   will need to uninstall QapTcha.
 *  Thread Starter [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324935)
 * I had just added the js files in the custom script section of the theme,
 *     ```
       <!-- include CSS & JS files -->
       <!-- CSS file -->
       <link rel="stylesheet" type="text/css" href="/wp-content/themes/Avada-Child-Theme/jquery/QapTcha.jquery.css" media="screen" />
   
       <!-- jQuery files -->
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery.js"></script>
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery-ui.js"></script>
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery.ui.touch.js"></script>
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/QapTcha.jquery.js"></script>
   
       <script type="text/javascript">
         $(document).ready(function(){
           // Simple call
          $(".QapTcha").QapTcha();
       });
       </script>
       ```
   
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324937)
 * That’s handy. It should be an easy fix. Just remove this line:
 *     ```
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery.js"></script>
       ```
   
 * and go with
 *     ```
       <!-- include CSS & JS files -->
       <!-- CSS file -->
       <link rel="stylesheet" type="text/css" href="/wp-content/themes/Avada-Child-Theme/jquery/QapTcha.jquery.css" media="screen" />
   
       <!-- jQuery files -->
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery-ui.js"></script>
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/jquery.ui.touch.js"></script>
       <script type="text/javascript" src="/wp-content/themes/Avada-Child-Theme/jquery/QapTcha.jquery.js"></script>
   
       <script type="text/javascript">
         $(document).ready(function(){
           // Simple call
          $(".QapTcha").QapTcha();
       });
       </script>
       ```
   
 * and everything should be fine
 *  Thread Starter [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5324992)
 * Martin,
 * Thanks for yourhelp. I had already tried to not use this jQuery version, but 
   was getting #typeerror, so what I did is change the Jquery.Cycle to version 2,
   and load it in footer instead of header ( Your default setting). This resolved
   the issue, I guess, this was loading in footer is causing the jQuery.Cycle to
   load lately after Qaptcha.
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5325000)
 * Cool. Glad we got to a solution! 🙂
 *  Thread Starter [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5325001)
 * Thanks Martin. I love your prompt response in this matter, and have always appreciated
   your support to this plugin.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘TypeError: jQuery(…).cycle is not a function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

## Tags

 * [JQuery Cycle](https://wordpress.org/support/topic-tag/jquery-cycle/)
 * [Rotating Tweets](https://wordpress.org/support/topic-tag/rotating-tweets/)

 * 10 replies
 * 2 participants
 * Last reply from: [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/typeerror-jquerycycle-is-not-a-function/#post-5325001)
 * Status: resolved