PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Having a problem with the most simple scenario

s2Member Plugin. A Membership plugin for WordPress®.

Having a problem with the most simple scenario

Postby BobTabor » May 12th, 2011, 5:18 pm

(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
User avatar
BobTabor
Experienced User
Experienced User
 
Posts: 84
Joined: April 28, 2011

Re: Having a problem with the most simple scenario

Postby Cristián Lávaque » May 12th, 2011, 10:36 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Having a problem with the most simple scenario

Postby BobTabor » May 12th, 2011, 10:43 pm

God bless you my man. Will try in the morning. I thought I had lost my mind.
User avatar
BobTabor
Experienced User
Experienced User
 
Posts: 84
Joined: April 28, 2011

Re: Having a problem with the most simple scenario

Postby Cristián Lávaque » May 12th, 2011, 10:51 pm

;)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron