WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cycle
[resolved] "jQuery is Not Defined" - Console Error (12 posts)

  1. thaddeusreid
    Member
    Posted 1 year ago #

    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/

  2. depetto
    Member
    Posted 1 year ago #

    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)

  3. depetto
    Member
    Posted 1 year ago #

    never mind, all problems solved now :D

  4. Gyan Gaurav
    Member
    Posted 1 year ago #

    Hi.. thaddeusreid

    can you post a link to your site here.

  5. thaddeusreid
    Member
    Posted 1 year ago #

    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?

  6. Gyan Gaurav
    Member
    Posted 1 year ago #

    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 ..

  7. thaddeusreid
    Member
    Posted 1 year ago #

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

    http://bereafarmersmarket.com/

  8. thaddeusreid
    Member
    Posted 1 year ago #

    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.

  9. 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' );
  10. Gyan Gaurav
    Member
    Posted 1 year ago #

    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.

  11. minamarcos
    Member
    Posted 6 months ago #

    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

  12. benlaw
    Member
    Posted 5 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.