Page 1 of 1

Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 11:48 am
by kiawah1
I installed S2 on a client's website. Followed all the directions and set up everything. I should say that I am using Shopper Press for my theme. I am still testing this for my client and when I setup a user with a level 2 access, after I login (with my new user id), it keeps bringing me back to the Membership options page and not the welcome page. I know that some users had this issue because of a redirect that was setup, but I have no redirect. Can someone please tell me what I need to do to get this to work? I am not very comfortable with php so I need some easy to instructions on how to check and fix this. I did try changing the theme and that did not help at all.

I love the plugin but need help getting this to work.

Thank you.

Re: Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 12:20 pm
by Cristián Lávaque
Hi! I'll try to help you solve it.

  • Does the same happen for accounts set at other levels?
  • In your login page's source code, did you search for a hidden redirection field?
  • Did you select the desired login welcome page in WP Admin -> s2Member -> General Options -> Login Welcome Page?
  • Did you use a Special Redirection URL there?

Re: Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 7:23 pm
by kiawah1
Hi-

Yes this happens at all levels (only using 1,2 and 3)

What source code do I need to look at? Do I look at wp-login? Or should I look for my theme's login form? Or do you mean when I am on my site, viewing the course code for that login area? I do think that my current theme is causing this to not work but am unsure what lines of code to look for.

Yes I selected the correct login welcome page and did not use a special redirection url.

Thanks for your help.

Re: Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 7:33 pm
by Cristián Lávaque
kiawah1 wrote:I do think that my current theme is causing this to not work but am unsure what lines of code to look for.


Got it. What theme is it?

Could you try changing your theme back to the default TwentyTen and try logging in to see if that solves the welcome page problem? If so, then you'd be sure it's the theme.

Re: Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 7:40 pm
by kiawah1
I did change it to twenty ten and it still did not work.

Re: Cannot get members to membership welcome page

PostPosted: March 16th, 2011, 8:03 pm
by Cristián Lávaque
OK...

Try disabling other plugins until it works. This may help you find the problem. If you do, please report back so we can have a closer look. It might be something we can help you with; making it possible for the two plugins to co-exist.

Re: Cannot get members to membership welcome page

PostPosted: March 17th, 2011, 8:59 am
by kiawah1
Hi- I tried the different themes, disabled plugins and this still does not work. I am using Shopper Press for my theme which when I did change it to twenty ten, brought me to the S2 login screen but again bumped me to the Membership options page.

Re: Cannot get members to membership welcome page

PostPosted: March 17th, 2011, 12:18 pm
by Cristián Lávaque
Got it.

OK, let's take a look at how you set up the access protection for that content. Could you show me screenshots of every panel where you set a certain access restriction? Access restrictions per level for posts, pages, tags, categorys or URIs; or access restriction for unique pages or posts; or custom capabilities.

Re: Cannot get members to membership welcome page

PostPosted: March 17th, 2011, 4:39 pm
by kiawah1
Hi-

Post Level Access - none
Page Level Access - see attachment

Tag Access - none
Category access - none
Unique/Custom - none

Thanks for trying to help with this. I am hoping that a fresh set of eyes will find something.

Re: Cannot get members to membership welcome page

PostPosted: March 19th, 2011, 2:34 am
by Jason Caldwell
Thanks for reporting this important issue.
~and thank you for bringing this to my attention Cristián.

So everything in your configuration sounds good. I was surprised to here that reverting to the default WordPress theme and removing all other plugins from the equation has not produced any positive result.

One way to see what is actually going on, is to look in the address bar of your Membership Options page. Whenever s2Member redirects you to the Membership Options Page, it also includes details in the ?query string of the URL about why it forced the redirection. So this would be a good place to start analyzing what is actually causing s2Member to act funny on your installation.

From the documentation ( Membership Options Page Variables ):
Code: Select all
Membership Options Page Variables:

At the core of s2Member, is it's ability to protect content ( i.e. Posts, Pages, Tags, Categories, URI word fragments, etc ). Whenever a public User, or even an existing Member attempts to access an area of your site that is unavailable to them; either because they are not logged-in, not a paying Member at all; or maybe they are logged-in, but they don't have access to content you've protected at a higher Membership Level; — s2Member will always redirect these un-authenticated requests to your Membership Options Page. So your Membership Options Page is a key element of your site. It serves as the focal point of your s2Member installation.

Understanding this, it becomes important for s2Member to provide information about what the User/Member was attempting to access ( before they were redirected to the Membership Options Page ). This is where s2Member's MOP Vars come in ( i.e. Membership Options Page Variables ). Whenever s2Member redirects a User/Member to your Membership Options Page, it will include these important MOP Variables in the query string of the URL. These Variables can be used to provide more informative messages; or even to provide a different set of Membership Options ( i.e. Payment Buttons ), based on what a User/Member was attempting to access.
* Further details available in your Dashboard, under: s2Member -> API Scripting -> Membership Options Page Variables.



So here are some things I would check on.

1. After you're redirected to your Membership Options Page, what does the full URL ( including all query string variables ) look like? Does it provide you with any indication as to why you don't have access?

2. Are you really logged in so that s2Member can recognize your Access Level?
Please read this VERY important article that talks about the difference between links with the www. prefix, and without. viewtopic.php?f=36&t=1066 ( this gets a lot of people )

3. Are cookies actually being set in your browser? Is WordPress® recognizing you as a logged-in Member?
Here is one way to test. Pop this Shortcode into a Page:
Code: Select all
[s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LEVEL" /]


If nothing gives, please email me a
Dashboard login through this form and I'll have a look for you.

Re: Cannot get members to membership welcome page

PostPosted: March 21st, 2011, 8:27 am
by kiawah1
Jason-
Thanks for your help. The issue was that I had some links that did not match the way the site was originally setup. Once I corrected those, it is now working. Thanks so much!

Re: Cannot get members to membership welcome page

PostPosted: March 21st, 2011, 12:06 pm
by Cristián Lávaque
It's great that you solved the issue! Thanks for reporting back. :)

Can I ask you a favor? Would you go over to WordPress.org http://wordpress.org/extend/plugins/s2member/ and rank s2Member as well as report that your versions of WP and s2M are compatible? Thanks! ;)

Re: Cannot get members to membership welcome page

PostPosted: March 22nd, 2011, 11:25 am
by Gayatriom
I am suddenly having this issue, but only for free members.
My login welcome page redirects to the memership options page.

This is how it looks.
http://talentedtenthnetwork.com/subscri ... evel_req=0

Any thoughts?

Re: Cannot get members to membership welcome page

PostPosted: March 22nd, 2011, 11:28 am
by Gayatriom
its working.
had changed the http:// to www and so it messed everything up.

Re: Cannot get members to membership welcome page

PostPosted: March 22nd, 2011, 12:12 pm
by Cristián Lávaque
Glad you sorted it out. :)