You cannot serialize or unserialize PDO instances
- MakotOnoda
- Member | 3
Good Morning,
I've been trying to get a login for some time now.
First one dan wanted the other one not now I unfortunately get a “You cannot
serialize or unserialize PDO instances” error.
In this regard, I've already looked at the old post https://forum.nette.org/…do-instances me, but unfortunately without success, unfortunately, the post is already 3 years old.
Now I hope you can help me here.
Application info:
This is my motto I fall back on:
Now I always get the above error …
This is currently happening via XAMPP Local
Error
Last edited by MakotOnoda (2018-07-20 10:15)
- Ondřej Kubíček
- Member | 494
at first glance it looks good
the best way is to debug and look what happen inside of login function
- Ondřej Kubíček
- Member | 494
btw why do you twice check the correctness of your password? in
signInFormSucceeded
then in authenticate
function
- MakotOnoda
- Member | 3
The signInForm Succeeded
function was finished at first, after
that I first came up to the class ‘UserManager’
Even if I shorten the code still PDO.
Last edited by MakotOnoda (2018-07-20 12:39)
- MakotOnoda
- Member | 3
Sorry I was just stupid and blind -.-
I found the mistake, he was in UserManager
The Colum_ID was previously written in lower case than “id” but I have an “ID” in the database ..
Last edited by MakotOnoda (2018-07-20 13:18)