CakePHP ACL/ACO 错误

发布于 2024-10-15 09:28:48 字数 836 浏览 4 评论 0原文

查看 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北座城市 2024-10-22 09:28:48

首先,您是否在数据库中创建了 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/

如此安好 2024-10-22 09:28:48

我记得遇到过这样的错误,但不幸的是不记得具体的解决方案。这归结为坚持和调整。对您能想到的所有内容尝试 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文