After WP 5.5 upgrade – JQuery is deprecated
-
Any chance for a plugin update to resolve this issue:
https://www.blackjackreview.com/wp/wp-content/plugins/footnotes/js/jquery.tools.min.js: jQuery.browser is deprecated
I am using the jQuery Migrate Helper plugin in the meantime.
The page I need help with: [log in to see the link]
-
I am having the same issue. Also using jQuery Migrate Helper for now.
Having the same error. Please resolve this issue.
Thank you for your plugin. I am likewise hoping for an update that resolves this issue.
Here is the warning/error returned through the Enable jQuery Migrate Helper plugin:
https://…/wp-content/plugins/footnotes/js/jquery.tools.min.js: jQuery.browser is deprecated
Hi all,
We are using a too old library and I must see with what we can replace it.
Can you tell me exactly where & when you see this error? That would help me to dig it.
Best regards
Once the jQuery Migrate Helper plugin is installed, the following alert box is displayed:
jQuery Migrate Helper — Warnings encountered
This page generated the following warnings:
/wp-content/plugins/footnotes/js/jquery.tools.min.js: jQuery.browser is deprecated
I hope that helps!
- This reply was modified 4 years, 2 months ago by widecast.
Hello author and users community,
I have the same error message and have to activate the jQuery migrate plugin to fix it.
It’s seems that there is only one deprecated function: jQuery.browser
The jQuery documentation https://api.jquery.com/jQuery.browser/ say “Instead of relying on $.browser it’s better to use libraries like Modernizr”a.browser can be found 8 times inside the jquery.tools.min.js file, that is not maintened anymore by his author https://jquerytools.github.io/download/
Thank you for you beautiful work on this plugin.
Best.Hi all,
Thank you. This has now been solved with jQuery?UI, that is going to be supported natively in upcoming v2.0.4 of this footnotes plugin.
The mouse-over tooltip box is up and running again since v2.0.0.
a.browser
in jQuery Tools has been made optional, so it won’t break things.Thanks for using
footnotes
.Best regards.
- This reply was modified 4 years ago by pewgeuges.
Hello @pewgeuges, thanks a lot for the update!
Using the latest version of the plugin, I am seeing the following errors in the console:
Uncaught ReferenceError: jQuery is not defined
It seems that jQuery UI is being loaded before jQuery core.
Are you getting this on your end as well?
Hi @widecast,
Welcome and Thank you for reporting this problem.
The most I can see is ‘Loading failed for the <script> with source “https://localhost:1024/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp”’ and ‘Loading failed for the <script> with source “https://localhost:1024/wp-includes/js/wp-emoji-release.min.js?ver=5.5.3”’ in Firefox, while Chrome’s console stays empty (beside a message in verbose mode).
Loading jQuery Core doesn’t seem to be postponed, the less as the order in class/init.php is:
// add the jQuery plugin (already registered by WordPress) wp_enqueue_script( 'jquery' ); // Add jQueryUI: 'no need to enqueue -core, because dependencies are set' wp_enqueue_script( 'jquery-ui-widget' ); wp_enqueue_script( 'jquery-ui-mouse' ); wp_enqueue_script( 'jquery-ui-accordion' ); wp_enqueue_script( 'jquery-ui-autocomplete' ); wp_enqueue_script( 'jquery-ui-slider' );
The page source has tags for loading jQuery core, first, and jQuery tools, enqueued below this in class/init.php, before a theme-proper script:
<script src='https://localhost:1024/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp' id='jquery-core-js'></script> <script src='https://localhost:1024/wp-content/plugins/footnotes/class/../js/jquery.tools.min.js?ver=5.5.3' id='mci-footnotes-js-jquery-tools-js'></script> <script src='https://localhost:1024/wp-content/themes/twentytwenty/assets/js/index.js?ver=1.5' id='twentytwenty-js-js' async></script>
Given the page works, I’ve got no clues about what’s going on with ‘jQuery not defined’.
No, I don’t get this. How do you think?
Hmm, I think the issue might be a conflict with my theme. I’ll investigate more.
Sorry about that!
Thank you for feedback.
No worries!
@bjrnet21, @cconser, @vyassuresh, @spaceling, @lolzim, @widecast, @olivlyon
Thank you a lot for drawing our attention.
jQuery.browser
has been redacted in jquery.tools.min.js and is no longer causing issues. Today, the related browser checks are almost useless, and for the use cases involved in Footnotes, almost certainly. Please see each instance’s rationale in wp-content/plugins/footnotes/js/jquery.tools.js (the file wasn’t fully minified, now it is). Just for the record (next commit will include this thread’s URL):Removed usage of jQuery browser check function 2020-11-12T0127+0100
See also on the Forum: https://www.ads-software.com/support/topic/after-wp-5-5-upgrade-jquery-is-deprecated/
lastly https://www.ads-software.com/support/topic/jquery-issues-13/#1 (54) This was only a tweak to adjust width and height in Internet Explorer.
#2 (226) This was only for very old Internet Explorer (older than IE8).
#3 (266) This was only about a naming convention of Firefox: ‘DOMMouseScroll’ vs ‘mousewheel’, or ‘mousemove’ in very old Firefox (older than v1.9). When making jQuery.browser optional, an ‘if(a.browser)’ condition was added around.
#4 (293) This disabled fade-in for Internet Explorer other than FadeIE.
#5 (296) This disabled fade-out for Internet Explorer other than FadeIE.
#6 (420) This disabled slide-fade for Internet Explorer. Browsers not supporting an effect simply don’t execute it, they won’t throw an error.
————————————–Conflicts with themes can be addressed by enabling alternative tooltips in the dashboard > Customize > Mouse-over box > Use alternative tooltip implementation -> Yes. This now stops the plugin from loading any scripts.
As a preview, the current development version 2.1.1d10 is available at https://downloads.www.ads-software.com/plugin/footnotes.zip
Hope this helps.
- This reply was modified 4 years ago by pewgeuges.
- The topic ‘After WP 5.5 upgrade – JQuery is deprecated’ is closed to new replies.