Being redirected to the wrong page upon login

Hi all, I’ve got a bit of a head scratcher!

We’ve added a new member area to a clients site. On the development site everything is fine and working as expected, the two sites are exact mirrors (apart from the live site has an SSL). When you login using either the s2member login form or the standard WordPress one it redirects you to the membership options page, instead of the member login page.

It’s definitley using the membership options page as if I change that setting in s2member it changes the page I am getting redirected to. I’ve also tried using a custom redirect for my login welcome page and it makes no difference.

My set up is pretty simple, just 2 member levels and everyone is redirected to the same place. I didn’t move the dev site to live either, I set it up from scratch once the client was happy because the set up was so simple.

If I go direct to my login welcome page it loads fine, also if I try to go to wp-admin it redirects me to the login url too…

Any ideas??

Thanks :slight_smile:

I’m a bit baffled by this phrase: “the s2member login form.” s2Member doesn’t have its own login form; it just uses the regular WP form.

So I don’t know if that’s the cause of the problem. Otherwise, could it be something as simple as not changing all the URLs correctly in the move from the dev to the live site?

Hi Tim, its does, the widget that comes with pro…

I hope this helps - this was my work around solution that fixed it on my site (give it a try - mine seems to be working correctly with this fix):

For the site, I’m using the Free/Framework Version of S2Member - client isn’t ready to purchase the Pro package yet and that’s okay for now. (I don’t know if this is an issue with the Pro Version too - but if it is, maybe this work around could be a solution)

So here is what I did:

General Options for Plugin --> Under Login Welcome Page Tab:

Login Welcome Page: leave on (-- Select --)
Or, a Special Redirection URL?
…>> https://yourdomain.com/designatedpage/ (I named mine scooby-doo until I figured out which one was giving me issue … it ended up being named members when I found this work around)

– next I did this ----

Under Membership Options Page Tab:

Membership Options Page --> point at “members” page (fka scooby-doo)
Enable MOP (whatever setting you have - doesn’t seem to make a difference)

Now I know this seems silly, but it seemed like it was stuck in a loop back to the same spot. Yes, I had to use goofy names on the pages to sort it out (and then change them to what I wanted when I was done, but the few extra clicks to eliminate a client’s frustration was worth the extra time)

I’d like to know if there is a better solution - I stumbled into mine by trying different things and bashing around a bit. If someone has a better solution, please do share. Thanks

That’s not “a form.” It’s called the Pro Login Widget. When asking for help, it’s useful to be as precise as possible because the rest of us can’t see your site. You hadn’t even mentioned you were using the Pro version.

Here’s the KB article on that widget: https://s2member.com/kb-article/pro-login-widget/

If that doesn’t help, can you post what you have put in each field?

@jds: that workaround might be a good short-term fix, but it is very fragile because it’s going to mess up the MOP Vars.

I’d suggest investigating whether you have a plugin conflict, a .htaccess file issue, or just some other code that’s inserting a redirect.

I am looking into the possibilities, however, at the moment I’d like it to “just work” which it was not. I did not have anything else running in the background - this was the only thing loaded in to work on the latest version of WordPress at the time.

If the client decided they like the S2Member option and purchases the Pro download, I have a feeling some of the things that are not working the way I’d like to see them work would stop giving issues. I find the plugin interesting just the same