Skip to:

Opened 14 years ago

Closed 14 years ago

#2117 closed defect (bug) (fixed)

[patch] bp-groups-templatetags non object

Reported by: edelwater's profile edelwater Owned by: djpaul's profile DJPaul
Milestone: 1.5 Priority: minor
Severity: Version:
Component: Core Keywords: has-patch, needs-testing
Cc: deleau@…



Trying to get property of non-object in /var/www/vhosts/
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)

2117.001.diff (601 bytes) - added by cnorris23 14 years ago.

Download all attachments as: .zip

Change History (5)

#1 @cnorris23
14 years ago

  • Component set to Core
  • Keywords has-patch needs-testing added

Untested, but from looking at the code, I think I found the issue.

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()?

14 years ago

#2 @paulhastings0
14 years ago

  • Summary changed from bp-groups-templatetags non object to [patch] bp-groups-templatetags non object

#3 @DJPaul
14 years ago

  • Owner set to DJPaul
  • Status changed from new to assigned

Totally broken. On it.

#4 @djpaul
14 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [3328]) Remove obsolete group caching code from 1.1.3ish era. Fixes #2117

Note: See TracTickets for help on using tickets.