Page 1 of 1

Major Login Probs

PostPosted: March 12th, 2011, 3:57 pm
by elastigirl
I'm using wordpress 3.1 buddypress 1.2.8 and s2member 3.5.2

I haven't setup any paid level buttons yet as I'm still testing. I allow level 0 - free level and here's what's happening:

I click register and fill in the form I get response to say I will get an email but none comes (I have that issue mentioned in another post so that's separate)

So then I try and login anyway (cos I know the password) and nothing happens? I logged in as admin, checked the user and it was at role: subscriber which seemed ok, but I updated to role level1 s2 member just to test and still nothing when I go to login.. no errors it just redirects me to the membership options page like it would if was a normal non member. I've tried logging in from top bar and from side widget..nothing..

Any ideas? many thanks.

Re: Major Login Probs

PostPosted: March 12th, 2011, 9:32 pm
by Cristián Lávaque
Go to your login page, view the source code and search for a hidden input field that has a redirection. I may start like this:

Code: Select all
<input type="hidden" name="redirect_to"

Re: Major Login Probs

PostPosted: March 13th, 2011, 4:42 am
by elastigirl
There's just one hidden input field which is this one

<input type="hidden" name="redirect_to" value="http://members.mydomain.com/wp-admin/" />


When I login with admin username it's fine, just a normal user has the problem?

tks

Re: Major Login Probs

PostPosted: March 13th, 2011, 11:41 am
by Cristián Lávaque
That redirection is preventing s2Member's from working, s2Member respects that field. You'll have to remove it in order for your s2Member redirection to work as you want.

If I remember correctly, an admin won't be redirected as the other users will. Try doing your tests with another non-admin account.

Re: Major Login Probs

PostPosted: March 13th, 2011, 1:22 pm
by elastigirl
so do I just remove that line completely from the login page?

Re: Major Login Probs

PostPosted: March 13th, 2011, 2:11 pm
by Cristián Lávaque
Yeah. Try it and let me know if it solved your problem.

Re: Major Login Probs

PostPosted: March 13th, 2011, 2:15 pm
by elastigirl
great thanks, will do :)