It’s a duplication of this topic:
No access to single activity item on from after BP2.6 upgrade
To roll back: download the previous version here. Delete your current version of BuddyPress and upload the older one.
Thank for the previous version link,, i have rolled back to the previous version, and the problem got fixed by itself…
I request you guys to review the latest version
Is there any other solution besides rolling back. My theme is now updated to accommodate the new BudyPress and this would cause another problem.
@valarmurugan @tse11 – What is the issue exactly?
Can someone list the steps necessary to duplicate the problem?
When clicking on an activity link (the time-stamp link), it now doesn’t bring you to the individual activity. It brings you back to your own profile with a message that says, “You do not have access to this activity.”
@tse11 – I am unable to replicate the issue at the moment. Can you list steps to duplicate the issue? Pretend I don’t know what you are referring to.
Is this only to your own activity items or someone else’s? Is this issue only relevant to specific activity items (activity updates, group activity items) or all types of activity items? Are you logged in as a regular member or an administrator?
Update – If you are using an object cache plugin, try clearing the object cache.
Hi, thank you for trying to help.
This is for all users, it isn’t specific to a particular member type or activity item either.
A member goes to the activity feed, he wants to click on an activity item, the item redirects to the user’s own activity profile page with a bar across the top (the buddypress notification,) stating, “You do not have access to this activity.”
I am not using an object cache plugin.
@tse11 – Can you help debug with this code snippet in bp-activity/bp-activity-screens.php
?
https://gist.github.com/r-a-y/1ec4abd0e275f7db056c71a62c478979
Add the two lines without the +
signs to that file. Then try to go to an activity item. This will kill access to the entire page with some debug variables. Can you copy and paste what is on that screen? Then remove the snippet to bring back your site.
Yes, I will try that now.
Thanks for the debug help, @tse11.
One of your plugins (or yourself) is using this code snippet:
add_filter( 'bp_use_legacy_activity_query', '__return_true' );
This made our strict activity permalink access check fail.
I believe the following patch will fix your problem:
https://buddypress.trac.wordpress.org/attachment/ticket/7146/7146.01.patch
Can you confirm?
Yes, indeed…it works perfectly now. Thank you very, very much!
Thanks for the assist, @tse11!
This will be addressed in BP 2.6.1.
Excellent, I appreciate the hard work.
Great my query is also resolved.