Hi @learningtimes,
thanks for your response.
These are errors in the console:
add:2432 Uncaught SyntaxError: Unexpected token ‘<‘
add:2558 Uncaught SyntaxError: Unexpected token ‘<‘
The source code of the events community plugins edit page looks like this:
<p><script>
( function( $ ) {
$('#event_tribe_venue').on( 'blur', '.linked-post-name', function () {
var input = $(this);
var group = input.parents('tbody');</p>
<p> // Not actually populated with anything? Don't bother validating
if ( ! input.val().length ) {
return;
}</p>
<p> $.post( TEC.ajaxurl, {
action: 'tribe_event_validation',
nonce: '1d79a4f898',
type: 'tribe_venue',
name: input.val()
},
function ( result ) {
if ( 1 == result ) {
group.find('.tribe-tribe_venue-error').remove();
} else {
group.find('.tribe-tribe_venue-error').remove();
input.after('</p>
<div class="tribe-tribe_venue-error error form-invalid">Veranstaltungsort Name existiert bereits</div>
<p>');
}
}
);
})
} )( jQuery );
</script><br />
As you can see there are <p> tags inserted all over the place.
When deactivating badgeos everything works fine again.
I suppose you shouldn’t always use wpautop on the content, even if it is not the badgeos main loop, but eventually this could also be a problem of the events community plugin.
Anyway I have dug a little bit deeper into this, cause my first solution needed to alter the code of the badgeos plugin which always is bad and it also removed paragraphs on single event pages.
So I finally went with this snippet in my childs theme functions.php:
/**
* avoid conflict between badgeos and events calendar community plugin
*/
if (
is_plugin_active( 'badgeos/badgeos.php' ) &&
is_plugin_active( 'the-events-calendar-community-events/tribe-community-events.php' )
) :
if ( ! function_exists( 'tribe_events_community_wpautop_fix' ) ) :
function tribe_events_community_wpautop_fix( $content ) {
// remove the filter set by badgeos when on event community pages
if ( tribe_is_community_edit_event_page() || tribe_is_community_my_events_page() ) :
remove_filter( 'the_content', 'badgeos_reformat_entries', 9 );
endif;
return $content;
}
endif;
add_filter( 'the_content', 'tribe_events_community_wpautop_fix', 10 );
endif;
This simply adds another filter for the_content which removes the one that badgeos has set but only for the pages of the events community plugin.