Opened 17 years ago
Closed 16 years ago
#2117 closed defect (bug) (fixed)
[patch] bp-groups-templatetags non object
| Reported by: | edelwater | Owned by: | DJPaul |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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()?