CakePHP ACL/ACO 错误
查看 CakePHP 网站的主页时出现以下错误:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => [email protected]
[group_id] => 1
[created] => 2008-07-05 17:16:58
[modified] => 2008-07-05 17:16:58
)
)
Aco: controllers/Pages/display [CORE/cake/libs/controller/components/acl.php, line 273]
Warning (2): Cannot modify header information - headers already sent by (output started at /Users/cameron/Sites/cakeapp/cake/libs/debugger.php:673) [CORE/cake/libs/controller/controller.php, line 742]
问题是什么?谢谢
I get the following error when viewing my home page for my CakePHP website:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => [email protected]
[group_id] => 1
[created] => 2008-07-05 17:16:58
[modified] => 2008-07-05 17:16:58
)
)
Aco: controllers/Pages/display [CORE/cake/libs/controller/components/acl.php, line 273]
Warning (2): Cannot modify header information - headers already sent by (output started at /Users/cameron/Sites/cakeapp/cake/libs/debugger.php:673) [CORE/cake/libs/controller/controller.php, line 742]
What is the problem(s)? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您是否在数据库中创建了 ACO/ACL 表。 (通常在/config/sql 中)。接下来,您的用户可能需要 ACO/ACL 外键,因此您可能必须修改用户表。
有关详细信息,请参阅本教程:
http://lemoncake.wordpress.com/category/authorization/
First, did you create the ACO/ACL tables in the database. (usually in /config/sql). Next, your user probably needs the ACO/ACL foreign keys, so you'll probably have to modify your user table.
see this tutorial for more information:
http://lemoncake.wordpress.com/category/authorization/
我记得遇到过这样的错误,但不幸的是不记得具体的解决方案。这归结为坚持和调整。对您能想到的所有内容尝试 debug(),您就会开始了解情况。
如果您按照我之前发布的教程进行操作,请重新开始,仔细检查所有内容。这不是一个简单的组件/行为,但 Mark 很好地记录了它。
坚持下去!
I recall getting errors like this, but unfortunately can't remember specific solutions. It came down to perseverance and tweaking. Try debug() on everything you can think of and you'll begin to get the picture.
If you followed the tutorial I posted earlier, start it again, double checking everything. It isn't a straightforward component/behaviour but Mark documents it well.
Stick with it!