Page restriction not working

I have a WordPress site that is using the S2 member framework and the only problem I am having is the page restrictions. Basically for some reason S2 member does not detect when a user is allowed to have access to a page once I put restrictions on.

For example if a user is a level 3 and I restrict page access to only level 2 or 3 and higher the page becomes blank for the logged in user just as it would if someone was not able to have access. The thing is I know that S2 member recognizes the users level because I have it set to log user in to a certain page based on their membership level. Which it works perfectly but the only problem comes when I add page restriction.

Does anyone know possible solution for this problem?

What happens when someone, who should be able to access one of your pages, attempts to do so?

They are able to access the page and see all the information just fine. The only problem occurs when in my page editor or if I go into s2 member options area and put any restriction on that page they wont be able to see the page. So even if lets say I put access only for level 2 members and a level 2 member actually goes to the page they wont be able to see the page content.

I have to just keep the page restriction blank to allow anyone access.

Does this mean you’re using something like Visual Composer?

What exactly does this mean? Does the member get redirected?

This is what I mean by page editor area on the right where you can detertime access. And yes I am using a visual editor.

Bingo! That’s your problem. s2Member generally doesn’t work with them.

This is what it looks like for the user its just blank, cant see any content

Oh really that sucks, does that mean just the actual page I am trying to work on cant have a visual editor? Or do I have to remove it from my website all together?

You can’t use the visual editor wherever you want s2Member to protect the content that the visual editor holds.

So you don’t need to deactivate the thing completely, though I hate them all with a passion. One of the reasons is that visual editors don’t store usually store their data in regular WP tables, where s2Member could find it.

1 Like

Thanks for your response, I just disabled the visual editor and then tried to protect a new page, but the problem still is there. Have you ever heard of any other problems that might cause this?

Now you’re going to have to explain EXACTLY what happens when the member with appropriate credentials goes to the page. Take me through each step.

Step 1- User signs up for the site and one sign up is given free level 0 access. Which they are then redirected the page using /%%current_user_level%%-account-page to send then to level 0 page. Which works perfectly for them seeing the content and is not restricted at all so someone who is not registered could also see that link.

Step2- They pay to upgrade account and then same process like step 1 and now redirected to new page that is restricted which they now have access to. However, once I add restriction to the page it is just blank except the header and the footer showing.

That is definitely not a problem caused by s2Member’s regular page restrictions. If it were, the member would be redirected somewhere else.

So either you’ve added an s2Member [s2If] shortcode, or else something else (like another plugin or your theme) is causing this problem.

You sparked an idea for a work around. What I did was just leave the page restriction blank and then just entered short codes to block off the content on the page for specific members. So it ended up working perfectly. Thanks again for your help