Login Redirection not working, sends to Dashboard

Hi.

I have read all I can find about this in the Forums and I just can’t resolve this.
When a Member logs in, instead of being redirected to the Welcome Page, they are sent to the WP Dashboard.
I have a Menu Item labelled Member Login that links to http://www.jetskifishingmob.com/wp-login.php
I assume that is correct right?
I have the Login/Welcome page set to the Welcome page.
I tried to having the Special Redirection URL as http://www.jetskifishingmob.com/welcome/, but that didn’t work.
Helpppppppp :frowning:
I just can’t find the problem.

Regards
Iain

In s2Member->General Settings->Member Profile Modifications what have you set for Redirect Members away from the Default Profile Panel?

I have tried both Yes and No

OK. I suspect that you have a theme or plugin conflict. To test, you should clear any caches, change to a default theme and deactivate all plugins except s2Member. Then see if the problem persists.

Yeah I thought you might say that.
I was forced into making the website live, so that may be difficult.
Something that may be a clue though is that instead of directing members to login at http://www.jetskifishingmob.com/wp-login.php, I now send them to a page http://www.jetskifishingmob.com/welcome/login/, and inserted the bbpress login shortcode.
Now when someone logs in using that, they stay on the same page and are not directed to the Dashboard.
I would still like them to be directed to the Welcome page though.

Don’t you have a clone site to test on?

1 Like

No I don’t, but I guess I could set one up.
I had a Coming Soon plugin installed that stopped people viewing the site.

That’s what I’d suggest. Then you can test every modification you make there before doing it to the live site. You don’t even need to do it on your host either: you can use something like ServerPress or, if you use a Linux operating system, then it’s all native anyway.

1 Like

OK, so I finally made a copy of the website.
I disabled all the plug-in’s and switched to a default WordPress Theme and the problem still exists.
I’ve tried an additional plug-in called “Peter’s Login Redirect” and made everyone except admin redirect to a Welcome Page, but I still get directed to the Dashboard.
I’m at a loss and really need to find out how to resolve this.
Does anyone have any suggestions?

Well, I can tell you that the Peter’s Login Redirect plugin won’t help at this stage, and may actually make things worse by causing a redirect loop.

What role are you logging in as?

I’ve tried it with and without Peter’s Login Redirect.
I’m logging in as a Free Subscriber/Participant

In s2Member->General Settings->Member Profile Modifications check that this is set to Redirect Members away from the Default Profile Panel, turn off all other plugins and use the 2016 theme.

Then can you try logging in and out with an s2Member role?

Yes, the settings are as you specified.
The default registration level when you use http://www.yourdomain.com/wp-login.php?action=register is such that you are registered as Free Subscriber.
I am still being directed to the Dashboard.

Yes, I know what the default is. But you described your free subscriber as Free Subscriber/Participant, so I wanted to check that we weren’t at cross purposes.

Have you created a Membership Options Page?

What do you call a Membership Options Page?
One with the Shortcode [s2Member-Profile /]?
If so, yes.

No, that’s not it, and it sounds like that’s your problem.

Read the Getting Started section in s2Member. Then go to General Options -> Membership Options Page

So as it turns out, I did have a Membership Options page, I just didn’t call it the same as in the Getting Started Instructions.
I had setup the options in General Settings to redirect to my chosen page, but of course it wasn’t doing that.
So just to go by the letter of the law in Getting Started, I created two blank pages and titled them, My Login Welcome Page, and My Membership Options Page, and then changed the appropriate settings to use those two pages instead of the ones I originally created.
Unfortunately I still get directed to the Dashboard when I login as a Free User :frowning:

Hmm, how did you create your cloned site? If it’s actually a clone, then I’m wondering whether something about the user roles has got corrupted. Try resetting them with the big button at the bottom of in General Options -> Membership Levels/Labels

I used a plug-in called BackupBuddy to migrate the website to a folder on the live website.

I have reset the Roles, but I am still being directed to the Dashboard.

Would you like to take a look yourself?
I am more than happy to supply both Admin and Free Subscriber login credentials.

I have just taken a look at your live site. I see it’s using the Enfold theme. That’s notorious for causing problems like this, even if you then switch to another theme, and especially if you’ve used its page builder tool.

Is it possible for you to create an entirely new, blank installation on your test bed, and just install s2Member on that?