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
Login Trouble
Avatar
Nexent1
Member
Free Members
sp_UserOfflineSmall Offline
Dec 10, 2013 - 4:32 pm

We suddenly started to have some trouble when trying to login to SP.  We do not believe we changed anything on the site to cause this (I know you have heard that one before).  The only thing we did around the same time this started was check the PHP version in our Plesk panel and we hit OK instead of Cancel on the same version we are running.  Nothing happened when we did this, but it is the only possible change we made.

Now we can only login to SP if we first login to the WP user.  If we try to login directly to the SP user, we are redirected to a link to login to the WP user account and this fails unless to go directly to the WP login directly.

If we login to the WP user, SP works fine.

I suspect this may be a WP issue and not a SP issue, but I am hoping someone had a few ideas.  Last time we has something similar we needed to add something to the htaccess file.  This seems to be different.

Hopefully someone understands what has occurred here?

Regards,

Robert

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 10, 2013 - 5:08 pm

The problem I have in answering this is that there is no such thing as an 'SP user'. There are just... users. What you call a WP user and an SP user are one and the same thing. The slide down login form that we offer within SP just logs you into the site - or into your WordPress system - and calls exactly the same code routine as the standard, WP login form.

The only reason in code for being redirected from the SP login form to the standard WP login form is if the credentials being entered fail.

That is unless you have yet another, third party login plugin active which may change things.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nexent1
Member
Free Members
sp_UserOfflineSmall Offline
Dec 10, 2013 - 5:33 pm

The only reason I referred to them as SP User and WP User is I read another post that seemed to imply they are different.  So this issue must be a redirect issue.  I notice when I try to login to SP it will redirect me to  http://www.mydomain.com/wp-login.php but it will fail.  We do not have any other third party login plugin active or installed.

Regards,

Robert

 

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 10, 2013 - 5:52 pm

And that is the correct login url.

What happens if you paste that url into the browser and run that page?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nexent1
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2013 - 9:22 am

 

When you login here you will also be able to access the forum, but it does not work if you start directly on the forum page.

 

ForumLogin1.jpgImage Enlarger

If I past the URL in to another page it brings up the standard WordPress login page which works fine.

WPLogin1.jpgImage Enlarger 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2013 - 11:46 am

i am sorry but I don't really understand what you are saying with your first comment... can you explain in more detail?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nexent1
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2013 - 12:04 pm

Sorry,  If you login to the WordPress loing page first you can access the forum and it works fine.  More specifically if you copy the link to another URL it will display the WordPress login.  If you login to the WordPress login and then go to the Forum page it will display and work correctly.

However, if you try to do it from within the User Forum the login will hang and eventually just display a blank page.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2013 - 12:34 pm

OK. I think I got it. At the top I read it that you were being redirected to some link from the SP login form.

So it just hangs and then blanks? Sounds pretty bizarre. What about on the Components > Login and Registration admin panel... have you set up some sort of post-login redirect that might be failing by any chance?

And of not - is anything relevant showing up in the error log?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nexent1
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2013 - 1:57 pm

It seems to get lost?

There is no post login redirect.

The error log has 3 notices but no errors or warnings.  The notices are shown below.

 

 

December 10, 2013 4:16 pm 24 php file: s/simple-press/sp-api/sp-api-auths.php line: 111 function: sp_rebuild_user_auths Notice | Undefined offset:  46
December 10, 2013 4:32 pm 10 php file: s/simple-press/sp-startup/site/credentials/sp-credentials.php line: 46 function: sp_logout_redirect Notice | Undefined index:  bypasslogout
December 11, 2013 10:00 am 34 php file: s/simple-press/sp-startup/forum/sp-forum-support-functions.php line: 548 function: sp_get_metakeywords Notice | Undefined index:  sfkeywords

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2013 - 3:20 pm

They're all harmless...

So - I am going to have to throw this open to colleagues here to see if anyone has any ideas but so far I have to say we have covered the known possibilities and this seems to be a unique issue. It is just a simple form modelled on the WP login form that calls the same code as the WP form...

I guess I should ask of anything  else is failing to work as it should...?

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626