Opened 3 years ago
Closed 3 years ago
#9014 closed defect (bug) (fixed)
Warning: Undefined property: stdClass::$type
| Reported by: | vapvarun | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0.0 |
| Component: | Templates | Version: | 10.0.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
After leaving a comment on the activity page, a warning appears on the same page.
[31-Oct-2023 06:25:07 UTC] PHP Warning Undefined property: stdClass::$type in /home/tavafowuca6221/web/thoughtless-tarsier-lfggl.instawp.xyz/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 902
Screencast: https://www.loom.com/share/565267d9265048d9ae0e72da27cefd7b
Active Plugins: Query Monitor with Debug log enabled along with BuddyPress v11.4.0
Active Theme: Default WP Twenty Twenty-Three
Change History (5)
#3
@
3 years ago
- Version 11.4.0 → 10.0.0
This was introduced in 10.0, it's due to bp_nouveau_activity_data_attribute_id().
This ticket was mentioned in PR #182 on buddypress/buddypress by @imath.
3 years ago
#4
- Keywords has-patch added; needs-patch removed
This function is outputting the data-bp-activity-comment-id attribute. It was created as a replacement of bp_nouveau_activity_data_attribute_id() for the activity/comment.php template to avoid messing with activity types when not set (instead a requerying for the parent activity).
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9014
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @vapvarun
Thanks for your report. I confirm I was able to reproduce in latest trunk. We'll fix it in 12.0.