Please make certain the BuddyPress group component is enabled. You can enable the component by navigating to Dashboard > Settings > Budydpress.