Page 1 of 1

Admin can't see protected pages

PostPosted: July 28th, 2011, 10:59 pm
by liftedplane
I am currently setting up a wordpress membership site with an affiliate plugin from tips and tricks HQ

I have everything working, the wordpress install is inside of another directory of my main website and accessed from a subdomain, everything was working fine, the affiliate paypal linking etc etc until now.

I've only got two levels of access, 0 and 1.

there are three pages that need to be protected, I created the pages and set the page level restrictions to 1 when creating the pages. Now I cannot access them when I am logged in on my account. even when I put it to level 0 the only way I could access was when I set it to no restrictions.

I've searched these forums and I cannot seem to find an answer so thank you in advanced.

here is my access restrictions in case you wanted to see it
access restrictions.png

Re: Admin can't see protected pages

PostPosted: July 29th, 2011, 1:13 am
by liftedplane
well I tried making another user and gave that user the proper access level and nothing... I still cannot access ANY pages... lvl 0 or lvl 1... even though this user is lvl 1...

I've checked all options... everything SHOULD be working... I did go through the setup to link it with the affiliate plugin I use... I can't imagine that's causing the errors but... any ideas?

Re: Admin can't see protected pages

PostPosted: July 29th, 2011, 3:52 pm
by Cristián Lávaque
That's odd. Could you share screenshots of every panel in the Restriction Options page? WP Admin -> s2Member -> Restriction Options

Also, did you check if another plugin was causing this problem? As a test, try deactivating every other plugin and see if you can access the pages then.

Re: Admin can't see protected pages

PostPosted: July 29th, 2011, 6:22 pm
by liftedplane
here a quick video I made scrolling through all the panels with them open....

http://youtu.be/NTHTuHdVPfs

hope that helps.

and the only other Plugin was wpaffiliate by tips and tricks.... I turned it off and it still didn't help... I may just have to go without a membership and simply email the link to people and hope they don't share it

edit: I also tried using the stock twenty eleven theme... and it still didn't work.

it doesn't seem to matter if I use S2member with a basic WP install and nothing extra or if I turn on thesis and the affiliate plugin...

it shouldn't matter that the blog is in a subdirectory, it has it's own install and it's own database I made in my CPanel (well the godaddy version) either way... I did everything correct and I have NO idea why this wouldn't be working.... s2member doesn't keep track of whether I've paid or not to access just if you have proper credentials right? and the admin should have ALL of those no matter what?

I'm sure it's something stupid and easy and when it get's solved I'll feel like an idiot, I just cannot launch my product like this and I've already taken WAY more time than I need to.

thanks for all the help hopefully we can get this figured out

Re: Admin can't see protected pages

PostPosted: July 29th, 2011, 10:24 pm
by Cristián Lávaque


I get a "this video is private" message, could you change that seeting, plese? Thanks!

Got it on the plugins and themes. I'll wait for the video to see the restriction settings.

Whatever the settings are, though, you shouldn't have any level restriction applied to you as an admin. Custom capabilities may keep you out even if an admin, though.

Did you edit the roles at all? Maybe you changed something that's causing this?

Do you have this problem in a clean WP install (not that same one without plugins, but a new one) with s2member?

Re: Admin can't see protected pages

PostPosted: July 29th, 2011, 11:57 pm
by liftedplane
http://youtu.be/NTHTuHdVPfs

sorry set to private not unlisted on accident.

I have nothing custom setup, I have nothing special or any apis... this was a completely fresh wordpress install.. all I did was install WP, install Thesis, install s2member, install WPaffiliate, setup member, change member level names, and then followed the writeup for linking the affiliate and s2member plugins... then made some pages. and tried to set them to protected by levels.

Re: Admin can't see protected pages

PostPosted: August 1st, 2011, 10:01 am
by liftedplane
well after messing with it all weekend I still cannot figure out what the problem is. I've uninstalled reinstalled replaced etc etc...

Re: Admin can't see protected pages

PostPosted: August 1st, 2011, 5:57 pm
by Cristián Lávaque
I don't understand either. I'll wait for Jason's comments on this one.

You say you tried a clean WP install with just s2Member and you had this problem?

Re: Admin can't see protected pages

PostPosted: August 2nd, 2011, 1:20 am
by liftedplane
I have not tried that yet.... gonna delete everything in the WP directory tomorrow... been to busy to do that.

I'll let you know.

Re: Admin can't see protected pages

PostPosted: August 2nd, 2011, 8:14 pm
by liftedplane
well I just tried a fresh install... and it still didn't work...

Re: Admin can't see protected pages

PostPosted: August 2nd, 2011, 10:50 pm
by Jason Caldwell
Very strange indeed.
Thanks for reporting this important issue.
there are three pages that need to be protected, I created the pages and set the page level restrictions to 1 when creating the pages. Now I cannot access them when I am logged in on my account. even when I put it to level 0 the only way I could access was when I set it to no restrictions.
When/if you are denied access, you are sent where exactly? When s2Member denies access, it should redirect you to the Membership Options Page configured for your installation of s2Member. Upon this redirection, s2Member will tag variables onto the end of the Membership Options Page URL in your address bar, with the reason why it denied you access. Can you please post the entire URL that you are redirected to? That might shed some light.

Re: Admin can't see protected pages

PostPosted: August 3rd, 2011, 12:54 am
by liftedplane
this is what I get

http://blogcreation.theattractiontrend. ... evel_req=1

I am trying to access this page

http://blogcreation.theattractiontrend.com/module-1/

I setup a subdomain in my host cpanel to redirect

the wp address in the general settings are http://www.theattractiontrend.com/blogcreation/ the site address is setup as http://blogcreation.theattractiontrend.com

everything should be working fine... and I did just update and it didn't solve it.

Re: Admin can't see protected pages

PostPosted: August 3rd, 2011, 10:16 pm
by Cristián Lávaque
Ah, I see now. It had not occured to me that you may be doing something like that. Please read this and tell me if it helps you solve it viewtopic.php?f=36&t=1066

Re: Admin can't see protected pages

PostPosted: August 4th, 2011, 12:46 am
by liftedplane
so... now that I think I get what it's saying...

I need to make the url and the wp install the same www.theattractiontrend.com/blog-creation/ ?

and if people go to blogcreation.theattractiontrend.com set it up to just flat out forward to the blog-creation directory?

Re: Admin can't see protected pages

PostPosted: August 4th, 2011, 2:29 pm
by Jason Caldwell
liftedplane wrote:so... now that I think I get what it's saying...

I need to make the url and the wp install the same http://www.theattractiontrend.com/blog-creation/ ?

and if people go to blogcreation.theattractiontrend.com set it up to just flat out forward to the blog-creation directory?

Yea, it sounds like you're not being recognized as a logged-in Member at Level #1, because you are criss-crossing the domains, which ultimately criss-crosses cookie authentication within WordPress. Please see this thread: viewtopic.php?f=36&t=1066

Re: Admin can't see protected pages

PostPosted: August 4th, 2011, 6:20 pm
by liftedplane
I read that, it doesn't really go crazy in depth, but I will check it out and see what it does, thanks for all the help

Re: Admin can't see protected pages

PostPosted: August 4th, 2011, 6:35 pm
by liftedplane
problem solved by setting them to the same thing >_> thanks guys for the help

Re: Admin can't see protected pages

PostPosted: August 5th, 2011, 12:56 am
by Cristián Lávaque
Well done! I'm very glad you solved it. :)