Deploying Symfony2 app getting fosuserbundle errors

后端 未结 10 2133
北恋
北恋 2020-12-07 01:22

I have installed my Symfony project on another computer with the same specifications, and I receive the following error when I login with fosuserbundle:

Authe

10条回答
  •  忘掉有多难
    2020-12-07 01:51

    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

    access_control:
    { path: ^/SomeCRUD, role: IS_AUTHENTICATED_ANONYMOUSLY }
    

    then, if you access it, it should be able to log the issue and you should be able to fix it.

    hope it helps

提交回复
热议问题