[buddypress-trac] [BuddyPress] #3921: Notice: Undefined property in bp-activity-template.php on line 1559 if xprofile is disabled

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jan 12 18:49:15 UTC 2012


#3921: Notice: Undefined property in bp-activity-template.php on line 1559 if
xprofile is disabled
--------------------------+-----------------------------
 Reporter:  lancehudson   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 A notice is thrown if xprofile is disabled and there are comments to an
 activity item.

 Notice: Undefined property: stdClass::$user_fullname in [source:/trunk/bp-
 activity/bp-activity-template.php#L1559 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
 [source:/trunk/bp-activity/bp-activity-classes.php#L174 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3921>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list