Skip to:
Content
Pages
Categories
Search
Top
Bottom

You do not have access to this activity

  • @udarmo

    Participant

    Hi,

    I’m using BP 2.9 and WP 4.8 and Buddy theme.
    Can’t see single activity item (I’m admin user). Not me and nobody. Clicking on timestamp of item redirects me to my profile page and error message “You do not have access to this activity”. My theme is non-bundled, I have tried this with Twenty Seventeen – no luck.
    I have plugin BP Activity Privacy, but it’s is deactivated now.
    I saw this topic:
    buddypress.org/support/topic/post-update-unable-to-see-the-buddypress-activity and that’s not helping me.
    What can I do to fix it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @udarmo

    Participant

    I have found the problem:

    // If activity author does not match displayed user, block access.
    if ( true === $has_access && bp_displayed_user_id() !== $activity->user_id ) {
    	$has_access = false;
    }

    bp_displayed_user_id() in activity stream is always 0 and that’s breaking the access. I have read the explanation about this function but still don’t get why do I need to check this in activity stream. So I disabled it and now it works.

    @anthonytornambe

    Participant

    You have to update the theme in latest version to fix this issue.

    @udarmo

    Participant

    theme? it is not theme’s problem.

    @henrywright

    Moderator

    Hey @udarmo

    Thanks for the report. Can you open a Trac ticket for this so it can be investigated?

    https://buddypress.trac.wordpress.org/

    @udarmo

    Participant

    Hey @henrywright

    Sure I can, but I don’t sure it is common, maybe it’s only mine?

    @blenderitalia

    Participant
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘You do not have access to this activity’ is closed to new replies.
Skip to toolbar