I have installed my Symfony project on another computer with the same specifications, and I receive the following error when I login with fosuserbundle:
Authentication request could not be processed due to a system problem.
I can't find anything of interest in the app/logs files. I run the app in dev mode. Cleared cache both manually and from the console. I setup the db with doctrine:database:create. It works to create a new user with fos:user:create
and it's successfully saved to the database.
I have no idea where to go from here.
Check to make sure your database is up to date. This fixed my issue when I received this error.
edit: spelling
In a deploy process usually it's an environment problem (assuming that the app works fine in a dev station). FOSUserBundle it's great but for some reason it doesn't show very well the problems behind it.
As the error message says: ".. could not be processed due to a system problem."
if cleaning the cache nor updating the schema works, I would recommend try to bypass FOSUserBundle (usually the issue is between your code/configuration and the server environment) and let your bundle with the default errorhandler and logger inform any problem.
in my case it was a driver problem. (install pdo)
to bypass it, the simplest way is to remove security to a controller_action in security.yml
then, if you access it, it should be able to log the issue and you should be able to fix it.
hope it helps
Make sure that your User entity implements the UserInterface
I had the same problem. I was able to build and populate the database with
php app/console doctrine:schema:update --force; php app/console doctrine:fixtures:load;
but the symfony app couldn't access the database.The problem was I'd set
database_host: 127.0.0.1
inparameters.yml
butmysql
was expecting me to connect throughlocalhost
. Updatingparameters.yml
fixed the problem. I'm still confused as to why the command line stuff worked...I was having the exact same issue. And the steps I took were the following:
I replaced where I had used single quotes(') with double quotes(") in my entity annotations for arguments to constraint methods
Example
This got replaced with
After doing this, I tried the authentication again and it worked!
You might have set a wrong password in your
parameters.yml
because of which it might not be able to connect to the DB. The above mentioned error occurs when the app is not able to connect to DB to check if the user is authentic. (I also faced the same error and this was my problem, hope it helps)