Page 1 of 1

'URI Level Access Restrictions' not restricting access...

PostPosted: September 24th, 2011, 5:22 pm
by victortaylor
Brilliant plugin but I've spent ages trying to figure out a problem.

Looked in these forums, Google etc and found no answer so maybe it's unique to me??

Problem: I've set the "URI Level Access Restrictions" in order to restrict access to buddypress features such as 'activity' but can still access /activity/ when logged out (tested on both a different browser and different computer).

I've followed instructions very carefully... Tried everything I can think of... Please help.................

(One thing I tried was selecting all options under "Alternative View Protection", and that hides the menu link on the site but anybody not logged in can still access 'activity' by browsing to http://thriftandfrugality.co.uk/activity/)

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 25th, 2011, 1:25 pm
by researchables
I too am having the same issues with URI restrictions and BP 1.5. I'm also having an issue with registration redirection with BP 1.5. Is there a time frame as to when s2 will become compatible with BP 1.5?

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 27th, 2011, 11:21 pm
by Cristián Lávaque
BuddyPress 1.5 had some incompatibilities with s2Member until our latest release. Please update s2Member to the latest and let us know if that solves your problems. :)

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 28th, 2011, 12:55 pm
by victortaylor
Thanks Cristián. I've updated s2member but it is still the same. Example at my link above...

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 28th, 2011, 2:38 pm
by mikehenrysr
I'm experiencing the same problem and I'm fully upgraded. Up until recently /groups/create was limited to Level 3 and above, but I can go to that page from any level of registration. I'm getting spam groups which is how I found out. Mike...

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 28th, 2011, 5:37 pm
by researchables
Same here. Fresh WP 3.2.1, BP 1.5 and s2 install and URI restrictions as well as page-level (when editing a page) restrictions are not working. Login re-direction is not as well.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 28th, 2011, 6:16 pm
by biornt
Same here - not restricting the buddypress areas. Using this:

/members/
/groups/
/blogs/
/activity/
/messages/
/profile/
/friends/
/settings/

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: September 30th, 2011, 5:26 pm
by Cristián Lávaque
Thanks for all the reports, guys. I'm notifying Jason about it so he can look into it.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 1st, 2011, 10:27 pm
by Jason Caldwell
Investigating this now. Thanks for your patience.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 2nd, 2011, 10:26 pm
by Jason Caldwell
Confirmed. This will be fixed in the release of s2Member v111002 later this evening.
* (s2Member) **BuddyPress v1.5 fix**. Issues with BuddyPress v1.5 and s2Member's URI Restrictions; corrected in this release. Hook priority updated, and `template_redirect` converted to `wp` at priority `2`, giving s2Member the ability to integrate with BuddyPress v1.5 properly in all scenarios.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:04 am
by mikehenrysr
Crashed my site. Fatal error: Cannot break/continue 1 level in /home/leadchg/public_html/wp-content/plugins/s2member/includes/classes/no-cache.inc.php(156) : eval()'d code on line 1

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:08 am
by victortaylor
I'd just backed up files and was about to start upgrading when I saw your post Mike ... scared now!

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:11 am
by Eduan
This link may be of interest while they sort this last problem out:
viewtopic.php?f=4&t=15396

Hope this helps ;) .

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:20 am
by mikehenrysr
I renamed the s2member directory and the website came up again. I now will try to restore my s2member from a backup. What a mess.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:46 am
by victortaylor
- thanks Eduan
- bad luck with the mess Mike

I seem to have upgraded successfully using the method at
viewtopic.php?f=36&t=247

I'm off to try out the URI Restrictions now...

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 9:51 am
by victortaylor
Have only tried one - /activity/ - and it works lovely. Glad about that.
Don't know about the redirect problem because I'm not using that.

*Thank you* Jason, Cristián.

Re: 'URI Level Access Restrictions' not restricting access..

PostPosted: October 3rd, 2011, 3:58 pm
by Jason Caldwell
Eduan wrote:This link may be of interest while they sort this last problem out:
viewtopic.php?f=4&t=15396

Hope this helps ;) .

Thanks for these reports everyone.

s2Member v111003 will be released shortly, for the sole purpose of correcting this fatal error.
* (s2Member v111003) **Bug fix**. Fatal `eval()` error inside: `/includes/classes/no-cache.inc.php` due to an inappropriately placed call to PHP's eval() function.
Fixed in this release of s2Member v111003.
You should receive a notice to upgrade inside your Dashboard. If not, you can grab the latest release here. s2Member Pro customers can access the latest versions of both s2Member and s2Member Pro inside their accounts at s2Member.com. See: http://www.s2member.com/

* Our sincerest apologies for this inconvenience and possible down time.