Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: this._addClass is not a function #16

Open
ledihildawan opened this issue Jan 12, 2021 · 8 comments
Open

Uncaught TypeError: this._addClass is not a function #16

ledihildawan opened this issue Jan 12, 2021 · 8 comments

Comments

@ledihildawan
Copy link

ledihildawan commented Jan 12, 2021

I just update to the new version and got that message also button add gallery not working.

jquery.min.js?ver=3.5.1:2 Uncaught TypeError: this._addClass is not a function
    at e.<computed>.<computed>._create (sortable.min.js?ver=1.12.1:9)
    at e.<computed>.<computed>._create (utils.min.js?ver=3.0.7:6)
    at e.<computed>.<computed>._createWidget (utils.min.js?ver=3.0.7:6)
    at new e.<computed>.<computed> (utils.min.js?ver=3.0.7:6)
    at HTMLDivElement.<anonymous> (utils.min.js?ver=3.0.7:6)
    at Function.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.e.fn.<computed> [as sortable] (utils.min.js?ver=3.0.7:6)
    at Object.init (postbox.min.js?ver=5.6:2)
    at Object.add_postbox_toggles (postbox.min.js?ver=5.6:2)
jquery.min.js?ver=3.5.1:2 Uncaught TypeError: this._addClass is not a function
    at e.<computed>.<computed>._create (slider.min.js?ver=1.12.1:9)
    at e.<computed>.<computed>._create (utils.min.js?ver=3.0.7:6)
    at e.<computed>.<computed>._createWidget (utils.min.js?ver=3.0.7:6)
    at new e.<computed>.<computed> (utils.min.js?ver=3.0.7:6)
    at HTMLDivElement.<anonymous> (utils.min.js?ver=3.0.7:6)
    at Function.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.e.fn.<computed> [as slider] (utils.min.js?ver=3.0.7:6)
    at e.<computed>.<computed>._initControls (iris.min.js?ver=1.0.7:5)
    at e.<computed>.<computed>.x.isFunction.r.<computed> [as _initControls] (core.min.js?ver=1.12.1:116)
Uncaught TypeError: this._addClass is not a function
    at e.<computed>.<computed>._create (sortable.min.js?ver=1.12.1:9)
    at e.<computed>.<computed>._create (utils.min.js?ver=3.0.7:6)
    at e.<computed>.<computed>._createWidget (utils.min.js?ver=3.0.7:6)
    at new e.<computed>.<computed> (utils.min.js?ver=3.0.7:6)
    at HTMLUListElement.<anonymous> (utils.min.js?ver=3.0.7:6)
    at Function.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
    at s.fn.init.e.fn.<computed> [as sortable] (utils.min.js?ver=3.0.7:6)
    at initSortable (media-views.min.js?ver=5.6:2)
    at initialize (media-views.min.js?ver=5.6:2)
@liveeadmin
Copy link

liveeadmin commented Jan 25, 2021

same error noticed here on WP 5.6 , the edit icon in Avada Builder is broken because of this error:
jquery.min.js?ver=3.5.1:2 Uncaught TypeError: this._addClass is not a function
at e..._create (slider.min.js?ver=1.12.1:9)
at e..._create (jquery-ui.min.js?ver=1.2.3:6)
at e..._createWidget (jquery-ui.min.js?ver=1.2.3:6)
at new e.. (jquery-ui.min.js?ver=1.2.3:6)
at HTMLDivElement. (jquery-ui.min.js?ver=1.2.3:6)
at Function.each (jquery.min.js?ver=3.5.1:2)
at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
at s.fn.init.e.fn. [as slider] (jquery-ui.min.js?ver=1.2.3:6)
at x..._initControls (iris.min.js?ver=1.0.7:5)
at x...x.isFunction.r. [as _initControls] (core.min.js?ver=1.12.1:116)

@ledihildawan
Copy link
Author

ledihildawan commented Jan 25, 2021

Hi @liveeadmin. Recently I fixed that problem with install Custom CSS & JS plugin. Then add manually jquery to the admin:

<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update

If you have better solution, please update in here. Thanks 👍

@andreescocard
Copy link

Hi @liveeadmin. Recently I fixed that problem with install Custom CSS & JS plugin. Then add manually jquery to the admin:

<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update

If you have better solution, please update in here. Thanks 👍

Thanks, for reference i used this plugin: https://br.wordpress.org/plugins/custom-css-js/

@dev-w3
Copy link

dev-w3 commented Aug 18, 2021

Adding the below code to functions.php fixed my issue. but I think this is not a good way.
Does anyone have a better solutions?

  function custom_admin_js() {
    echo '"<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>"';
}
add_action('admin_footer', 'custom_admin_js');

@tashrifbillah
Copy link

tashrifbillah commented May 14, 2022

Then add manually jquery to the admin:

@ledihildawan , can you explain what admin is where you added the code?

Your following remark helped me find the solution I posted below:

Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update

@tashrifbillah
Copy link

tashrifbillah commented May 14, 2022

Putting the unzipped Enable jQuery Migrate Helper plugin inside /var/www/html/wp-content/plugins and activating from /wp-admin/Plugins console solved this issue for me.

I am using WordPress 5.8.4. My issue was coming from Revolution Slider plugin v2.3.3

@danbatiste
Copy link

danbatiste commented Nov 6, 2022

@tashrifbillah I fixed the issue the same way @ledihildawan did. For me I had issues with ._addClass with Themify.

Click "Add HTML" and then on the right select "Where on page" = "Footer" and "Where in site" = "In Admin". I will attempt to upload an image below.

Also, I am using updated jQuery UI files. Here is my code if you want to use it.

<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">

image

@davidiaz1251
Copy link

Muchas gracias me funciono perfecto !!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants