More Fun With "jQuery is not defined"
-
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>
<script async src=”https://devonline.wpengine.com/wp-content/themes/jupiter/js/escoffTeamPortfolio.js”></script>
<script async src=”https://devonline.wpengine.com/wp-content/themes/jupiter/js/scripts.js”></script>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.
- The topic ‘More Fun With "jQuery is not defined"’ is closed to new replies.