Hi there,
I accidentally changed my admin and a second users permissions to "All" in the backend.
I'm guessing the users are clashing?
Now, when I try to log into the backend, I get this error message.
"main.ERROR: Could not create an acl object: Parent Role id '2' does not exist [] []"
Plaese could someone help me.
My latest error message reads
{"0":"Class Sparsh\\EasyProductTabs\\Observer\\NewTab does not exist","1":"#1 Magento\\Framework\\Code\\Reader\\ClassReader->getConstructor('Sparsh\\EasyProdu...') called at [vendor\/magento\/framework\/ObjectManager\/Definition\/Runtime.php:54]\n#2 Magento\\Framework\\ObjectManager\\Definition\\Runtime->getParameters('Sparsh\\EasyProdu...') called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:48]\n#3 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Sparsh\\EasyProdu...') called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#4 Magento\\Framework\\ObjectManager\\ObjectManager->get('Sparsh\\EasyProdu...') called at [vendor\/magento\/framework\/Event\/ObserverFactory.php:33]\n#5 Magento\\Framework\\Event\\ObserverFactory->get('Sparsh\\EasyProdu...') called at [vendor\/magento\/framework\/Event\/Invoker\/InvokerDefault.php:72]\n#6 Magento\\Framework\\Event\\Invoker\\InvokerDefault->dispatch(array('instance' => 'Sparsh\\EasyProdu...', 'name' => 'sparsh_layout_ge...'), &Magento\\Framework\\Event\\Observer#00000000125cb7e200000000442277e1#) called at [vendor\/magento\/framework\/Event\/Manager.php:66]\n#7 Magento\\Framework\\Event\\Manager->dispatch('layout_generate_...', array('full_action_name' => 'catalog_category...', 'layout' => &Magento\\Framework\\View\\Layout\\Interceptor#00000000125cb03000000000442277e1#)) called at [generated\/code\/Magento\/Framework\/Event\/Manager\/Proxy.php:95]\n#8 Magento\\Framework\\Event\\Manager\\Proxy->dispatch('layout_generate_...', array('full_action_name' => 'catalog_category...', 'layout' => &Magento\\Framework\\View\\Layout\\Interceptor#00000000125cb03000000000442277e1#)) called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:134]\n#9 Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Page\/Builder.php:55]\n#10 Magento\\Framework\\View\\Page\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:65]\n#11 Magento\\Framework\\View\\Layout\\Builder->build() called at [vendor\/magento\/framework\/View\/Page\/Config.php:224]\n#12 Magento\\Framework\\View\\Page\\Config->build() called at [vendor\/magento\/framework\/View\/Page\/Config.php:587]\n#13 Magento\\Framework\\View\\Page\\Config->getElementAttribute('body', 'class') called at [vendor\/magento\/framework\/View\/Page\/Config.php:545]\n#14 Magento\\Framework\\View\\Page\\Config->addBodyClass('page-products') called at [vendor\/magento\/module-catalog\/Controller\/Category\/View.php:247]\n#15 Magento\\Catalog\\Controller\\Category\\View->execute() called at [generated\/code\/Magento\/Catalog\/Controller\/Category\/View\/Interceptor.php:24]\n#16 Magento\\Catalog\\Controller\\Category\\View\\Interceptor->execute() called at [vendor\/magento\/framework\/App\/Action\/Action.php:108]\n#17 Magento\\Framework\\App\\Action\\Action->dispatch(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#18 Magento\\Catalog\\Controller\\Category\\View\\Interceptor->___callParent('dispatch', array(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#19 Magento\\Catalog\\Controller\\Category\\View\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#20 Magento\\Catalog\\Controller\\Category\\View\\Interceptor->___callPlugins('dispatch', array(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#), array(array('designLoader', 'customerNotifica...', 'catalog_app_acti...', 'tax-app-action-d...', 'weee-app-action-...', 'storeCheck', 'contextPlugin', 'customer-app-act...'))) called at [generated\/code\/Magento\/Catalog\/Controller\/Category\/View\/Interceptor.php:39]\n#21 Magento\\Catalog\\Controller\\Category\\View\\Interceptor->dispatch(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/App\/FrontController.php:162]\n#22 Magento\\Framework\\App\\FrontController->processRequest(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#, &Magento\\Catalog\\Controller\\Category\\View\\Interceptor#00000000125cbcea00000000442277e1#) called at [vendor\/magento\/framework\/App\/FrontController.php:99]\n#23 Magento\\Framework\\App\\FrontController->dispatch(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#24 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', array(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#25 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/module-store\/App\/FrontController\/Plugin\/RequestPreprocessor.php:99]\n#26 Magento\\Store\\App\\FrontController\\Plugin\\RequestPreprocessor->aroundDispatch(&Magento\\Framework\\App\\FrontController\\Interceptor#00000000125cb2ae00000000442277e1#, &Closure#00000000125cbc7b00000000442277e1#, &Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#27 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php:73]\n#28 Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch(&Magento\\Framework\\App\\FrontController\\Interceptor#00000000125cb2ae00000000442277e1#, &Closure#00000000125cbc7b00000000442277e1#, &Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#29 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#30 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', array(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#), NULL) called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#31 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(&Magento\\Framework\\App\\Request\\Http#00000000125cb51f00000000442277e1#) called at [vendor\/magento\/framework\/App\/Http.php:116]\n#32 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#33 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#34 Magento\\Framework\\App\\Bootstrap->run(&Magento\\Framework\\App\\Http\\Interceptor#00000000125cb66f00000000442277e1#) called at [index.php:39]\n","url":"\/signature.html","script_name":"\/index.php","report_id":"fdccded08c3062dcbc42fae8e876e28cec7a16730387c27001cf7016bc599ea8"}
Hello @mohammedez9f7d
I think after giving permissions you accidentally deleted one assigned role, you can create a new user with Administrator role from command line by this command :
php bin/magento admin:user:create
and fill other details which it asks.
and later check if any user has any role assigned which doesn't exists.
Hope it helps !!
Hi Gaurav,
Thanks for your quick reply.
I have successfully created a new admin user but I still have the same problem when I try to log in.
I have restored my database roles and rules but the problem is still happening.
can you please compare your authorization_role table of your live server to your local,
As per my understanding, on production the parent_id 2 doesn't exist, you can just change parent id to 0 (Administrators) where parent_id is 2, later you can debug the reason why role_id 2 is deleted !
Hope it helps !
Thanks again for your reply.
I managed to fix the problem.
I did a restoration of the roles and rules tables in MySQL and then worked out that one of my extensions was causing part of what was causing the crash.
After going through the extensions, I filtered out the bad ones and my site is back up again.
However, these extensions were previously working but not now, so I am not sure why activating them is causing the website to crash.