Home › Forums › Calendar Products › Events Calendar PRO › Javascript Error causes customizer issue after theme update and wordpress update
- This topic has 15 replies, 4 voices, and was last updated 9 years, 8 months ago by
Philip.
-
AuthorPosts
-
July 8, 2016 at 11:46 am #1137468
Philip
ParticipantThe 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/”
July 11, 2016 at 6:52 am #1138069Philip
ParticipantHas this been responded to yet? I haven’t seen an update on what would be causing this issue.
July 11, 2016 at 8:53 am #1138148Nico
MemberHowdy 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,
NicoJuly 12, 2016 at 12:02 pm #1138828Philip
ParticipantI 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
July 13, 2016 at 7:33 pm #1139462Nico
MemberThis reply is private.
July 18, 2016 at 6:11 am #1140996Philip
ParticipantThis reply is private.
July 18, 2016 at 6:49 am #1141006Philip
ParticipantThis reply is private.
July 18, 2016 at 3:37 pm #1141239Nico
MemberThis reply is private.
July 25, 2016 at 12:03 pm #1143775Nico
MemberThis reply is private.
July 25, 2016 at 4:06 pm #1143875Philip
ParticipantLet 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…
July 25, 2016 at 5:33 pm #1143906Philip
ParticipantThis reply is private.
July 25, 2016 at 5:41 pm #1143909Philip
ParticipantThis reply is private.
July 27, 2016 at 3:20 pm #1144877Nico
MemberThis reply is private.
July 28, 2016 at 1:27 pm #1145312Nico
MemberPhilip,
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,
NicoAugust 19, 2016 at 9:35 am #1153692Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Javascript Error causes customizer issue after theme update and wordpress update’ is closed to new replies.
