PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Another Login Welcome Page Problem

s2Member Plugin. A Membership plugin for WordPress®.

Another Login Welcome Page Problem

Postby kcgagne » September 2nd, 2011, 12:24 pm

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!
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby ChuckNorris » September 2nd, 2011, 2:09 pm

User avatar
ChuckNorris
Registered User
Registered User
 
Posts: 47
Joined: September 20, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 2nd, 2011, 2:18 pm

I did. No luck. :(
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby ChuckNorris » September 2nd, 2011, 2:37 pm

Try updating permalinks?
User avatar
ChuckNorris
Registered User
Registered User
 
Posts: 47
Joined: September 20, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 2nd, 2011, 3:05 pm

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.
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Cristián Lávaque » September 2nd, 2011, 10:06 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 3rd, 2011, 7:33 am

Thank you.

I don't want to modify Core WP code though. Why aren't the redirect plugins working, I wonder.
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Cristián Lávaque » September 3rd, 2011, 1:15 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 9th, 2011, 6:13 pm

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.
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Cristián Lávaque » September 10th, 2011, 2:14 am

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?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 10th, 2011, 3:42 pm

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.
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Cristián Lávaque » September 13th, 2011, 3:07 am

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Another Login Welcome Page Problem

Postby kcgagne » September 15th, 2011, 2:59 pm

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? :(
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Jason Caldwell » September 16th, 2011, 4:07 pm

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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Another Login Welcome Page Problem

Postby kcgagne » September 16th, 2011, 4:58 pm

I love you! LOL!
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby kcgagne » September 16th, 2011, 5:01 pm

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.
User avatar
kcgagne
Registered User
Registered User
 
Posts: 13
Joined: June 16, 2011

Re: Another Login Welcome Page Problem

Postby Jason Caldwell » September 16th, 2011, 7:52 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Another Login Welcome Page Problem

Postby Jason Caldwell » September 16th, 2011, 7:53 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron