I encountered the following issue when i was trying to install a module. When I try to access the admin panel on my magento I get:
Call to a member function setActive() on boolean in C:\xampp\htdocs\project\vendor\magento\module-backend\Model\View\Result\Page.php on line 27
I disabled all third party and custom modules, I compiled the code but I still get this error.
EDIT: I did a var_dump($itemId)
just below the line where the error is and the $itemid
is 'Magento_Backend::dashboard
'.
EDIT 2: The error is because the line "$this->layout->getBlock('menu');
" above returns false. I can't find though why this is happening