Reply To: BP 2.4.0 – Group frontpage hierarchy question
You might have to do a fresh install because BuddyPress 2.4.0 uses new code for the /groups/single/home.php template:
https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-templates/bp-legacy/buddypress/groups/single/home.php#L75
The code you listed above is older code.
If you already have those changes, then I’m guessing you are using a custom theme with BuddyPress support that has overriden the groups/single/home.php template. If that is the case, you’ll have to change the group home template to use these new lines.