Page 1 of 1

Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 12:24 pm
by kcgagne
Version 110815

Hi. Yes, I watched the video. Yes, my wp-login page has the hidden redirect to wp-admin, but it is the wp program doing that. The Login/Registration Design changes (header, footer, etc) all appear.
http://womeninbiznetwork.com/wp-login.php

I spent a large amount of time yesterday deactivating and reactivating plugins (and there are a lot). Once I deactivated the User Role Editor, the Login Welcome Page seemed to work. But since I need the functionality in the User Role Editor, I reactivated it.

Oddly enough, once I used the plugin to change a user role and deactivated the plugin again, logging in with that user still brings me to the admin panel.

Any suggestions? I need them to play nice. :)

Thanks!

Re: Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 2:09 pm
by ChuckNorris

Re: Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 2:18 pm
by kcgagne
I did. No luck. :(

Re: Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 2:37 pm
by ChuckNorris
Try updating permalinks?

Re: Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 3:05 pm
by kcgagne
Not sure what you mean by updating permalinks, but I changed them, put them back and saved.

I swear every time I touch this is does something different. I now have User Role Editor activated and the admin panel comes up on login ONLY when I have "edit posts" checked. If I uncheck it, then the welcome login page works again.

At least I'm narrowing down the problem.

Re: Another Login Welcome Page Problem

PostPosted: September 2nd, 2011, 10:06 pm
by Cristián Lávaque
I know that WordPress will redirect after login to the dashboard when he has certain capabilities. This is probably what's happening.

The only way I know to override this is to add ?redirect_to=/the-page-you-want at the end of the wp-login.php link. E.g. /wp-login.php?redirect_to=/

I hope this helps. :)

Re: Another Login Welcome Page Problem

PostPosted: September 3rd, 2011, 7:33 am
by kcgagne
Thank you.

I don't want to modify Core WP code though. Why aren't the redirect plugins working, I wonder.

Re: Another Login Welcome Page Problem

PostPosted: September 3rd, 2011, 1:15 pm
by Cristián Lávaque
They probably aren't working because you gave those users a capability that WordPress considers a reason to show the dashboard to them after logging in.

You can add the redirection in the link to the Login page editing the template or navigation, no need to edit source files.

Re: Another Login Welcome Page Problem

PostPosted: September 9th, 2011, 6:13 pm
by kcgagne
Another situation.... Don't know if it was upgrading my version of S2Member or not, but now I can't get S2Member Member Login Page to allow ANY wp-admin functions to work. I can't update my WP profile. I can't access the Connections plugin directory. Any link to any wp-admin/ file is redirected to the Member Login Page.

This is new. I could access these things a few weeks ago without the redirect.

Re: Another Login Welcome Page Problem

PostPosted: September 10th, 2011, 2:14 am
by Cristián Lávaque
Do you have a backup from before you did the changes that caused this behavior? If yes, you could back to it. Or d you remember what you changed and undo it?

Re: Another Login Welcome Page Problem

PostPosted: September 10th, 2011, 3:42 pm
by kcgagne
I've undone everything I can think of that I did. Reset URE and S2 to previous versions, disabled other plugins, etc. Unless I deactivate S2 altogether, I can't get access to the wp-admin pages unless WP deems necessary (administrator or edit post capabilities). I still need basic members to be able to update their profile and access the Connections plugin.

Still stuck! :(

I have no problem sharing access if you are willing to help me debug.

Re: Another Login Welcome Page Problem

PostPosted: September 13th, 2011, 3:07 am
by Cristián Lávaque
You can send the dashboard login using this private form: http://s2member.com/contact

As a test, could you create a new dir in your server, install a clean WordPress with s2member. and see if you still have the problem, please.

Re: Another Login Welcome Page Problem

PostPosted: September 15th, 2011, 2:59 pm
by kcgagne
Login info sent.

Clean WP install with S2member complete and no redirect issues.

So.... I deactivated every plugin we have installed and just reactived S2member. Redirect still won't allow wp-admin access. How can I reset S2member without resetting my members? :(

Re: Another Login Welcome Page Problem

PostPosted: September 16th, 2011, 4:07 pm
by Jason Caldwell
Thanks for the heads up on this thread Cristián.
~ and thanks for writing in kcgagne.

What you're describing, sounds like a conflict with the edit_posts Capability in WordPress. s2Member redirects all Users that do NOT have the edit_posts Capability to your Login Welcome Page for s2Member. s2Member won't override the redirect_to variable though ...

unless ... if you've configured s2Member to redirect non-administrative Users away from all /wp-admin/ areas, it will in certain cases ( i.e. non-adminstrative Users, are Users without the edit_posts Capability ).

See screenshot below.

SNAG-0000.png

If you need to modify this behavior in more creative ways to meet your needs, I would suggest taking a look at the Hooks/Filters available in these two source files for s2Member.
Code: Select all
/s2member/includes/classes/login-redirects.inc.php
/s2member/includes/classes/admin-lockouts.inc.php

Re: Another Login Welcome Page Problem

PostPosted: September 16th, 2011, 4:58 pm
by kcgagne
I love you! LOL!

Re: Another Login Welcome Page Problem

PostPosted: September 16th, 2011, 5:01 pm
by kcgagne
Now I have to wonder: Did someone change that one setting on me? Or did the latest update for S2Member do something to protect the wp-admin area? Because I SWEAR I didn't have this problem before.

Re: Another Login Welcome Page Problem

PostPosted: September 16th, 2011, 7:52 pm
by Jason Caldwell
You're VERY welcome. Hmm, no nothing changed on this in the latest releases. It's always defaulted to "the WordPress way" ( i.e. it's off by default ). Maybe just a slip of the mouse wheel.

Re: Another Login Welcome Page Problem

PostPosted: September 16th, 2011, 7:53 pm
by Jason Caldwell
You're VERY welcome. Hmm, no nothing changed on this in the latest releases. It's always defaulted to "the WordPress way" ( i.e. it's off by default ). Maybe just a slip of the mouse wheel.