Premium user still not granted access

Hi folks,

I’ve been testing a signup on my website through a separate laptop, but despite signing up, it doesn’t seem to have been granted access to the restricted pages. I’ve done this on my own laptop without an issue.

Here’s what I know:

  1. The subscription is supposed to grant level one access, which all the restricted pages are set to accept.
  2. In the user tab, the username corresponding to the laptop is confirmed as having level one membership status.
  3. I recently received a payment from the account on the other laptop (different credit card account, etc.) via paypal, so recurring payments are still being accepted.
  4. Finally, I’ve repeated tested signing up and canceling on my own laptop, and found I could access the restricted pages when I had membership status.

Any ideas? I thought this was figured out until tonight, and I’ve already planned a launch of the site December 1st!

Check whether you have applied more than one access restriction that might apply to the same post or page (e.g. both levels and ccaps). You can use both, for sure, but you also need to make sure that you then grant both types of access to each relevant member.

Hey Tim, thanks for the help! Turns out the user I created somehow had BOTH level 0 and level 1 access, so it was getting booted based on the former. I removed level 0 from the user, and it works great now!

Interesting. Your comment is a little ambiguous, and the nuances matter here.

By default, anyone with level 1 access has level 0 (subscriber) access. Similarly, those at level 2 get access at levels 0 and 1. The point is that s2Member is designed to be hierarchical.

You can change that by using a plugin like Capability Manager Enhanced, and have levels then work in parallel instead. Is that what you’ve done?

Or are you saying that this member had two different roles, one at level 0 and one at level 1? If so, you’re right, that will never work. The reason for that is that s2Member doesn’t work with users having more than one role.

By default, though, WordPress doesn’t assign multiple roles to anyone. So, if this user had more than one role, you must have something that changes that. This is the reason why I’m responding at this length. If you don’t eliminate that “something,” you are going to have continual problems using s2Member.

Hm… You’ve raised a good point. Although the user had “bronze membership”, which I believe is a role I’ve associated with level 1 access, it also had “Participant”, which is automatically assigned to it from bbPress (a forum plugin I use) when they register. But I don’t understand why one would interfere with the other. Regardless, I’ve removed the auto-role function that assigned the “Participant” status, will have to watch for this in the future.

Thanks again for taking the time to respond.