I’m using Magento2,when i login on my website i got this message.
There has been an error processing your request Specified invalid
parent id (Magento_Backend::mgs) Error log record number:
1307308720759
This website was working fine but last day i run a query and recompile and then this issue start coming up….
Below Error Log Detail
{“0″:”Specified invalid parent id (Magento_Backend::mgs)”,”1″:”#0
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoBackendModelMenuBuilder->getResult(Object(MagentoBackendModelMenu))n#1
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoBackendModelMenuBuilderInterceptor->___callParent(‘getResult’,
Array)n#2
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoBackendModelMenuBuilderInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoBackendModelMenu))n#3
/home/gervetus/public_html/generated/code/Magento/Backend/Model/Menu/Builder/Interceptor.php(26):
MagentoBackendModelMenuBuilderInterceptor->___callPlugins(‘getResult’,
Array, Array)n#4
/home/gervetus/public_html/vendor/magento/module-backend/Model/Menu/Config.php(148):
MagentoBackendModelMenuBuilderInterceptor->getResult(Object(MagentoBackendModelMenu))n#5
/home/gervetus/public_html/vendor/magento/module-backend/Model/Menu/Config.php(111):
MagentoBackendModelMenuConfig->_initMenu()n#6
/home/gervetus/public_html/vendor/magento/module-backend/Model/Url.php(361):
MagentoBackendModelMenuConfig->getMenu()n#7
/home/gervetus/public_html/vendor/magento/module-backend/Model/Url.php(321):
MagentoBackendModelUrl->_getMenu()n#8
/home/gervetus/public_html/generated/code/Magento/Backend/Model/Url/Interceptor.php(102):
MagentoBackendModelUrl->getStartupPageUrl()n#9
/home/gervetus/public_html/vendor/magento/module-backend/App/AbstractAction.php(276):
MagentoBackendModelUrlInterceptor->getStartupPageUrl()n#10
/home/gervetus/public_html/vendor/magento/module-backend/App/AbstractAction.php(208):
MagentoBackendAppAbstractAction->_processUrlKeys()n#11
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))n#12
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoBackendControllerAdminhtmlIndexIndexInterceptor->___callParent(‘dispatch’,
Array)n#13
/home/gervetus/public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143):
MagentoBackendControllerAdminhtmlIndexIndexInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#14
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoBackendControllerAdminhtmlIndexIndexInterceptor),
Object(Closure), Object(MagentoFrameworkAppRequestHttp))n#15
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoBackendControllerAdminhtmlIndexIndexInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#16
/home/gervetus/public_html/generated/code/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php(26):
MagentoBackendControllerAdminhtmlIndexIndexInterceptor->___callPlugins(‘dispatch’,
Array, NULL)n#17
/home/gervetus/public_html/vendor/magento/framework/App/FrontController.php(55):
MagentoBackendControllerAdminhtmlIndexIndexInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#18
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))n#19
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent(‘dispatch’,
Array)n#20
/home/gervetus/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#21
/home/gervetus/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26):
MagentoFrameworkAppFrontControllerInterceptor->___callPlugins(‘dispatch’,
Array, Array)n#22
/home/gervetus/public_html/vendor/magento/framework/App/Http.php(135):
MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#23
/home/gervetus/public_html/vendor/magento/framework/App/Bootstrap.php(256):
MagentoFrameworkAppHttp->launch()n#24
/home/gervetus/public_html/index.php(40):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))n#25
{main}”,”url”:”/admin/admin/index/index/key/6570ae1e6f609b1c1c0433e9e2307b5d7250e1e160091871b57a4326817cae2e/”,”script_name”:”/index.php”}
2
Answers
As per error there is no any parent id name with mgs so it will throw error.
In the code above
parent="Magento_Backend::content_elements"
will display in content menu so give validid
to your menu then it will work.For reference see this link
Just modify the menu file located under /vendor/magento/module-cms/etc/adminthml/menu.xml
Here’s how it’ll look