Hello, I use wordpress version 4.9.24 and theme divi 2.6-2.7. I tried to automatically upgrade to wordpress 6.3.2, but then I couldn’t edit anything from the wordpress admin panel, everything was locked, (the website didn’t crash, I just couldn’t edit posts, images, etc.) if I upload your plugin will fix my issue ??? ( I mean after updating in wordpress 6.3.2 version ) thanks .
]]>On my checkout page the credit card fields unclickable and inaccessible when jQuery Migrate helper plugin is activated. i have wordpress, woocommerce, php 8.2. when i disable this plugin it works. are there any changes that can be made to the plugin or somewhere else because i some links on my shop page do not work unless the plugin is activated. right now the plugin is deactivated so you will not see issue on checkout, as i do not want to lose customers while i wait for your reply
]]>I creating new site for site using this plugin and will not use it, how do I stop the emails from the site? deleting the old will to the job or I need to deactivate the plugin first?
]]>Errors in fatal_error_handler was posted 2 years and 5 months ago by Marcus Downing (@marcusdowning)
I think the fatal_error_handler code is incorrect.
This registers a global error handler, with window.onerror = function...
. The handler attempts to match the wording of the error, looking for deprecated jQuery functions.
It uses msg.match()
, which returns either null or an array, but the code to check for results says:if ( typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
return true;
}
This doesn’t work when the result is null because typeof null === "object"
in JavaScript.
and also a solution from Benjamin Danon (@bndn)
This error is reported on Github too.
We have to add a condition to the line 289 of wp-content/plugins/enable-jquery-migrate-helper/class-jquery-migrate-helper.php to fix it:
if ( erroredFunction === null || typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
It seems to work, but does not appear to have been implemented , or answered.
I am still getting the error in the Firefox Console:Uncaught TypeError: erroredFunction is null
Am I missing something?
I’d been having problems debugging *my* JavaScript- embedded in a WP page. It was crashing with no sign of the cause- a typo which *should* have resulted in an “Uncaught ReferenceError” on the developer console but didn’t.
At first I thought this was a Firefox config issue, but behaviour in Chrome was identical, and a non-WP test page displayed the error correctly in both.
I eventually remembered that jQuery Migrate Helper (which was enabled) intercepted exceptions and wondered if that was the cause. Lo and behold, when it was disabled, the “Uncaught ReferenceError” (in *my* code) appeared as expected. When it was re-enabled, my error was hidden.
Is this known and expected behaviour for the “Enable JQuery Migrate Helper” plugin?
Thanks.
]]>I activated this plugin and now the admin is completely messed up: https://prnt.sc/c6-KdXQQSTVy
How can I fix this?
]]>– WordPress: 6.2.1-alpha-55611
– PHP: 8.2.0 -Enable jQuery Migrate Helper 1.3.0
jQuery Migrate Helper — Warnings encountered
This page generated the following warnings:
Please make sure you are using the latest version of all of your plugins, and your theme. If that is the case, then you may want to ask the developers of the code mentioned in your warnings to update it.
There is no information on following warnings, is this a known issue or a bug? On the same plugin I am testning it gives the warning “HTML tags must be properly nested and closed:?” so that’s helpful but why empty warnings?
]]>this
<li id="wp-admin-bar-enable-jquery-migrate-helper" class="menupop"><a class="ab-item" aria-haspopup="true" href="#">jQuery Migrate
completely useless menu. Installed the plugin once and forgot. Why else is this garbage in the admin-bar?
please do:
1) checkbox to hide and
2) hide by default
———————–
RU:
Как мне убрать из admin-bar пункт “jQuery Migrate”?
этот
<li id="wp-admin-bar-enable-jquery-migrate-helper" class="menupop"><a class="ab-item" aria-haspopup="true" href="#">jQuery Migrate
cовершенно ненужное меню. 1 раз установил плагин и забыл. Зачем ещё этот мусор в admin-bar?
пожалуста сделайте
1) галку чтобы скрывать и
2) скройте по умолчанию
]]>I have an old legacy script (before the advent of Promise apparently) in a theme that makes use of a custom event page.ready
. And several theme scripts listening to the event like so:
$(document).on('page.ready', function()... )
Could it be that jQuery Migrate is falsely recognizing this as \'ready\' event is deprecated
?
There is no stack trace in jQuery Migrate so I can’t be sure this is the cause. It’s an old script and it works – and refactoring its spaghetti logic should be assiduously avoided.
I could just change the event name to something else like page.r_e_a_d_y
or something less ridiculous, but it’s still a false positive. ie. script might already be compatible with jQuery 3.x as is.
Hi,
This plugin has been very useful since the JQuery upgrade in WordPress. I have been able to fix most issue of deprecated code in themes and plugins that are no longer supported, or from authors do not understand the importance and think that jQuery Migrate Helper provides a fix. Although fixing these will mean that the fixes are are lost, if I forget and there is an update that still hasn’t fixed the issue.
I keep my WordPress up-to-date, but often get deprecated warnings from WordPress Core, e.g.
<code>2022-12-27 10:45:23 jQuery.fn.mousedown() event shorthand is deprecated WordPress core /wp-admin/js/farbtastic.</code>
For a long time I have been curious why this should be since all involved in developing the core must be aware of the need to avoid deprecated code. Am I missing something?
]]>Is Enable jQuery Migrate Helper compatible with PHP 8.1?
]]>Hi!
I had an issue with my CC processing plugin, Stripe. The input field would not show up. We installed this plugin and the issue was fixed. But then suddenly the CPU usage jumped like significantly because of AJAX requests. Sample of requests below.
Is it possible that this plugin caused the spike?
It might be that the CPU issue was happening before I installed the plugin. Our hosting service (siteground) said the CPU issue started the same day…so I am not sure if there was something else going on, or if this plugin caused the issue.
I am testing now to see if disabling fixes the issue. When I disable the plugin, the Stripe problem is gone, so maybe I do not need the plugin anymore…
Any help is appreciated!
SAMPLE REQUEST
[email protected]:/var/log/www$ cat hyvibeguitar.com|grep admin-ajax|tail -5
64.46.27.166 www.hyvibeguitar.com - [10/Aug/2022:05:54:06 +0000] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 16 "https://www.hyvibeguitar.com/es/?fbclid=IwAR3XVlIISj0Vh715MUadonTut8MRV8iOZeiPOyH4ZUlGryjTA38whki08rc" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19G71 [FBAN/FBIOS;FBDV/iPhone12,5;FBMD/iPhone;FBSN/iOS;FBSV/15.6;FBSS/3;FBID/phone;FBLC/es_LA;FBOP/5]" | TLSv1.3 | 0.786 0.786 0.909 - 0 NC:000000 UP:SKIP_CACHE_SET_COOKIEDT
64.46.27.166 www.hyvibeguitar.com - [10/Aug/2022:05:54:06 +0000] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 16 "https://www.hyvibeguitar.com/es/?fbclid=IwAR3XVlIISj0Vh715MUadonTut8MRV8iOZeiPOyH4ZUlGryjTA38whki08rc" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19G71 [FBAN/FBIOS;FBDV/iPhone12,5;FBMD/iPhone;FBSN/iOS;FBSV/15.6;FBSS/3;FBID/phone;FBLC/es_LA;FBOP/5]" | TLSv1.3 | 0.809 0.809 0.933 - 0 NC:000000 UP:SKIP_CACHE_SET_COOKIEDT
64.46.27.166 www.hyvibeguitar.com - [10/Aug/2022:05:54:06 +0000] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 16 "https://www.hyvibeguitar.com/es/?fbclid=IwAR3XVlIISj0Vh715MUadonTut8MRV8iOZeiPOyH4ZUlGryjTA38whki08rc" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19G71 [FBAN/FBIOS;FBDV/iPhone12,5;FBMD/iPhone;FBSN/iOS;FBSV/15.6;FBSS/3;FBID/phone;FBLC/es_LA;FBOP/5]" | TLSv1.3 | 0.809 0.809 0.933 - 0 NC:000000 UP:SKIP_CACHE_SET_COOKIEDT
64.46.27.166 www.hyvibeguitar.com - [10/Aug/2022:05:54:06 +0000] "POST /wp-admin/admin-ajax.php HTTP/2.0" 200 16 "https://www.hyvibeguitar.com/es/?fbclid=IwAR3XVlIISj0Vh715MUadonTut8MRV8iOZeiPOyH4ZUlGryjTA38whki08rc" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/19G71 [FBAN/FBIOS;FBDV/iPhone12,5;FBMD/iPhone;FBSN/iOS;FBSV/15.6;FBSS/3;FBID/phone;FBLC/es_LA;FBOP/5]" | TLSv1.3 | 0.831 0.831 0.954 - 0 NC:000000 UP:SKIP_CACHE_SET_COOKIEDT
]]>
Hi,
I have activated plugin as admin user and then when i tried to login as user editor/author, i couldnt able to see the changes on front-end.
Is there anything that i need to update/add in order it to be worked for lower role users?
Regards,
Aruna.
Hi,
I have recently upgraded WP to 5.9.3 for applications, and theme stopped working due to jQuery we get with WP Core. later when I used this plugin and chosen option default from WordPress. Can we have this plugin permanently with application? or do we need to update theme ?
Hello,
It was running good in the past year. Today I get this error log:
May 21, 21:36:47
The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 3.1.
I have WP version: 5.9.3
Enable jQuery Migrate Helper version 1.3.0
Can I Deactivate this plugin by now?
Please advise what’s wrong, and how to fix this error?
Thanks in advance!
]]>Hello.
First of all, thank you so much for developing a useful plugin.
The plugin works fine, but I have a compatibility question with the cache plugin.
I’m using the function to load javascript asynchronously in the Wp-rocket plugin.
And in the description of your plugin, I saw an explanation not to use the asynchronous loading function.
So I’m trying to use the Excluded JavaScript Files part of the rocket plugin.
Which javascript file in the plugin can I put as an exception?
Can I just type jquery like below?
/jquery-*[0-9.]*(.min|.slim|.slim.min)*([^\.]*).js
/jquery-?[0-9.]*(.min|.slim|.slim.min)?.js
Or do I have to add the full path to the plugin as an exception like this:
/plugins/enable-jquery-migrate-helper/js/(.*).js
Thank you.
]]>Hello,
I’m using the “Enable jQuery Migrate Helper” plugin for fixing the jquery issue on our client’s website. Recently we started facing an issue with the admin side. We see that the admin pages take more than one minute to load. And we see it works fine when we disable the “Enable jQuery Migrate Helper” plugin. Not sure what is the cause of this issue. Any insight on this issue will be helpful.
Thanks
]]>Hi several features on this site stopped working recently and we see the error “jquery is not defined” error listed several times in the console. I saw in another site that this plugin could help with that issue- and it does, but only if we are logged in- Logged out users don’t see the benefit of the “fix”.
Could anyone jumpin and help us solve this issue- were arent too skilled in the Jquery world
Thanks very much
]]>error in javascript file :
/enable-jquery-migrate-helper/js/deprecation-notice.js:131
=================================================================
/**
* Try to log the deprecation for the admin area.
*
* @param message
*/
function reportDeprecation( message ) {
// Do not write to the logfile if this is the backend and the notices are written to the screen.
if ( JQMH.backend && notice.length ) {
return;
}
if ( ! JQMH.capture_deprecations ) {
return;
}
let data = {
action: 'jquery-migrate-log-notice',
notice: message,
nonce: JQMH.report_nonce,
backend: JQMH.backend,
url: window.location.href,
};
$.post( {
url: JQMH.ajaxurl,
data
} );
}
^ data key is missing any value and : colons
]]>Hi, the plugin detects the following deprecated jQuery when using latest WordPress (5.9 Beta 1) which is supposed to not contain any deprecated jQuery:
jQuery.isFunction() is deprecated in /wp-admin/js/common.min.js triggered on https://test.test/wp-admin/index.php
The notice seems to appear on most admin pages.
In browser console I can see that common.js contents hoverintent function, so the notice is triggered by hoverintent containig:
i.isFunction(s.out) || (s.out = s.over)) : s = i.isFunction(t) ? i.extend(s, {
So, to me it seems like a false positive but would be nice if someone of plugin devs (e.g. @clorith) has a look at it.
]]>Dear jQuery Team,
I am receiving emails (as it stands 20 Emails today… and counting)
How do I cancel these Emails??
Thank you and Kind Regards
Dieter
“Greetings!
This is a weekly summary of the warnings still present on your site, relating to the jQuery library. These errors should be addressed as soon as possible.
Your site is running a legacy version of jQuery, modern functionality is currently not available to your plugins, themes, or WordPress itself.
There have been no reported deprecations logged in the past week, maybe you no longer need this plugin?
This email was automatically generated by the Enable jQuery Migrate Helper plugin on your website Produktfotograf.at`”
]]>Is it possible to disable the “Enable jQuery Migrate Helper” plugin on the admin dashboard but not on the website front end?
]]>Hello,
I have a site with Tablepress and jQuery helper. And when I edit a table in tablepress I get the following error:
Saving failed: AJAX call successful, internal saving process failed. Try again while holding down the “Shift” key.
When I deactivate the jQuery helper, tablepress is working fine again.
Can you help me solve this problem?
]]>Hello,
I found jQuery.fn.hover() is deprecated
coming from a plugin in the jQuery migrate log file. I fixed the issue by changing to .on('mouseenter mouseleave' function()
However, on notifying the plugin author, I was told that it was not listed in the jQuery API as deprecated and, after checking, found that it is not, althoug perhaps tthe use of hover
as a shortcut is deprecated when used with .on
Hi, We have updated our site recently and have found an issue in a legacy custom theme that was reliant on some earlier JQuery.
We have used this plugin and this actually solved the issue of the header and slider on the front page breaking but only if you are logged into the site. When logged out we still see some issues breaking the JS on the front end.
We have been through removing plugins and removing the cache to check but nothing has seemed to have worked.
We know we need to replace the theme but I could do with anything as a quick workaround while we do this.
Do you have any suggestion to force the usage on the front of the site or is there anything I can try?
Many thanks in advance for any help or advice.
]]>Hello,
The error appear when I click the top Publish button on the customize theme area.
Can you help?
]]>I just started managing a WordPress site created in Genesis. The host uses version control on GitHub. On the local site, JQuery Migrate Helper was deactivated. It is activated on the Master. I just pushed some updated plugins (no conflict in staging) and I got an error message on the Master. The backend is now locked. I don’t fully understand the error message. Any help or ideas are appreciated.
Fatal error: Uncaught Error: Call to undefined function is_wp_version_compatible()
in /home/apfunders/webapps/funders_production/wp-content/plugins/enable-jquery-migrate-
helper/templates/admin-notices/no-longer-needed.php on line 26
Call stack:
include_once()
wp-content/plugins/enable-jquery-migrate-helper/class-jquery-migrate-helper.php:542
jQuery_Migrate_Helper::plugin_obsolete_message()
wp-content/plugins/enable-jquery-migrate-helper/class-jquery-migrate-helper.php:552
jQuery_Migrate_Helper::admin_notices()
wp-includes/class-wp-hook.php:286
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:310
WP_Hook::do_action()
wp-includes/plugin.php:453
do_action()
wp-admin/admin-header.php:255
require_once()
wp-admin/admin.php:216
require_once()
wp-admin/tools.php:10
]]>
When you run a business with 100s of websites, it’s not exactly ideal to get weekly emails with the same issues. Yes, we are aware of the issues and will work (over time) to fix them. But getting an email every week, for 100s of sites is absurd.
Please make an option to disable email notifications from your plugin. Not only are they unnecessary, but they also eat up usage of Mailgun, etc.
]]>I’d like to suggest a feature. We’re using a theme that has an older editor in the admin that requires the legacy jQuery but the public site doesn’t.
It would be great to be able to say “admin only”. That way the public site is fully optimized and there’s less pressure to migrate the admin side.
]]>Hello,
Frontend is very slow if logged in as super-administrator (if as a author or guest – everything is fine)
Did anyone have the same issue?
]]>