cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 - Create Category from Backend getting error - Fatal error: Uncaught Error

Magento 2.3 - Create Category from Backend getting error - Fatal error: Uncaught Error

After creating a Custom theme(Parent Theme Blank) whenever add a new category from the backend getting following error,

Fatal error: Uncaught Error: Call to a member function setActive() on bool in C:\xampp\htdocs\mage\vendor\magento\module-backend\Model\View\Result\Page.php:27 Stack trace: #0 C:\xampp\htdocs\mage\generated\code\Magento\Backend\Model\View\Result\Page\Interceptor.php(24): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Catalog...') #1 C:\xampp\htdocs\mage\vendor\magento\module-catalog\Controller\Adminhtml\Category\Add.php(81): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu('Magento_Catalog...') #2 C:\xampp\htdocs\mage\vendor\magento\framework\App\Action\Action.php(108): Magento\Catalog\Controller\Adminhtml\Category\Add->execute() #3 C:\xampp\htdocs\mage\vendor\magento\module-backend\App\AbstractAction.php(231): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #4 C:\xampp\htdocs\mage\vendor\magento\framework\App\FrontController.php(159): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #5 C:\xampp\htdocs\mage\ve in C:\xampp\htdocs\mage\vendor\magento\module-backend\Model\View\Result\Page.php on line 27

How to solve this?

Note: If i run di:compile temporarily okay, then try to add a category again getting the same error.