Opened 13 months ago
Closed 13 months ago
#9014 closed defect (bug) (fixed)
Warning: Undefined property: stdClass::$type
Reported by: | vapvarun | Owned by: | imath |
---|---|---|---|
Milestone: | 12.0.0 | Priority: | normal |
Severity: | normal | Version: | 10.0.0 |
Component: | Templates | 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)
#2
@
13 months ago
- Component changed from Activity to Templates
This is specific to the BP Nouveau template pack
#3
@
13 months ago
- Version changed from 11.4.0 to 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.
13 months 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
Hi @vapvarun
Thanks for your report. I confirm I was able to reproduce in latest trunk. We'll fix it in 12.0.