Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Parent Role id ‘G1’ does not exist" error message is displayed on login as admin

On login to backend as admin in magento

"Parent Role id ‘G1’ does not exist" error message is displayed on login as admin

Can any one tell me what to do for this error.

like image 871
Jay Avatar asked Apr 18 '13 08:04

Jay


2 Answers

try run this query:

insert into admin_role values(1,0,1,1,'G',0,'Administrator');


insert into admin_rule values (8,1,'all',null,0,'G','allow');
like image 62
Ansyori Avatar answered Nov 15 '22 11:11

Ansyori


I was able to fix this by updating the tree_level on all Users to "2" in the database...

UPDATE admin_role SET tree_level = 2 WHERE role_type = "U";

Then I cleared my Magento cache and sessions and was able to log in successfully.

This fix was suggested by this solution. It also recommended making a change to the core code, but so far that hasn't been needed in my case.

like image 30
Scruffy Paws Avatar answered Nov 15 '22 10:11

Scruffy Paws



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!