Support » Plugin: Events Manager » [Plugin: Events Manager] Version 5.1.4 breaks with BP error

  • Resolved Mike Little


    I’m seeing the following error with the latest events-manager version (5.1.4) on a BuddyPress site

    PHP Fatal error: Class ‘BP_Groups_Member ‘ not found in …/wp-content/plugins/events-manager/buddypress/bp-em-groups.php on line 85

    edit: I should note, this is only in the admin screens. Front end seems to be ok (at least the home page shows).

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve just checked and if I turn on BuddyPress groups, the error goes away. So you should be checking whether groups are enabled (or that the class exists) before trying to use the class.

    This patch will fix the problem.

    --- buddypress/bp-em-groups.php.bak 2012-03-25 12:35:06.322139064 +0100
    +++ buddypress/bp-em-groups.php 2012-03-25 12:35:06.322139064 +0100
    @@ -82,6 +82,7 @@
        if( is_user_logged_in() ){
            global $wpdb;
            //find out what private groups they belong to, and don't show private group events not in their memberships
    +        if (class_exists( 'BP_Groups_Member' ) ) {
                $group_ids = BP_Groups_Member::get_group_ids(get_current_user_id());
                if( $group_ids['total'] > 0){
                    $conditions['group_privacy'] = "(<code>event_private</code>=0 OR (<code>event_private</code>=1 AND (<code>group_id</code> IS NULL OR <code>group_id</code> = 0)) OR (<code>event_private</code>=1 AND <code>group_id</code> IN (".implode(',',$group_ids['groups']).")))";
    @@ -90,6 +91,7 @@
                    $conditions['group_privacy'] = "(<code>event_private</code>=0 OR (<code>event_private</code>=1 AND (<code>group_id</code> IS NULL OR <code>group_id</code> = 0)))";
    +       }
        return $conditions;

    thx for sharing.

    I’m surprised to see you have issued another version ( without fixing this 500 error.

    What gives?

    the issue on Class 'BP_Groups_Member ' not found should be resolved now. Please noticed the fixed at bp-em-core.php

    if( bp_is_active('groups') ){
    			$includes[] = 'buddypress/screens/group-events.php';
    			$includes[] = 'buddypress/bp-em-groups.php';

    also, can you try the dev version instead?

    Yes. That version fixes the problem. Thanks.

    When will that be officially released?

    Plugin Author Marcus


    NetWebLogic Support

    should already be in the latest update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Manager] Version 5.1.4 breaks with BP error’ is closed to new replies.