I’m getting this error Uncaught TypeError: this._addClass is not a function
which was not appearing before updating to 4.7.5
I’m not even using directly, but a function of Jquery UI does:
forgotPasswordDialog = jQuery(‘#forgotPasswordForm’).dialog({…})
using jquery ui 1.12.0
jquery appears to be 1.11.3
Any clue on how to solve this?
@alexfbonilla that is a different error, so you should probably start a new topic about that, however these I my core jQuery things I am loading:
- jquery.js?ver=1.12.4 (head)
- jquery-migrate.min.js?ver=1.4.1 (head)
- ui/core.min.js?ver=1.11.4 (footer)
- ui/position.min.js?ver=1.11.4 (footer)
Anyway, in your topic try to provide some more code context – more code, and files & relative paths from WP root where they are coming from…
But from the selector #forgotPasswordForm I am guessing this is not related to this plugin?
@javeweb – The error you listed only occurs when jQuery has been loaded more than once on the page. Some themes load a copy from apis.google.com for instance.
So once ui/position.js has been loaded, if another copy of jQuery is loaded, the .position function no longer exists.
To confirm .position(reposition) is chainable when using jQuery UI Position, so that is not an error in the code. Also that code hasn’t changed really since v1 and you would see everyone complaining as that code triggers the popups, meaning no popups would work.
So generally once you remove the second copy of jQuery everything goes back to normal.
If you want to post a link I would be happy to check it out.
Hope that helps.
There is a second jQuery (3) 🙂 thanks.
@javeweb – Not a problem. I have seen that at least 100 times in the last 2.5 years since PM became available. The error is almost always the same which makes it easy to spot 🙂
Please take a moment to click that it Works and to rate and review the plugin or support.