ideally I’d like you to do the following
wp-content/plugins/bbp-private-groups/includes/functions.php
edit this to add a line
so existing line 580-582 is
$groups = get_post_meta( $forum_id, '_private_group', false );
//so now we know which forum it is in - now we need to know if user has access to any groups of this forum - so we get the groups this user has
$check=get_user_meta( $user_id, 'private_group',true);
and could you add a line to make this
$groups = get_post_meta( $forum_id, '_private_group', false );
$valuecheck = array();
//so now we know which forum it is in - now we need to know if user has access to any groups of this forum - so we get the groups this user has
$check=get_user_meta( $user_id, 'private_group',true);
If you don’t know how to do this, please come back – I do not wish for you to try something you are not comfortable with !
Otherwise then let me know if this clears the error