Deploying Symfony2 app getting fosuserbundle errors

后端 未结 10 2114
北恋
北恋 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:39

    I was having the exact same issue. And the steps I took were the following:

    1. I cleared the cache
    2. I brought down all my db tables and recreated them again via my migrations
    3. I replaced where I had used single quotes(') with double quotes(") in my entity annotations for arguments to constraint methods

      Example

      //src/SomeBundle/Model/user.php
      
      

      This got replaced with

      
      

    After doing this, I tried the authentication again and it worked!

提交回复
热议问题