Error thrown

Call to undefined function bp_has_groups()