Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Extra redirect during login process
Avatar
Kelly Brady
Member
sp_UserOfflineSmall Offline
Sep 20, 2016 - 3:03 pm

hello - I'm running Simplepress, as well the Memberpress membership plugin and Buddypress. I have the Buddypress integration plugin for Simplepress installed.  I have Memberpress handling all aspects of membership enrollment/signup/etc.

I have an odd issue where when a user logs in, instead of going to the page defined in Memberpress for "after login", it first gets redirected to a blank login page, and after a second then goes to the proper page as defined by Memberpress.

I'm wondering if it is possible that Simplepress is forcing a redirect even though those fields in options are blank.

Here is what happens step-by-step:

1. Upon clicking the "Login" menu item you are taken to:
http://restorativenation.com/l.....=index.php

2. After submitting credentials, goes to:
http://restorativenation.net/login/ (a blank page; this is the step I'd like to eliminate)

3. After a second or two, goes to:
restorativenation.com/actvity

Memberpress support logged into the site and can confirm the issue lies outside of their plugin. they believe that either the theme or another plugin is adding the weird extra redirect by appending the "?redirect_to=index,php"

In Simplepress Options, Login/registration redirects, I have nothing in the fields "Login redirect", "logout redirect" & "registration redirect". Again, my goal is for Memberpress to handle registration, login/logout, member email etc.

Versions of everything are:

Wordpress 4.6.1; Simplepress 1.2.8, SP Buddypress Plugin 1.3, Buddypress 2.6.2, Memberpress 1.2.8

Thanks,

Kelly

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 20, 2016 - 3:18 pm

Certainly trying things here on a test site does not suggest it is an SP issue nor does looking at the actual code at that point,. If empty we would just gracefully die from the process.

Come to that, the url at your #2 above is highly suspect. We do not have such a url in our own rewrite rules and in reality it looks a bit bogus. Have you ever had any other third party login plugin installed that might have left some things hanging around in the codebase?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kelly Brady
Member
sp_UserOfflineSmall Offline
Sep 20, 2016 - 11:23 pm

Ok, there is a typo in line #2; it gives a URL of .net - it does not switch to the .net in #2.

I believe the problem may originate in a custom function that makes the upper right "Login" menu dynamic (changes wording to 'Logout' if user is logged in).

Removing this function and replacing the menu item with a dumb/non-dynamic menu item resolves the problem at login (but not if the menu item is clicked on once logged in).

In any case, I'm not going to purse this further. thanks for your help!

Kelly

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 21, 2016 - 4:29 am

So it sounds like you are not referring to the forum 'login/logout' button that behaves the same...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kelly Brady
Member
sp_UserOfflineSmall Offline
Sep 21, 2016 - 1:55 pm

No, this issue was with initial logging in of the user in Wordpress (via Memberpress).  However, what I was trying to resolve was any chance that Simplepress was "taking over" the login process in some way.  I wanted to insure that I didn't have SP configured in a way that was counter to logging in thru WP/Memberpress.

I think the issue was some custom code that adds a dynamic login/logout button to the secondary menu.  When I remove that code, I don't get the brief flash of a page (#2 in my list).  However, if I do click on the static menu to go bak to the login page it does do the stutter (that is not a normal user behavior so I am not worried about it).

So with this additional testing and tweaking it doesn't seem to involve Simplepress, just wanted to make sure Simplepress isn't set to "take over" the login process or redirect users on log in.  In my situation users go to a general info page, not directly to the forums.  The forums are a major part of the site, but not the place we want user's going directly upon login.

thanks again for your help

Kelly

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 21, 2016 - 3:00 pm

Understood and - you're welcome.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625