BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Media › Buddyboss Media and Event Manager [events_calendar]
- This topic has 7 replies, 2 contibutors, and was last updated 9 years, 10 months ago by Alyssa.
Question
December 25, 2014 at 2:31 am #34190@adminzenoedHi,
The latest BB Media .js is returning the error: TypeError: e is undefined in [events_calendar] page and rendering the page to be loading endlessly (calendar is not loaded). When disabling BB Media plugin, the page loads okay. Pls help look at the js conflict with Event Manager plugin. ThanksAnswers
December 26, 2014 at 9:09 am #34202@alyssa-buddyboss
AlyssaParticipant@kjowers are you having similar issues with the Events Manager plugin?
December 26, 2014 at 9:24 am #34203@alyssa-buddyboss
AlyssaParticipant@adminzenoed I can’t seem to replicate your issue. Can you please post the plugin link as well as detailed directions how to reproduce your error…what page you are on etc?
December 26, 2014 at 10:58 am #34204@adminzenoedHi,
Plugins used is: https://wordpress.org/plugins/events-manager/I created a page with shortcode [events_fullcalendar]
Plugins active: Event Manager + BB Wall + BB Media1.1.1 + BP2.1 + WP4.1 + BB4.0.9 of course.When viewing the page, I keep getting the attached screen (endless at loading screen).
Simple tests done
a) If I disabled BB Media plugin, the calendar page is displaying okay.
b) Re-enabling BB Media plugin, then the same problem re-appears.JS Error seems to point to: function bbmedia_getQueryVariable(e,t) in buddyboss-media.min.js
What do you think?
December 26, 2014 at 11:04 am #34206@adminzenoedTJ, I missed one point — actually I have this plugin for that full page calendar stuff instead of the standard Event Manager: https://wordpress.org/plugins/wp-fullcalendar/ that integrates with Event Manager. The shortcode used is [events_fullcalendar] — I guess the conflict is with this plugin instead of Event Manager.
Also, in the BB Media Setting, if i untick “Enabled Media Component”, the calendar page appears okay.
How can I disable Media Component when I am viewing a Page (or a specific page) i.e. do not load buddyboss-media.min.js ?
December 26, 2014 at 3:34 pm #34212@alyssa-buddyboss
AlyssaParticipant@adminzenoed here is some code to help disable the media script:
if( is_page( '' ) ) add_action('wp_enqueue_scripts', 'dequeue_function'); function dequeue_function() { wp_dequeue_script( 'buddyboss-media-main' ); }
NOTE: you need to insert the page id of the page you use the shortcode for the calendar. I believe the issues stems from the plugin not using noconflict mode and since the plugin is no longer updated not sure that will ever happen.
December 27, 2014 at 2:08 am #34213@adminzenoedThanks @tjchester This is solved.
I added this to child header.php after do_action( ‘buddyboss_after_header’ );
<?php if( is_page('events-calendar') ) wp_dequeue_script( 'buddyboss-media-main' ); ?>
December 27, 2014 at 9:11 am #34214@alyssa-buddyboss
AlyssaParticipantGreat!
- The question ‘Buddyboss Media and Event Manager [events_calendar]’ is closed to new replies.