skip to Main Content

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


  1. As per error there is no any parent id name with mgs so it will throw error.

    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
    <menu>
        <add id="Magento_Cms::cms_page" title="Pages" module="Magento_Cms" sortOrder="0" parent="Magento_Backend::content_elements" action="cms/page" resource="Magento_Cms::page"/>
        <add id="Magento_Cms::cms_block" title="Blocks" module="Magento_Cms" sortOrder="30" parent="Magento_Backend::content_elements" action="cms/block" resource="Magento_Cms::block"/>
    </menu>
    

    In the code above parent="Magento_Backend::content_elements" will display in content menu so give valid id to your menu then it will work.

    For reference see this link

    Login or Signup to reply.
  2. Just modify the menu file located under /vendor/magento/module-cms/etc/adminthml/menu.xml

    <add id="Magento_Backend::mgs" title="Blocks" translate="title" module="Magento_Cms" sortOrder="30" parent="Magento_Backend::mgs" action="cms/block" resource="Magento_Cms::block"/>
    

    Here’s how it’ll look

    <?xml version="1.0"?>
    <!--
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */
    -->
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <menu>
            <add id="Magento_Cms::cms_page" title="Pages" translate="title" module="Magento_Cms" sortOrder="0" parent="Magento_Backend::content_elements" action="cms/page" resource="Magento_Cms::page"/>
            <add id="Magento_Cms::cms_block" title="Blocks" translate="title" module="Magento_Cms" sortOrder="30" parent="Magento_Backend::content_elements" action="cms/block" resource="Magento_Cms::block"/>
            <add id="Magento_Backend::mgs" title="Blocks" translate="title" module="Magento_Cms" sortOrder="30" parent="Magento_Backend::mgs" action="cms/block" resource="Magento_Cms::block"/>
        </menu>
    </config>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search