Magento – Call to a member function setActive() on boolean in vendor/magento/module-backend/Model/View/Result/Page.php:27

magento2magento2.2

I am using a module which gives me this error when I try to open its settings in the admin.

This is part of the stack trace:

app/code/Rokanthemes/SlideBanner/Controller/Adminhtml/Slider/Index.php(70):
Magento\Backend\Model\View\Result\Page->setActiveMenu('Rokanthemes_Sli…')

Code of controller: https://pastebin.com/wVrQ6QcE

I can see that it tries to set the menu for Rokanthemes_Slidebanner which is of course the extension I am talking about. The question is, why it cant set the menu for that single extension while the rest works just fine. I have no idea where to look anymore.

Thanks for helping!

Best Answer

Apparently, it is a bug. Deleting generated/metadata/global.php may solve it.

Related Topic