Page 1 of 1

Having a problem with the most simple scenario

PostPosted: May 12th, 2011, 5:18 pm
by BobTabor
(So much for my "experienced user" status ... after this, I'm sure you'll strip me of it!)

In a nutshell ... I've tried 4 times today to get a simple scenario to work. However, no matter what I try, I can't get a protected page to redirect the visitor to the Membership Options page. Additionally, the user is able to just see the entire protected page.

I've recorded a screencast video demonstrating everything from setting up the web server locally to installing WordPress, s2Member, Pro and configuring the pages. It's less than 8 minutes long.

http://dl.dropbox.com/u/693501/Problem.zip

But here's the places in the video that are probably most interesting:

@ 2:00 -- Clean WordPress Install complete ... starting basic configuration
@ 2:40 -- s2Member Install
@ 3:10 -- Adding s2Member Pro
@ 3:30 -- Adding wp-Show-IDs
@ 3:50 -- Add the 2 required pages (Membership Options and Login Welcome)
@ 4:25 -- Created the page I want protected
@ 4:50 -- Setting the General Options for the 'Login Welcome Page' and 'Membership Options Page'
@ 5:10 -- Setting the 'Page Access Restrictions' 'Pages That Require Level #1 Or Higher" to 'all'
@ 5:20 -- Opening a new browser to test (using Safari, completely reset to avoid cache, cookies, etc. ... I was using Firefox for evey thing up until now)
@ 5:35 -- Protect page NOT PROTECTED!
@ 5:45 -- Verifying protection in the Pages list. Looks protected!
@ 6:05 -- Attempting to use 'URI Restrictions' with 'Level 1 or Higher' set to: /
@ 6:50 -- Verifying protection in the Page itself ... again, looks protected!
@ 7:00 -- Last ditch effort ... to add a bunch of lorem ipsum, and wrap it with [s2If current_user_can(access_s2member_level1)] ... no dice.

So, you can see that I put a lot of effort into this because ... I'm spent. I don't know what I'm missing here, but whatever it is I keep repeating the same mistake. Please help!
Thanks
Bob

Re: Having a problem with the most simple scenario

PostPosted: May 12th, 2011, 10:36 pm
by Cristián Lávaque
Hi Bob. :)

Try adding this line to your /wp-config.php file.

Code: Select all
define('LOCALHOST', true);  


s2Member has a special routine, which we refer to as the Systematics Routine. It sees your IP address is the same as the server's IP; which is sometimes an issue on a WAMP/MAMP installation. It's fine so long as your domain is http://localhost/. However, if it's something other than that, you'll need to add that line in your /wp-config.php file so s2Member realizes it's running on a localhost installation.

Let me know if that helps.

Re: Having a problem with the most simple scenario

PostPosted: May 12th, 2011, 10:43 pm
by BobTabor
God bless you my man. Will try in the morning. I thought I had lost my mind.

Re: Having a problem with the most simple scenario

PostPosted: May 12th, 2011, 10:51 pm
by Cristián Lávaque
;)