Support » Plugin: Content Aware Sidebars - Unlimited Widget Areas » select2.min.js causing Visual Composer Conflict

  • Resolved defunct

    (@defunctlife)


    Hello,

    Since version 3.3.2 and including 3.4 the select2.min.js is causing certain Visual Composer (version 4.12.1) pages to not load when you’re editing them.

    JS errors as follows:

    select2.min.js?ver=3.5.4:21 Uncaught TypeError: Cannot read property ‘text’ of null(…)
    H @ select2.min.js?ver=3.5.4:21prepareOpts @ select2.min.js?ver=3.5.4:21
    prepareOpts @ select2.min.js?ver=3.5.4:22
    init @ select2.min.js?ver=3.5.4:21
    (anonymous function) @ select2.min.js?ver=3.5.4:23
    each @ jquery.js?ver=1.12.4:2
    each @ jquery.js?ver=1.12.4:2
    a.fn.select2 @ select2.min.js?ver=3.5.4:23
    (anonymous function) @ suggest-sidebars.js?ver=3.3.2:52
    each @ jquery.js?ver=1.12.4:2
    each @ jquery.js?ver=1.12.4:2
    suggestSidebars @ suggest-sidebars.js?ver=3.3.2:50
    init @ suggest-sidebars.js?ver=3.3.2:13
    (anonymous function) @ suggest-sidebars.js?ver=3.3.2:92
    i @ jquery.js?ver=1.12.4:2
    fireWith @ jquery.js?ver=1.12.4:2
    ready @ jquery.js?ver=1.12.4:2
    K @ jquery.js?ver=1.12.4:2

Viewing 6 replies - 1 through 6 (of 6 total)
  • defunct

    (@defunctlife)

    Actually the only version that still works for me is 3.3.

    defunct

    (@defunctlife)

    Ended up removing the Quick Select meta box when editing pages to temporarily fix the issue for those interested until what I assume is most likely Visual Composer issue, but hard to say without digging in more. Hopefully the plugin author chimes in 🙂

    
    function jf_select2_vc_cas_fix() {
    	remove_meta_box( 'cas-content-sidebars', 'page', 'side' );
    }
    add_action( 'do_meta_boxes', 'jf_select2_vc_cas_fix' );
    
    • This reply was modified 1 year, 1 month ago by  defunct. Reason: fixed code
    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this.

    The problem might be that Visual Composer is using the same library (select2), but depends on a newer version. On the post edit screens, Content Aware Sidebars is purposely depending on an older version in order to be compatible with WooCommerce and Yoast SEO.

    Great that you got a temporary fix for now, I will look into if there is a way to solve it.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    I just tested this with the latest version of Visual Composer, and I am not able to reproduce the problem. Can you confirm that it has been fixed?

    Matt Cox

    (@mattamatic)

    I can confirm that this issue is still occurring. Visual Composer 5.0.1 and Content Aware Sidebars 3.4.3.

    Matt Cox

    (@mattamatic)

    Disregard, that was being caused by an unrelated issue, appears to be working in latest versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘select2.min.js causing Visual Composer Conflict’ is closed to new replies.