Page 1 of 1

Login Redirecct Problem

PostPosted: April 15th, 2011, 7:51 am
by cspowers
Greetings,

I'm having problems with redirects after login. I've posted a full description of my problem on the WordpRess forums here:
http://wordpress.org/support/topic/bpsuffusions2member-login-redirect-madness?replies=3

The bottom line is that some component of my set up is forcing there to _always_ be a hidden redirect_to field in the login form to redirect to wp-admin. This is exactly what I _don't_ want to happen.

Is there any chance that S2Member is introducing this redirect_to field into the login form?

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 11:19 am
by fcp2011
What page do you have the s2 membership plugin directing to after login?

Second question, are you using your login to login or a dummy user to login?

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 11:25 am
by cspowers
Currently, I have the S2 Options to not set any redirect field. Both the Redirect page and the redirect fields in the S2 options are blank.

But I have tried using both of these fields and the redirect never works. It's like they are always ignored no matter what they are set to.

I saw a video on the S2 support site recently that talked about hidden redirect_to fields on a form overriding the S2 settings. But I'm not sure.

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 11:26 am
by fcp2011
What account do you use to login?

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 11:34 am
by Cristián Lávaque
Hi :)

s2Member's redirection after login is managed from WP Admin -> s2Member -> General Options -> Login Welcome Page -> Special Redirection URL. You seem to have checked that already. s2Member will not override a redirect_to field in the login form, that's the intended behaviour.

That redirection may be introduced by other plugins or the theme you're using. Try going to the default theme Twenty Ten and see if the redirection is still there. If it wasn't the theme, then start deactivating the other plugins one by one, checking the redirection after each, and see what causes it to change.

Once you located the source of the redirection, it'll be easier for you to handle it. You can also try adding this to the login page's URL: wp-login.php?redirect_to=/uri-to/the-page-you-want and see if that overrides the other redirection.

I hope that helps. :)

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 1:46 pm
by cspowers
Thanks Cristian,

It's good to hear confirmation that S2member will not override another redirect.

I will try eliminating plugins and themes as you suggested to see if I can isolate the culprit.

I suspect it's the suffusion theme, but this moring the suffusion theme author told me there's not way it could be his theme.

So it's still a Mystery. :)

Thanks for the help.

Re: Login Redirecct Problem

PostPosted: April 15th, 2011, 2:24 pm
by Cristián Lávaque
Cool. Let me know when you spot the one. :)