Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-01T09:28:37-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=644 2011-09-01T09:28:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33622#p33622 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
Had something been said about this issue in the 'General Options' or even the 'Quick-Start Guide', I would've noticed it and not had to search for a solution.

Statistics: Posted by msafi — September 1st, 2011, 9:28 am


]]>
2011-08-31T20:27:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33547#p33547 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
Probably a simple option would be to have it as a setting at the top of General Options, like Deactivation Safeguards is, so that developers see that it's there, it exists and they need to set it when working in a local server.

Statistics: Posted by Cristián Lávaque — August 31st, 2011, 8:27 pm


]]>
2011-08-31T02:47:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33488#p33488 <![CDATA[Re: s2Member doesn't redirect protected pages]]> Statistics: Posted by msafi — August 31st, 2011, 2:47 am


]]>
2011-08-30T21:26:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33459#p33459 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
Cristián Lávaque wrote:
Would SERVER_ADDR work?

Ideally, yes. However, I've seen live server configurations return 127.0.0.1 in this environment variable.

Statistics: Posted by Jason Caldwell — August 30th, 2011, 9:26 pm


]]>
2011-08-30T18:45:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33435#p33435 <![CDATA[Re: s2Member doesn't redirect protected pages]]> SERVER_ADDR work?

Statistics: Posted by Cristián Lávaque — August 30th, 2011, 6:45 pm


]]>
2011-08-30T17:32:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33401#p33401 <![CDATA[Re: s2Member doesn't redirect protected pages]]> Thanks for the follow-ups, and for the KUDOS!

msafi wrote:
I just wanted to say s2Member is brilliant! Thanks a lot for it.

Now, I just wanna ask, isn't there a way for the script to know when it's being run on a localhost, whose domain is other than 'localhost' and notify the user about the required wp-config.php edits?

It wasn't easy landing on this thread and finding the solution that Jason posted.
That's a great question. There isn't one that I'm aware of, but if you are, please let me know! If anyone else reads this and has suggestions, I'd be appreciative. To my knowledge, HTTP_HOST is the only environment variable available for testing in this regard. s2Member currently scans for 127.0.0.1 at the beginning, and localhost anywhere in the HTTP_HOST environment variable, as it's only way of auto-detecting localhost installations. Anything else must be specified in the /wp-config.php file with define("LOCALHOST", true); in order for s2Member to know.

Statistics: Posted by Jason Caldwell — August 30th, 2011, 5:32 pm


]]>
2011-08-30T14:34:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=33361#p33361 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
Now, I just wanna ask, isn't there a way for the script to know when it's being run on a localhost, whose domain is other than 'localhost' and notify the user about the required wp-config.php edits?

It wasn't easy landing on this thread and finding the solution that Jason posted.

Statistics: Posted by msafi — August 30th, 2011, 2:34 pm


]]>
2011-03-24T18:14:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=8310#p8310 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
Thanks for your quick response! Works like a treat!

I'm only just starting to look at this software, but it looks great so far..

Thanks again,

Pabs

Statistics: Posted by s2pabs — March 24th, 2011, 6:14 pm


]]>
2011-03-23T23:40:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=8255#p8255 <![CDATA[Re: s2Member doesn't redirect protected pages]]> Try adding this line to your /wp-config.php file.
Code:
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.

Also, please be sure to read s2Member's section on Alternative View Protection. This can sometimes cause confusion; depending on your theme. You'll find this in your Dashboard under: s2Member -> General Options -> Alternative View Protection.

Statistics: Posted by Jason Caldwell — March 23rd, 2011, 11:40 pm


]]>
2011-03-23T22:59:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=8249#p8249 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
I wonder if someone could help me with something? I've just installed s2member into a site on my local pc WAMP server. I'm just wondering how the page protection works? I've set it up as per the video's / documentation and according to the set up it should be protecting 3 pages.

Then I logged out of my admin area and even tried closing my browser, but on this pc it doesn't protect the pages that are supposed to be protected? I can see them by just clicking on them. The only page that it's protecting is my "Login Welcome Page" - which redirects to the Membership Options Pages. The other "protected" pages are visible when I'm logged out.

I then tried a few different browsers to see if a cookie had been set, but s2member isn't protecting these pages on any of the browsers on my pc... I thought I'd be able to test it locally before launching it live.

Is this normal behaviour? I mean does it use an IP address to protect the pages? I would have thought it was a login rather than an ip address?

I can't test it easily elsewhere because like I said, it's on my WAMP server on my pc.

Does anyone have any ideas about this? Why wouldn't s2member be protecting the pages even though I'm logged out?

Thanks in advance,

Pabs

Statistics: Posted by s2pabs — March 23rd, 2011, 10:59 pm


]]>
2010-09-07T17:12:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2999#p2999 <![CDATA[Re: s2Member doesn't redirect protected pages]]> Thanks for the update.
Please feel free to post the Dashboard login and I'll have a look for you.

Yes, it sounds like this *could* be the problem ( i.e. suffusion_query_posts() ), but in our tests with Suffusion, I was unable to reproduce the issue. If you're PHP savvy, you may want to have a look at s2Member v3.2.4+, inside this file: /s2member/includes/functions/security-gate.inc.php

Otherwise, yep. Just send over a Dashboard login and we'll take a peak.

Statistics: Posted by Jason Caldwell — September 7th, 2010, 5:12 pm


]]>
2010-09-03T15:40:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2900#p2900 <![CDATA[Re: s2Member doesn't redirect protected pages]]> @Elizabeth -- I'm currently moving my local copy of WP to a testing server; will send dashboard login once done.

@Jason -- I tried upgrading to 3.2.4, same issue persists.

Statistics: Posted by aendrew — September 3rd, 2010, 3:40 pm


]]>
2010-08-31T20:45:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2805#p2805 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
You rock Jason!

Thanks again,

Liz Ness

Statistics: Posted by Liz Ness — August 31st, 2010, 8:45 pm


]]>
2010-08-31T18:18:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2796#p2796 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
If so, please upgrade to s2Member v3.2.4
-- BuddyPress ( bug ). A bug that was first introduced in s2Member v3.2.3 with Hook priority on `template_redirect` was causing compatiblity issues with BuddyPress. This has been corrected in s2Member v3.2.4+.

Statistics: Posted by Jason Caldwell — August 31st, 2010, 6:18 pm


]]>
2010-08-31T14:30:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2778#p2778 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
The system isn't redirecting the login to the Welcome page. This is true for both options on the setting via General Options -> Login Welcome Page (e.g., a redirected URL as well as selecting the page via the drop down menu).

However, the Members Options page (a redirect for non-logged in members) does seem to function as expected.

UPDATE: Actually, this only happens when I log in as the admin -- so, I'm okay with this.

Statistics: Posted by Liz Ness — August 31st, 2010, 2:30 pm


]]>
2010-08-31T10:44:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2773#p2773 <![CDATA[Re: s2Member doesn't redirect protected pages]]>
In order to investigate this further, please send us a Dashboard login, I'll be happy to have a look for you.
Send it here for privacy:
http://www.s2member.com/contact/

Statistics: Posted by Elizabeth — August 31st, 2010, 10:44 am


]]>
2010-08-30T21:48:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=644&p=2764#p2764 <![CDATA[s2Member doesn't redirect protected pages]]>
I'm using the latest WP, BuddyPress and s2Member, with Suffusion as the theme (Suffusion child theme, actually).

Currently, the pages I set to be protected are not. I have a category that is supposed to be protected that I still can get to when logged out, plus all the URIs for BuddyPress I've supplied aren't protected in a similar manner.

I'm supposing this is due to the fact Suffusion uses a bunch of calls to format content and whatnot; just below get_header(); is a function, suffusion_query_posts();. Would this be what is causing the issue above?

If not, any idea what I might be doing wrong?

Thank you!

Statistics: Posted by aendrew — August 30th, 2010, 9:48 pm


]]>