13/05/2009, 12:58
|
| | | Fecha de Ingreso: septiembre-2004
Mensajes: 73
Antigüedad: 20 años, 4 meses Puntos: 0 | |
Respuesta: [CakePHP] ACL + AUTH saludos
Yo segui el tutorial y me dio este error
Necesito ayuda
Código:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => lliccien
[group_id] => 1
[created] => 2009-05-13 12:48:18
[modified] => 2009-05-13 12:48:18
)
)
Aco: controllers/Posts/add [CORE\cake\libs\controller\components\acl.php, line 239]
Code | Context
$aro = array(
"User" => array(
"id" => "1",
"username" => "lliccien",
"group_id" => "1",
"created" => "2009-05-13 12:48:18",
"modified" => "2009-05-13 12:48:18"
)
)
$aco = "controllers/Posts/add"
$action = "*"
$permKeys = array(
"_create",
"_read",
"_update",
"_delete"
)
$aroPath = array(
array(
"Aro" => array()
),
array(
"Aro" => array()
)
)
$acoPath = false
if (empty($aroPath) || empty($acoPath)) {
trigger_error("DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: " . print_r($aro, true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);
DbAcl::check() - CORE\cake\libs\controller\components\acl.php, line 239
AclComponent::check() - CORE\cake\libs\controller\components\acl.php, line 89
AuthComponent::isAuthorized() - CORE\cake\libs\controller\components\auth.php, line 477
AuthComponent::startup() - CORE\cake\libs\controller\components\auth.php, line 399
Component::startup() - CORE\cake\libs\controller\component.php, line 112
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 210
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp\cake\cake\basics.php:111) [CORE\cake\libs\controller\controller.php, line 640]
Code | Context
$status = "Location: http://localhost/acl/users/login"
header - [internal], line ??
Controller::header() - CORE\cake\libs\controller\controller.php, line 640
Controller::redirect() - CORE\cake\libs\controller\controller.php, line 621
AuthComponent::startup() - CORE\cake\libs\controller\components\auth.php, line 404
Component::startup() - CORE\cake\libs\controller\component.php, line 112
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 210
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
(default) 2 queries took 2 ms Nr Query Error Affected Num. rows Took (ms)
1 SELECT `Aro`.`id`, `Aro`.`parent_id`, `Aro`.`model`, `Aro`.`foreign_key`, `Aro`.`alias` FROM `aros` AS `Aro` LEFT JOIN `aros` AS `Aro0` ON (`Aro`.`lft` <= `Aro0`.`lft` AND `Aro`.`rght` >= `Aro0`.`rght`) WHERE `Aro0`.`model` = 'User' AND `Aro0`.`foreign_key` = 1 ORDER BY `Aro`.`lft` DESC 2 2 1
2 SELECT `Aco`.`id`, `Aco`.`parent_id`, `Aco`.`model`, `Aco`.`foreign_key`, `Aco`.`alias` FROM `acos` AS `Aco` LEFT JOIN `acos` AS `Aco0` ON (`Aco0`.`alias` = 'controllers') LEFT JOIN `acos` AS `Aco1` ON (`Aco1`.`lft` > `Aco0`.`lft` AND `Aco1`.`rght` < `Aco0`.`rght` AND `Aco1`.`alias` = 'Posts') LEFT JOIN `acos` AS `Aco2` ON (`Aco2`.`lft` > `Aco1`.`lft` AND `Aco2`.`rght` < `Aco1`.`rght` AND `Aco2`.`alias` = 'add') WHERE ((`Aco`.`lft` <= `Aco0`.`lft` AND `Aco`.`rght` >= `Aco0`.`rght`) OR (`Aco`.`lft` <= `Aco2`.`lft` AND `Aco`.`rght` >= `Aco2`.`rght`)) ORDER BY `Aco`.`lft` DESC
|