部署Symfony2应用程序出现fosuserbundle错误 [英] Deploying Symfony2 app getting fosuserbundle errors
问题描述
我已经在另一台具有相同规格的计算机上安装了Symfony项目,并且当我使用fosuserbundle登录时收到以下错误:
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.
我在app/logs文件中找不到任何感兴趣的东西.我在开发人员模式下运行该应用程序.手动和从控制台清除缓存.我使用doctrine:database:create设置了数据库.它可以使用fos:user:create
创建一个新用户,并将其成功保存到数据库中.
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.
php app/console doctrine:schema:update --dump-sql
拼写
这篇关于部署Symfony2应用程序出现fosuserbundle错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!