cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4 Backend error - BadMethodCallException

Magento 2.4 Backend error - BadMethodCallException

Hello,

 

I am having a problem related to the Admin section. I am getting an error after I login into the backend and cannot find what is causing the issue, since I have not installed any new modules.

 

Frontend is working fine without any issues.

 

This is the error:

1 exception(s):
Exception #0 (BadMethodCallException): Missing required param title

Exception #0 (BadMethodCallException): Missing required param title
<pre>#1 Magento\Backend\Model\Menu\Item\Validator->validate() called at [vendor/magento/module-backend/Model/Menu/Item.php:180]
#2 Magento\Backend\Model\Menu\Item->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]
#3 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66]
#4 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:59]
#5 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/module-backend/Model/Menu/Item/Factory.php:35]
#6 Magento\Backend\Model\Menu\Item\Factory->create() called at [vendor/magento/module-backend/Model/Menu/Builder.php:66]
#7 Magento\Backend\Model\Menu\Builder->getResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#8 Magento\Backend\Model\Menu\Builder\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#9 Magento\Backend\Model\Menu\Builder\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#10 Magento\Backend\Model\Menu\Builder\Interceptor->___callPlugins() called at [generated/code/Magento/Backend/Model/Menu/Builder/Interceptor.php:32]
#11 Magento\Backend\Model\Menu\Builder\Interceptor->getResult() called at [vendor/magento/module-backend/Model/Menu/Config.php:153]
#12 Magento\Backend\Model\Menu\Config->_initMenu() called at [vendor/magento/module-backend/Model/Menu/Config.php:116]
#13 Magento\Backend\Model\Menu\Config->getMenu() called at [vendor/magento/module-backend/Model/Url.php:365]
#14 Magento\Backend\Model\Url->_getMenu() called at [vendor/magento/module-backend/Model/Url.php:325]
#15 Magento\Backend\Model\Url->getStartupPageUrl() called at [generated/code/Magento/Backend/Model/Url/Interceptor.php:77]
#16 Magento\Backend\Model\Url\Interceptor->getStartupPageUrl() called at [vendor/magento/module-backend/App/AbstractAction.php:187]
#17 Magento\Backend\App\AbstractAction->_processUrlKeys() called at [generated/code/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:41]
#18 Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->_processUrlKeys() called at [vendor/magento/module-backend/App/Request/BackendValidator.php:175]
#19 Magento\Backend\App\Request\BackendValidator->validate() called at [vendor/magento/framework/App/Request/CompositeValidator.php:40]
#20 Magento\Framework\App\Request\CompositeValidator->validate() called at [vendor/magento/framework/App/FrontController.php:192]
#21 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147]
#22 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#23 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#24 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#25 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#26 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#27 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#28 Magento\Framework\App\Http\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#29 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php:38]
#30 Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#31 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#32 Magento\Framework\App\Http\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#33 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#34 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
</pre>

 

1 REPLY 1

Re: Magento 2.4 Backend error - BadMethodCallException

1.If you have added any di.xml or menu.xml checkout once
2.check for mismatch constructor data's
Check the var/log/system.log and var/log/exception.log files for more detailed error messages.