Opened 15 years ago
Closed 14 years ago
#2117 closed defect (bug) (fixed)
[patch] bp-groups-templatetags non object
Reported by: | edelwater | Owned by: | DJPaul |
---|---|---|---|
Milestone: | 1.5 | Priority: | minor |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch, needs-testing |
Cc: | deleau@… |
Description
error:
Trying to get property of non-object in /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups- templatetags.php on line 121
this is :
wp_cache_set( 'groups_group_nouserdata_' . $group->group_id, $this->group, 'bp' );
i think it needs an extra check
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Untested, but from looking at the code, I think I found the issue.
@edelwater
Can you test the patch to see if it fixes the issue?
Also, maybe I'm missing something, but is
global $group;
needed in BP_Groups_Template::the_group()?