Welcome page redirects to Membership options page

Hi,

I made a test as a user level 1, and instead of being redirected to login welcome page, it redirects to Membership options page.

I have set my login welcome page properly in General option, I don’t have https.

I also have tested it with all plugins disactivated and still the same.

url to log in : http://www.contentologue.com/formation-blog-professionnel/wp-login

login : test
pw : test

Thank you for your help,

Sophie

You have probably protected the Login Welcome Page. You should leave that unprotected; s2Member will protect it automatically.

I don’t know how could I have done this, on the editor page, there is no module for protecting the page, it’s written “this is your welcome page”, and I didn’t use the section for protecting page by ID. Are they other way the page could be protected ?
I’m usng s2member on another website, and I don’t have this problem.

I went to check the section “Page access Restrictions”, and it was filled automatically for the pages. Included welcome page (is that normal ? I didn’t fill this myself) so I have deleted it. But it is still the same, the welcome page redirects to memebership options page.

No, it isn’t normal for the Pages to be restricted without user intervention. :wink:

Could you post the URL that is being displayed when you are re-directed to the Membership Options Page from the Login Welcome Page? (You can post just the part that follows the ? if you’d prefer.)

You don’t have any other plugins that are performing redirects or restricting access to content, do you? (I have to ask, I’ve seen sites with 3 membership plugins installed and active…)

1 Like

I swear i didn’t use the “page restrictions section”, just discovered now that it was filled automatically when you set the level on editor page (I always use only the editor module : choose between all levels…) Do you have an idea how could that happened ? I would like to prevent this to happen again !

I have an other plugin for a forum. THis is the first thing I checked, I was so sure it was that. I desactivated it : nothing changed. As a said, I desactived all plugins and nothing changed neither.

Here is the url :

_s2member_vars=sys…level…0…page…185…L2Zvcm1hdGlvbi1ibG9nLXByb2Zlc3Npb25uZWwvYmllbnZlbnVlLw%3D%3D&_s2member_sig=1490879872-c0842a2b6df67e524a2cab910e032331

My guess is that you protected the page on the edit screen before you chose to make it the Login Welcome Page. As you say, protecting it there also make it show up on the Page Access Restrictions list.

This is what I suggest you do. First, set a different page as the Login Welcome Page (LWP). Remember to save. (This is just temporary.)

Now go to the edit screen for the page that you really want to be the LWP, and remove all protections. Hit Update. Check that it no longer appears on the Page Access Restrictions list.

Now set the LWP back to the page that you really want to use, and save. It should work as expected now!

Still not working.

I tried this, like you said : created a new page, set it as login page, then I checked the login welcome page, there was no restriction.

I tried to log in with the new temporary login welcome page :

_s2member_vars=sys…level…0…page…1398…L2Zvcm1hdGlvbi1ibG9nLXByb2Zlc3Npb25uZWwvYmllbnZlbnVlLXRlbXBvcmFpcmUv&_s2member_sig=1490885018-6fe8691e8f8a39e65452e4b0f3419829

I set my first login welcome page back :

_s2member_vars=sys…level…0…page…185…L2Zvcm1hdGlvbi1ibG9nLXByb2Zlc3Npb25uZWwvYmllbnZlbnVlLw%3D%3D&_s2member_sig=1490885187-4b895d9e6c4bd8ef5bc40a74062e590e

Then I suspect that you are protecting the page accidentally by another method, such as tag or URI.

If you’re not sure, I’d go through and remove ALL protections, and then see if it works as it should.

Ok, I did this :

Removed all pages, articles, category, tags, and even alternative views protections. Allowed unlimited IPs.

Still the same :

_s2member_vars=sys…level…0…page…185…L2Zvcm1hdGlvbi1ibG9nLXByb2Zlc3Npb25uZWwvYmllbnZlbnVlLw%3D%3D&_s2member_sig=1490886101-00f23fe93cbc6bbe713e2bc4c0167c94

Are you running a security or caching plugin?

No (i’m still building the blog), but I tried now to desactivated all plugins again, and still the same.

Can you try switching to the 2017 theme? Do you have some special rules in your .htaccess file?

Still the same with 2017 theme.

My htaccess :

BEGIN s2Member GZIP exclusions

RewriteEngine On RewriteBase /formation-blog-professionnel/ RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR] RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1 RewriteRule .* - [E=no-gzip:1] # END s2Member GZIP exclusions

BEGIN WordPress

RewriteEngine On RewriteBase /formation-blog-professionnel/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /formation-blog-professionnel/index.php [L]

END WordPress

Are you using http or https, and with www or without www in the URL consistently (e.g. on WP’s Settings -> General page)?

I desactivated S2member and reactivated it, IT WORKS NOW.

What happened ??? I hope it won’t happen again !

I tried with all protections back, still working :slight_smile:

Thank you for your time.

1 Like

Sometimes we’ll never know the answer to that question. Glad it’s working now.