#8436 closed defect (bug) (worksforme)
Error from bp-groups-template.php on line 602
| Reported by: | alexhal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Groups | Version: | 7.1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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 (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi,
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 ?