• Greetings. I am experiencing a problem that many others have posted about on this forum. The dreaded “jQuery is not defined” javascript error. however, the remedies that have helped others didn’t get me anywhere … apparently this error is thrown for many different reasons.

    This problem also vanishes like a fart in the wind when you turn on script debugging in the wp-config.php file:

    define('SCRIPT_DEBUG', true);

    The symptoms are as follows. Many panels in the admin window will no longer expand or collapse. Many buttons in the admin panel still exhibit rollover behavior however they don’t take you anywhere. The visual composer doesn’t function anymore only displaying shortcodes in it’s window, etc. Just bizzarre stuff which, again, all goes away with that debugging line of code.

    Other abnormalities of note: Jquery is used to do scrolling on the homepage. If you click the button “See How It Works” just beneath the main slider, it’s supposed to scroll you down the page to the top of that wood paneled section just beneath it.

    https://www.escoffieronline.com/

    This feature, which uses jquery, is not working. however if you go to the Meet The Team Section on the “About” page …

    https://www.escoffieronline.com/about/#mtt

    Click on a person’s picture … this feature, oddly, does work. So Jquery appears to be working when it wants to ??

    What I should point out at this time is that I did my own Jquery install (v 1.10.2 – incorrectly I now see) by pasting in my own set of includes. In the <head> you will see these lines:

    <!– SCOTT JQUERY INCLUDE, TEAM PORTFOLIO JS & SCRIPTS.JS –>
    <script async src=”https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”></script&gt;
    <script async src=”https://devonline.wpengine.com/wp-content/themes/jupiter/js/escoffTeamPortfolio.js”></script&gt;
    <script async src=”https://devonline.wpengine.com/wp-content/themes/jupiter/js/scripts.js”></script&gt;

    I think this is our problem, but I have no idea what to do about it. I’ve been experimenting with enqueue_script() and such. I gather that you should never hard code your includes like this. But my “Meet The Team” slider doesn’t work with the stock Jquery (1.11.0) that came with the theme. How do I combine these functions?

    I’m lost on what to do about this. I’ve already declared noConflict() in my JS files.

    How would I get everything to play together nicely?

    Note: I’ve already deactivated/reactivated all plugins and also upgraded Rev slider, The Theme itself, and all plugins. None of this helps.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can’t be sure which theme you are using but it appears to be Jupiter version 3.8. The current version is 3.9.3. Its possible this issue has been fixed so consider updating your theme. Take a backup first.

    As this is a commercial theme, the vendor artbees is best placed to offer support.

    Thread Starter scott5150

    (@scott5150)

    Our host is WP Engine. They have a cool staging feature that lets you make a copy of the site and do all sorts of things like that. On our staging version, I swapped in the new theme and it did not help one bit.

    Thanks for your input

    Thread Starter scott5150

    (@scott5150)

    Here’s another version of the site in a staging environment. All plugins and the theme itself are updated to the most recent versions.

    https://devonline.staging.wpengine.com/

    I think the problem has to do with two jquery installs … still trying to figure out what to do about that …

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘More Fun With "jQuery is not defined"’ is closed to new replies.