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
SP not playing nice with logout redirect.
Avatar
BOZ
Member
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2012 - 6:17 am

No matter what is used for a logout link (not just in forum links ) but such as the admin bar logout link or even custom menus links that supply a redirect url to logout something in the way SP hooks in overrides ALL logouts redirects and forces the page to the forum page, this is a problem. Any ideas what in SP is causing it and how to fix it core or filter function.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2012 - 7:09 am

not sure what you mean... the logout redirect is not just for sp logouts... it hooks into the logout process...

if you dont want the logout redirect, just put in an empty string there...

Avatar
BOZ
Member
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2012 - 7:49 am

Mr Papa said

not sure what you mean... the logout redirect is not just for sp logouts... it hooks into the logout process...

if you dont want the logout redirect, just put in an empty string there...

 

I am saying, that no matter what redirect is handed to wp-login.php NOT JUST SP logout links (when SP is active) the logout redirect string is hijacked by SP and is ignored and redirects to forum, for example:

 

Admin bar link: http://www.musheen.com/wp/wp-l.....ion=logout

Result location: http://www.musheen.com/forum

Result location: http://www.musheen.com/forum

Result location: http://www.musheen.com/forum

Should be: http://www.musheen.com/shop

 

Somewhere SP is hijacking logout redirect, it shouldn't be

If you deactivate SP plugin the results are normal and correct.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2012 - 8:22 pm

I know what you said... and yes, I said that is what happens... SP hooks into the wp logout process and adds a redirect...

clear the logout redirect url on forum - components - login and registration...

In 5.0, it would be easy to turn off the logout redirect... and add your logout button in your sp theme that only redirects for that forum page...

the vast majority of simple press users dont let their users anywhere near the admin so most want the wp stuff out complete and redirects be global... you are the first one that did not want a global redirect... but as I said, easily disabled or overcome in the sp theme...

Avatar
BOZ
Member
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2012 - 2:41 am

I am not talking about links with in SP, I am talking about theme links OUTSIDE of SP, every logout on the whole site is overtaken by SP, I am not talking about any normal functionality of SP.

 

I asked fairly simply what SP filter or core call sets every logout redirect on the whole site and even within the functionality of OTHER PLUGINS and theme elements to redirect to to the forum so that this behavior can be overriden by theme elements and plugins  OUTSIDE of  SP.

 

You said it would be easy, Im just asking what is the easy way to stop the global over ride so that SP logout functions normal, and other plugins still function normal instead of logout redirect being hijacked by SP globally.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 5, 2012 - 4:39 am
  1. As Steve stated, you can completely remove the SP logout redirect option as a first choice.
  2. SP uses the WP action hook 'wp_logout' to apply the setting in the SP logout redirect option if set.
  3. SP also provides a filter - 'sph_logout_redirect' - which has the $_REQUEST['redirect_to'] as the parameter in line with what WP expects to be returned.

You were gong to come back to me on the database questions you opened up. I was looking forward to that.

andy-signature.png
YELLOW
SWORDFISH
Avatar
eddierosenthal
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2012 - 5:06 pm

yeah i was having the same problem, but with this topic conversation i understood partly what you sd, and was able to solve the problem. The logout redirect was pointing at a file that was no longer present, and had been permanently removed, and i had removed a page called 'forum'. For some reason I still can not fathom, that page persisted, past clearing cache, past deleting permanently etc. I then created a new page 'forums' for setting the wp-integration for THAT page, and then i started seeing the logout button being redirected to the old 'forum' page, with the 404 msg...

Once i realized there was a component set up for the redirect, thanks you drs. etal at sp - i was able to easily fix the problem, but not before sifting through wordpress code to see if there was another way to solve the issue...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 18, 2012 - 5:23 pm

Glad you found it and sorted it. Its worth getting familiar with all the options and setings...

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625