Skip to:
Content

BuddyPress.org

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)

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

Download all attachments as: .zip

Change History (5)

#1 @cnorris23
16 years ago

  • ComponentCore
  • Keywords has-patch needs-testing added

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

@cnorris23
16 years ago

#2 @paulhastings0
16 years ago

  • Summary bp-groups-templatetags non object[patch] bp-groups-templatetags non object

#3 @DJPaul
16 years ago

  • Owner set to DJPaul
  • Status newassigned

Totally broken. On it.

#4 @djpaul
16 years ago

  • Resolutionfixed
  • Status assignedclosed

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

Note: See TracTickets for help on using tickets.