开发者

CakePHP ACL/ACO errors

开发者 https://www.devze.com 2023-02-08 08:36 出处:网络
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:

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] => admin@test.com
    开发者_StackOverflow中文版        [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


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/


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消