majeedraza1 / carousel-slider

A WordPress plugin to Create SEO friendly Image, Logo, Video, Post, WooCommerce Product and HTML Content Carousel.
https://wordpress.org/plugins/carousel-slider/
Other
12 stars 3 forks source link

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

Open ledihildawan opened 3 years ago

ledihildawan commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

@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 commented 2 weeks ago

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