未知的记录属性/相关组件“权限”在“sfGuardUser”上
这里还有几个与此相关的其他问题,但它们已经过时了,恕我直言,尚未得到令人满意的答案。
我收到此错误 - “未知记录属性/相关组件 “sfGuardUser”上的“权限”,引荐来源:“ - 在我的 error_log 中,当我 部署后尝试登录我的 symfony 1.4 应用程序。我不明白 它在我的本地机器上。
当我提交登录表单时,Symfony 抛出 500 错误。如果我刷新 该页面,登录表单被重新发布并且我已登录。
任何人都可以建议可能导致此问题的原因吗?
There are a couple of other questions on here regarding this but they are old and have not been answered satisfactorily IMHO.
I am getting this error - "Unknown record property / related component
"permissions" on "sfGuardUser", referer:" - in my error_log when I
attempt to login to my symfony 1.4 app after deployment. I do not get
it on my local machine.
When I submit the login form, Symfony throws a 500 error. If I refresh
the page, the login form is reposted and I am logged in.
Can anyone suggest what might be causing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
答案可以在这里找到: http://oldforum.symfony-project.org /index.php/m/102097/
解决方案是:
来自 http://oldforum.symfony-project.org/index.php/m/102097/
似乎在某个时候我在自己的模式文件中定义了这种关系,并且它已缓存在某处。当我将代码移动到没有缓存的新服务器时,Symfony 在覆盖插件版本的位置生成了类。
The answer can be found here: http://oldforum.symfony-project.org/index.php/m/102097/
The solution is:
from http://oldforum.symfony-project.org/index.php/m/102097/
It seems that at some point I had this relation defined in my own schema file and this had been cached somewhere. When I moved the code to a new server without the cache, Symfony generated classes in a location which overrode the plugin's versions.
您使用什么浏览器?我有同样的问题,但仅限于 Opera...
What browser do you use? I have same problem,but only in Opera...
我不喜欢使用构建所有命令。如果SQL语句失败,构建全部可以删除数据。切勿让用户在 Symfony 的生产环境中构建所有命令。
I don't like using build all commands. If an SQL statement fails, building all can delete data. Never user build all commands on a production environment for Symfony.