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.
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');
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With