-
Notifications
You must be signed in to change notification settings - Fork 861
Conflict with Gravityforms - jQuery is not defined #1076
Comments
@wishe I was getting a different error when I followed the steps you provided to reproduce. It said I was able to fix it by changing line 1037 in I'm kind of surprised that Gravity forms is still using the deprecated If you change that line will it start working for you @wishe? |
I am getting an error on the script tag "jQuery is not defined". Unfortunately the change your proposed does not do anything for me.
|
Hi @wishe . I will close this issue, as issues regarding integration of third-party WordPress plugins are not supported. |
I know this a closed issue, but thought I'd provide some explanation and a solution for others who might run cross this conflict. I contacted Gravity Forms support and got this explanation:
So the suggested "fix" is to enqueue the jQuery Migrate add-on, https://blog.jquery.com/2016/05/19/jquery-migrate-1-4-1-released-and-the-path-to-jquery-3-0/ |
Here's the line I added to just below line 46 of the
|
@phylaxis thanks for reporting this to Gravity Forms. Their response doesn't really make sense to me and is actually kind of frustrating because whoever responded to that didn't actually look into the issue and the suggested fix. The The latest version of Gravity Forms requires "the latest version of WordPress" to work with it. There is really no good reason that I can see for them to not simply replace @phylaxis I would appreciate it if you could follow up with GF's support with the info I provided here and see if they change their tune. Thanks! |
I believe their point is that, even though it's been deprecated, Wordpress (the latest version) still only includes jQuery 1.12.4 (which still allows the deprecated method) and also jQuery Migrate, so technically the "latest version of Wordpress". Crazy I know and I buy your logic more than theirs. I'll happily pass along your comments, but I doubt it will change anything on their end. Cheers! |
@phylaxis I appreciate that! Maybe when it's all laid out for them they'll see why it makes no sense to keep load, but ya, I'm not holding my breath. |
Gravity Forms team please replace .load with .on('load' |
This seems to have been implemented by gravity forms now, on line |
How can this bug be reproduced?
What did you expect to happen?
I would expect form validation to work via ajax and no console errors.
What happened instead?
Console shows multiple jQuery is not defined errors. I believe it is due to the way the newest version includes jQuery, with Webpack. Curious if anyone else have experienced a similar issue?
I tried to change where the Gravity Forms Javascript is enqueued to the footer but that did not help. When i remove the deregistering of the wordpress packed jQuery it works. But i dont want to be including 2 versions of jQuery on my site.
Please List the Following:
The text was updated successfully, but these errors were encountered: