You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have come upon a very strange bug. When i register to the site and i complete the registration i'm redirected to the url /register/check-email (i have confirmation enabled) which now throws the error:
friendsofsymfony/user-bundle/FOS/UserBundle/Controller/RegistrationController.php at line 75
The user with email "%s" does not exist
I have tried to debug the code at that spot and it seems that something is happening with the session. If i refresh the page then there is no error, the email is retrieved from the session successfully. Only the first time the session value returns an empty string "".
You could reproduce this error easily.
When i turn to file based sessions then registration succeeds with no error. When i turn to pdo sessions then it happens again.
I have considered posting this to symfony, but after hours of trying to reproduce the error with some session code i created from scratch (without using FOSUserBundle) i couldn't reproduce anything similar. So i suppose it has something to do with FOSUserBundle.
Thank you
The text was updated successfully, but these errors were encountered:
Ok, thank you for your response, since yesterday i have checked all bug reports that are similar. I have managed to reproduce this session error regardless of FOSUserBundle. I have submited it as a bug in symfony symfony/symfony#6886
I have been using FOSUserBundle with success until i followed the guide http://symfony.com/doc/current/cookbook/configuration/pdo_session_storage.html and changed my sessions from default file based to pdo sessions.
I have come upon a very strange bug. When i register to the site and i complete the registration i'm redirected to the url /register/check-email (i have confirmation enabled) which now throws the error:
friendsofsymfony/user-bundle/FOS/UserBundle/Controller/RegistrationController.php at line 75
The user with email "%s" does not exist
I have tried to debug the code at that spot and it seems that something is happening with the session. If i refresh the page then there is no error, the email is retrieved from the session successfully. Only the first time the session value returns an empty string "".
You could reproduce this error easily.
When i turn to file based sessions then registration succeeds with no error. When i turn to pdo sessions then it happens again.
I have considered posting this to symfony, but after hours of trying to reproduce the error with some session code i created from scratch (without using FOSUserBundle) i couldn't reproduce anything similar. So i suppose it has something to do with FOSUserBundle.
Thank you
The text was updated successfully, but these errors were encountered: