Hello Brajesh,
Ive recently noticed that budyypress comment activities are not deleting. after clicking the delete button then refreshing the page all the comment activities reappear again.
I checked my logs and I can see this
2022-11-04 15:35:17.114310 [NOTICE] [270361] [102.89.22.239:21442-Q:4A323AF0C3A032A9-8#site.com] [STDERR] PHP Warning: Attempt to read property "activity" on null in /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 970 2022-11-04 15:35:17.114350 [NOTICE] [270361] [102.89.22.239:21442-Q:4A323AF0C3A032A9-8#site.com] [STDERR] PHP Warning: Attempt to read property "user_id" on null in /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 970 2022-11-04 15:35:18.581882 [NOTICE] [270361] [102.89.22.239:21442-Q:4A323AF0C3A032A9-12#site.com] [STDERR] protocol error, got 'E' as reply-type byte
Thanks
Hi Tosin,
Probably some kind of caching issue with activity not refreshing.Try disabling cache and test again.
Regards
BrajeshIs there any chance that you are trying to do something with activity outside the activity loop?
The error says that
$activities_template
is not initialized when someone is trying to access activity author id.
Regards
BrajeshHi Tosin,
I haven’t seen this till now.can you please share the complete stack trace for the error? That may give us some pointer for the origin of the issue.
Regards
Brajesh
You must be logged in to reply to this topic.