Won't redirect to membership options page

Hi, my question is what happens if someone tries to go to a restricted area (I restrict them using tags).

It’s supposed to redirect to my membership options page:

https://www.carcrashkit.com/my-membership-options-page/

But instead, this is what happens:

https://www.carcrashkit.com/membership-signup/?_s2member_vars=ptag..level..1..page..153..L2IxLWJhZC1vZmZlci8%3D&_s2member_sig=1569982243-bb300b9b0e9ecbd4fd43c0cb8520f5c7

You didn’t post a direct link to a protected page, but on the second link you provided I’m seeing mixed content warnings. Fix that first and see what happens. You probably need that JS served over HTTPS for things to work.

Another plugin might be responsible too, so it’s best to deactivate ALL of them except s2, get it working, and then add them back one at a time to see which one broke things.

Big WP hint: make sure your urls in WP settings -> general are https links.

Then correct any image links in your pages individually or use the wp cli over ssh after a db backup if your host gives you access.

1 Like

Okay, well, getting rid of the logo did get rid of the errors. It looks like maybe our developer switched us to https, too, so I updated that today.

Here is one of the pages behind the membership wall.

https://www.carcrashkit.com/cs1-calling-supervisor/

I’m still getting the weird redirect thing.

https://www.carcrashkit.com/membership-signup/?_s2member_vars=ptag..level..1..page..208..L2IzLWJhZC1vZmZlci1hZnRlci1jb21wcy8%3D&_s2member_sig=1570031548-79b4ee499d3c131d38fccd156b200603

Hi Mike.

Those variables you see after the question mark in the URL, are the Membership Options Page variables. If that’s the page s2Member is redirecting the person to, that’s the page you set as the Membership Options Page in s2…

Please double-check your setting for it: WP Admin > s2Member > General > Membership Options Page

:slight_smile:

1 Like

Cristian, merci, after playing around with that, I was able to get it to work. Maybe the weird issue occurred because the page I had redirected it to didn’t have anything on it? Anyway, it is doing what I need it to now.

1 Like

Great. :slight_smile: