I had exactly the same problem, and managed to track it down to some theme code.
I was using the bones theme, which de-registers the default jQuery JS and adds its own using the Google CDN, like:
// we don't need the Wordpress jquery as we are loading our own version
add_action('wp_enqueue_scripts', 'stnic_remove_jquery');
function stnic_remove_jquery(){
if(!is_admin()) {
wp_deregister_script('jquery');
}
}
// loading modernizr and jquery, and reply script
function bones_scripts_and_styles() {
if (!is_admin()) {
wp_register_script( 'cdn-jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js', array(), '', false );
}
}
As you can see, it deregister
's the default jquery
script, and then adds its own cdn-jquery
script, which is fine, apart from the fact that the Gravity forms scripts have a dependency on jquery
and not cdn-jquery
!
Because they can't see the default jquery
script, they don't load, and it would seem that they fail silently, simply emitting this JavaScript error because said JavaScript is loaded without checking dependencies.
In any case, I fixed it by re-naming the bones register script to jquery
, might not be the best way to fix this, but it works.
Alternatively, commenting out both pieces of code would also fix this (and leave the default Wordpress JS in there).
Not sure if other themes do this, but might be worth doing a search all in your theme for wp_deregister_script('jquery');
or at least switching to the default theme to see if you experience the same problem (that's how I pinpointed this).