Javascript Error causes customizer issue after theme update and wordpress update

Home Forums Calendar Products Events Calendar PRO Javascript Error causes customizer issue after theme update and wordpress update

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1137468
    Philip
    Participant

    The error according to my theme support causes the Customizer not to be able to render the rest of the contents.

    The Event Calendar — is loading an outdated copy of a javascript library in the Theme Customizer (likely when it is not needed) and causing a Javascript error.

    I would recommend contacting this plugin author to alert them of the issue so they can update the plugin to provide better compatibility. For the time being you will need to deactivate the plugin in order to use the Customizer.

    They suggested,

    “Ask them to ensure they are only loading their plugin scripts on pages that absolutely need them (I’m not sure if the customizer does or not) and to update their select2 Javascript library to the latest version: https://select2.github.io/”

    #1138069
    Philip
    Participant

    Has this been responded to yet? I haven’t seen an update on what would be causing this issue.

    #1138148
    Nico
    Member

    Howdy Philip,

    Welcome to our support forums and thanks for reaching out to us. Sorry to hear about this issue but hopefully we will find a work around it!

    I couldn’t reproduce the issue in my local install, Does this happen when using a WordPress default theme like TweentySixteen?

    While we look into this, adding this line to you theme (or child theme) functions.php file should prevent our plugin customize to activate:

    add_filter( 'tribe_events_pro_customizer_is_active', '__return_false' );

    Please let me know about it,
    Best,
    Nico

    #1138828
    Philip
    Participant

    I tried to add that line to my child theme function.php file and it did not fix the issue. I am going to paste some info below and also attach a screenshot of the error.

    Here is the error I am getting related to the events calendar – plugins/the-events-calendar/vendor/select2/select2.min.js?ver=3.2

    select2.min.js?ver=3.2:30 Uncaught Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element.(anonymous function) @ select2.min.js?ver=3.2:30each @ jquery.js?ver=1.12.4:2prepareOpts @ select2.min.js?ver=3.2:30prepareOpts @ select2.min.js?ver=3.2:63init @ select2.min.js?ver=3.2:24(anonymous function) @ select2.min.js?ver=3.2:79each @ jquery.js?ver=1.12.4:2each @ jquery.js?ver=1.12.4:2e.fn.select2 @ select2.min.js?ver=3.2:79addSearch @ term-search.js?ver=4.5.3:225ready @ term-search.js?ver=4.5.3:208ready @ term-search.js?ver=4.5.3:336(anonymous function) @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:9i @ jquery.js?ver=1.12.4:2add @ jquery.js?ver=1.12.4:2initialize @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:9e.Class @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:7f @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:7f @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:7f @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:7(anonymous function) @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:10each @ jquery.js?ver=1.12.4:2(anonymous function) @ load-scripts.php?c=0&load[]=underscore,customize-base,wp-a11y,customize-controls,jquery-ui-mouse,jq…:10i @ jquery.js?ver=1.12.4:2fireWith @ jquery.js?ver=1.12.4:2ready @ jquery.js?ver=1.12.4:2K @ jquery.js?ver=1.12.4:2

    #1139462
    Nico
    Member

    This reply is private.

    #1140996
    Philip
    Participant

    This reply is private.

    #1141006
    Philip
    Participant

    This reply is private.

    #1141239
    Nico
    Member

    This reply is private.

    #1143775
    Nico
    Member

    This reply is private.

    #1143875
    Philip
    Participant

    Let me send this over to Astoundify support and see what they are thinking. I have several plugins but I don’t see any of those conflicting but this is outside of my expertise…

    #1143906
    Philip
    Participant

    This reply is private.

    #1143909
    Philip
    Participant

    This reply is private.

    #1144877
    Nico
    Member

    This reply is private.

    #1145312
    Nico
    Member

    Philip,

    I could narrow this down to a conflict between WP Job Manager, Events Calendar PRO and the Listify theme. Placing the following code in the child theme functions.php file should make it right:

    /* Tribe - dequeue select2 in customizer */
    function tribe_customize_dequeue_select2 ( ) {

    global $wp_customize;

    if ( isset( $wp_customize ) ) {
    wp_dequeue_script( 'tribe-events-select2' );
    }

    }
    add_action( 'wp_print_scripts', 'tribe_customize_dequeue_select2', 100 );

    Please give this a try and let me know if it works as expected,
    Thanks,
    Nico

    #1153692
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Javascript Error causes customizer issue after theme update and wordpress update’ is closed to new replies.