Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2013-11-12 Thread Thiago Ramos
Feeling the dumbest guy in the world right now! Figured out I had the same 
problem after 1 hour going through every single line of the tutorial 
again...

Thanks Rob!

On Tuesday, April 2, 2013 3:31:41 PM UTC-3, Robert Denomme wrote:

 I had this same error message, what I had done was create a bunch of 
 groups first, then deleted some. So there was no group with id=1. If you go 
 to the db and check the group id's, those are the ones you should use to 
 pupulate your ACL.

 -Rob 

 On Thursday, October 29, 2009 2:08:22 AM UTC-7, Jeremy wrote:

 when I do Auth with cake , I  happened a problem 
 Warning (512): AclNode::node() - Couldn't find Aro node identified by 
 Array 
 ( 
 [Aro0.model] = Group 
 [Aro0.foreign_key] = 1 
 ) 
  [CORE\cake\libs\model\db_acl.php, line 191] 



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


ERROR: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = )

2013-05-07 Thread Avo Sarafian
Hello Fahad, how are you?

well, im just gona hand it to you, im going suicidal at an issue that im 
having with my custom login. The thing is, I've integrated the Facebook 
plugin on croogo 1.4.4, from 
https://github.com/webtechnick/CakePHP-Facebook-Plugin. The only reason 
that im not using this plugin's register is because i want to manage the 
login myself. their code is quite buggy, im only using it for the API which 
offers for Facebook PHP api.

Anyhoo, so i've created an action called *fblogin()* apart from the simple 
user login(). this is because i want my users to register manually in case 
they do not have facebook accounts; therefore, i would want to manage the 
Auth myself. So, below is my public function *fblogin()

*

 *public function fblogin(){*
 *//actions to grab facebook response after fb.login() button is pressed*

 //first i create a new user
 $this-User-create();
 $new_user = array();

 $new_user['User']['username'] = test1;
 $new_user['User']['password'] = password123;

 //...*assign the rest of the necessary fields (email, phone, website, 
 etc...)

 *if($this-User-save($new_user)){ 
 $this-Session-setFlash(__('Your account was successfully created.'), 
 'default', array('class' = 'success'));
 $login_auth = array('username'=$new_user['User']['facebook_id'], 
 'password'=$new_user['User']['password']);

 $this-Auth-authenticate = array(
 'Form' = array(
 'fields' = array('username' = 'username', 
 'password' = $this-modelFields['password'])
 )
 );

 if ($this-Auth-login($login_auth)) {
 $this-Session-setFlash(__('You are now logged in 
 as '.$full_name.' - '.$new_user['User']['password']), 'default', 
 array('class' = 'success'));

 return $this-redirect('/');
 }
 }

 *} *


Below is the error that I receive:

*Notice* (8): Undefined index: id [*CORE/Cake/Model/AclNode.php*, line *140*]

 AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] 
 = User [Aro0.foreign_key] = ) 

 *Error: * An Internal Error Has Occurred.



I'm gona cry!... :'( - I might be standing in the wrong corner as I'm 
pretty sure that it's a CakePHP issue, and not a Croogo. is there something 
else that im missing?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2013-04-02 Thread Robert Denomme
I had this same error message, what I had done was create a bunch of groups 
first, then deleted some. So there was no group with id=1. If you go to the 
db and check the group id's, those are the ones you should use to pupulate 
your ACL.

-Rob 

On Thursday, October 29, 2009 2:08:22 AM UTC-7, Jeremy wrote:

 when I do Auth with cake , I  happened a problem 
 Warning (512): AclNode::node() - Couldn't find Aro node identified by 
 Array 
 ( 
 [Aro0.model] = Group 
 [Aro0.foreign_key] = 1 
 ) 
  [CORE\cake\libs\model\db_acl.php, line 191] 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Couldn't find Aro node

2010-07-22 Thread Jerre
Hi guys,

I'm just starting with cakePHP so don't shoot me if this is a stupid
question :)

I'm setting up a login system using ACL and Auth and have a table with
users, groups and then the acos, aros and aro_acos tables.
The ARO objects refer to the groups (so the aro records have a foreign
key to a group and the model is 'Group')

If I want to test my permissions I get following error:

Warning (512): AclNode::node() - Couldn't find Aro node identified by
Array
(
[Aro0.model] = User
[Aro0.foreign_key] = 4
)
 [CORE/cake/libs/model/db_acl.php, line 191]

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
permissions check.  Node references:
Aro: Array
(
[User] = Array
(
[id] = 4
[username] = Jerre
[active] = 1
[group_id] = 4
[created] = -00-00 00:00:00
[modified] = -00-00 00:00:00
)

)

So it looks like it want's to authenticate the user in stead of the
group, any ideas what I might be missing here?

Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-30 Thread uyab



On Oct 29, 7:24 pm, merrylin shi shimeilin1...@gmail.com wrote:
 I am sure  using  the Auth Compoment and  ACL
 Component  !  I think I do All things about Auth and Acl ,
 but not take effect

are you already insert requested object into aros table ?
based on your warning message, you should have one row in your aros
table which is model=group and foreign_key=1

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread merrylin

when I do Auth with cake , I  happened a problem
Warning (512): AclNode::node() - Couldn't find Aro node identified by
Array
(
[Aro0.model] = Group
[Aro0.foreign_key] = 1
)
 [CORE\cake\libs\model\db_acl.php, line 191]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread igotskils



On 29 Okt., 10:08, merrylin shimeilin1...@gmail.com wrote:
 when I do Auth with cake , I  happened a problem
 Warning (512): AclNode::node() - Couldn't find Aro node identified by
 Array
 (
     [Aro0.model] = Group
     [Aro0.foreign_key] = 1
 )
  [CORE\cake\libs\model\db_acl.php, line 191]

Hey,

are you using only the Auth Compoment? Or did you try to use the ACL
Component too?

The error comes from the ARO Object and the ACL Component.

For better help, try to post the controller code including the
beforeFilter method and the component variable.

Or maybe this link is going to help you: 
http://book.cakephp.org/view/171/Access-Control-Lists

matic
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread merrylin shi
I am sure  using  the Auth Compoment and  ACL
Component  !  I think I do All things about Auth and Acl ,
but not take effect

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---