WordPress.org

Support

Support » Plugins and Hacks » WP-Cycle » [Resolved] "jQuery is Not Defined" – Console Error

[Resolved] "jQuery is Not Defined" – Console Error

  • Hey all,

    Just like the title says, I”m getting a console error: “Uncaught ReferenceError: jQuery is not defined ” in regards to the jquery.cycle.all.min.js file.

    I believe the formatting of the HTML is good to go. Here it is:

    <div id="slideshow">
    	<img src="img-src" width="xxx" height="xxx" class="20130719050506" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050512" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050516" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050520" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050524" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050528" alt="" />
    	<img src="img-src" width="xxx" height="xxx" class="20130719050532" alt="" />
    </div>

    Is the first image supposed to have class=”first”?

    I haven’t seen any other topics about the jQuery breaking…anyone have an idea?

    http://wordpress.org/extend/plugins/wp-cycle/

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m experiencing a problem too, now my images are shown consecutively in my sidebar and don’t rotate anymore. my site is: http://lana-del-rey.id1945.com/
    what could have gone wrong? I got it working perfectly last night (as in 9 hours ago)

    never mind, all problems solved now 😀

    Hi.. thaddeusreid

    can you post a link to your site here.

    depetto: Would your solution fix my problem?

    Gyan Gaurav: I will as soon as I can. This problem is happening on my MAMP hosted website. I’m waiting for some hosting issues to be sorted with a client, so I don’t have access to a live server currently. Could this be part of the problem?

    thaddeusreid: I believe you have tried disabling other plugins one by one..may be js conflicting with some one.. Or just try changing the <div id=””> id here from the wp_cycle settings page. just in case if you all ready have activated another gallery or slideshow plugin ..

    Gyan Gaurav: I’ve got the site live, would you mind taking a peek?

    http://bereafarmersmarket.com/

    Okay, I believe I’ve resolved this problem.

    All I had to do was include this code in my <head>:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

    Also, I had to make sure this script was loading before the jquery.cycle.all.min.js file.

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    That’s not really a good idea adding jquery that way and it could create conflicts for you.

    Give this a read:

    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    You can load jquery just by using this code in your (child) theme’s functions.php file.

    function mh_load_my_script() {
        wp_enqueue_script( 'jquery' );
    }
    
    add_action( 'wp_enqueue_scripts', 'mh_load_my_script' );

    I looked at your site. have you seen that alternatively two images are being displayed in the header.? also its not a good idea to add additional jquery here. jquery.cycle.all.min.js is all alone capable of doing what you want here.

    I had same problem i fixed it by repast the wp-includes folder from a fresh copy of the WP , there was missing js files

    hi all
    i have this issue
    jquery undefined
    anyone can help
    here my site
    http://www.benlawstudio.com

    i cant get lightbox working in my wordpress too

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] "jQuery is Not Defined" – Console Error’ is closed to new replies.
Skip to toolbar