BuddyDev

Search

Buddypress activity not deleting

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47208

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47210

    Hi Tosin,
    Probably some kind of caching issue with activity not refreshing.

    Try disabling cache and test again.

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47221

    I’ve disabled all cache but the activity is still not deleting, I’ve also tried to delete the activity from the admin section but it’s still not deleting.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47223

    Is 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
    Brajesh

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47226

    Hello Brajesh

    I have deactivated all my plugins except only buddypress,
    I have changed my theme to default twenty twenty theme, I have deleted bp-custom.php file but still activity is not deleting on both frontend and backend

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47227

    The only thing I’m suspecting is my server

    I’m on using cyberpanel which uses openlitespeed

    But I have the litespeed cache plugin disabled

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47228

    Please note that the main activities are deleting what is not deleting is the activity comments

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47229

    I also just noticed that if I right click on the activity comment button link and open it in new browser tab then the comment delete successfully

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #47230

    The activity comment gets deleted only when the delete button link is opened in new browser tab

    The activity comment does not delete with ajax while staying in the same browser tab

    Maybe 🤔 there is a bug in buddypress

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47239

    Hi 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.

This topic is: not resolved