Opened 15 years ago
Closed 14 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 | Owned by: | DJPaul |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Activity | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [5639]) Fix PHP Notice when viewing activity comments with xprofile disabled. Fixes #3921, props lancehudson for initial patch.