Skip to:

Opened 7 months ago

Closed 3 hours ago

#8436 closed defect (bug) (worksforme)

Error from bp-groups-template.php on line 602

Reported by: alexhal Owned by:
Milestone: Priority: normal
Severity: normal Version: 7.1.0
Component: Groups Keywords:


Hi we are getting
Warning: Creating default object from empty value in /home/demoswplms/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 602

error on group page , we are using shortcodes on group page to show groups information like group avatar, group title etc .

We are not overwriting global $bp var or global $groups_template var but still the issue is appearing

Change History (2)

#1 @imath
7 months ago

  • Component changed from Core to Groups
  • Keywords reporter-feedback added
  • Priority changed from high to normal


I don’t see anything unusual in the source code. If you are using the bp_get_group_id() function outside of a group loop without passing a group object, then you can get an error, are you sure the shortcode is properly using this function ?

#2 @imath
3 hours ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Latest improvements introduced about Group template functions should have fixed this issue. See #6749

Note: See TracTickets for help on using tickets.