Certain users can't login

Permalink
I upgraded to 5.7.5.6 the other day.

Since I upgraded I have reports of several users who are unable to login.
I've tried multiple browsers. I've cleared the local cache and server cache. I've checked the banned IP table and they are not banned.

I'm able to login. I've been able to login as several other test users without issue. I can "Login as" the users who can't login without any issues.

However, when I try to login as these users, a new session is written (if I die in login script it works). But is then unwritten somewhere in the rendering (the 154th time it calls User() to be precise. )

If I check the "keep me logged in for 2 weeks" box, it works!!!

At a loss..

 
jackobean replied on at Permalink Reply
I just checked the php error_log (don't know why I didn't before?)

and see:
PHP Fatal error:  Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in [no act$
Stack trace:
#0 [internal function]: PDO->__sleep()
#1 [internal function]: session_write_close()
#2 {main}
  thrown in [no active file] on line 0
jero replied on at Permalink Reply
jero
That's clearly very odd. What's the difference between the successful user login and the failed one? Any attributes, group membership, permission?
Also what PHP version are you running?
jackobean replied on at Permalink Reply
They have the same permissions, same attributes, everything is the same as far as I can tell. I've searched and searched to fix this problem.

After many hours, I finally decided to delete the two users (who I know about) who were having the issue and recreate them, I reassigned their permissions and everything seems good to go.

I'm just worried there are more users out there who will run into this same issue or it will reoccur...
jackobean replied on at Permalink Reply
PHP Version : 5.4.43
jackobean replied on at Permalink Reply
I'm bumping this to see if anyone else has any thoughts. I've found this across multiple users. I've noticed all of them having issues are the ones assigned advanced permissions for a page or dashboard.

Still getting the following in my php error_log when a login redirects:

Stack trace:
#0 [internal function]: PDO->__sleep()
#1 [internal function]: session_write_close()
#2 {main}
  thrown in [no active file] on line 0
[18-Feb-2016 16:57:58 America/Denver] PHP Fatal error:  Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in [no active$
jackobean replied on at Permalink Reply
So I have searched all of the source files for a __sleep() function. I have error_logged at the beginning and end of each one to see if they are the ones causing the issues. I can not find the function throwing the error.

Anyone got any other ideas?
jmckee replied on at Permalink Reply
Ideas? No, I am not a developer. But I can confirm this bug. I actually posted the bug here:

https://www.concrete5.org/developers/bugs/5-7-5-6/site-becomes-unres...

Unfortunately there was no interest from the community..