Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using bp_group_has_members


  • losted
    Participant

    @losted

    Hello guys, I’m having an error with this simple sample of code :

    function test() {
    	if ( bp_group_has_members( 'group_id=2' ) ) {
    		echo "SOME MEMBERS";
    	} else {
    		echo "NO MEMBER";
    	}
    }
    add_action('bp_init', 'test');

    The error I get is :

    [28-May-2013 17:59:37 UTC] WordPress database error Table ‘buddytest.m’ doesn’t exist for query SELECT m.user_id, m.date_modified, m.is_banned, u.user_login, u.user_nicename, u.user_email, pd.value as display_name FROM m, wp_users u, pd WHERE u.ID = m.user_id AND u.ID = pd.user_id AND pd.field_id = 1 AND group_id = 2 AND is_confirmed = 1 AND is_banned = 0 AND is_admin = 0 AND is_mod = 0 ORDER BY m.date_modified DESC LIMIT 0, 20 made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, process_email_group, email_the_group, bp_group_has_members, BP_Groups_Group_Members_Template->__construct, BP_Groups_Member->get_all_for_group

    If someone can help me figure out what’s wrong that would be so great! Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using bp_group_has_members’ is closed to new replies.
Skip to toolbar