Skip to:

Opened 12 years ago

Closed 12 years ago

#3921 closed defect (bug) (fixed)

Notice: Undefined property in bp-activity-template.php on line 1559 if xprofile is disabled

Reported by: lancehudson's profile lancehudson Owned by: djpaul's profile DJPaul
Milestone: 1.6 Priority: normal
Severity: normal Version:
Component: Activity Keywords:


A notice is thrown if xprofile is disabled and there are comments to an activity item.

Notice: Undefined property: stdClass::$user_fullname in public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 1559

This is caused because $user_fullname is populated by the code at bp-activity-classes.php#L174 but only if xprofile is enabled.

Attached is a patch to fix it, an alternative could be to remove the filter since it was depreciated.

Attachments (1)

bp-activity-template.php-bp_acomment_name-depreciated (806 bytes) - added by lancehudson 12 years ago.

Download all attachments as: .zip

Change History (4)

#1 @DJPaul
12 years ago

  • Component changed from Core to Activity
  • Milestone changed from Awaiting Review to 1.6

#2 @DJPaul
12 years ago

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

#3 @djpaul
12 years ago

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

(In [5639]) Fix PHP Notice when viewing activity comments with xprofile disabled. Fixes #3921, props lancehudson for initial patch.

Note: See TracTickets for help on using tickets.