0

I setup a fresh magento installation (1.8) and upgraded all extensions to their latest stable versions via Magento Connect Manager just moments after the installation. However, after it finished, I can't use the backend anymore.

It says: "Fatal error: Call to a member function setActive() on boolean in A:\wamp\www\magento\app\code\core\Mage\Adminhtml\Controller\Action.php on line 111"

Caching is disabled and I already cleared the folder "var/cache".

enter image description here

How can I use the backend again?

Thats the code from the error:

/**
 * Define active menu item in menu block
 *
 * @return Mage_Adminhtml_Controller_Action
 */
protected function _setActiveMenu($menuPath)
{
    $this->getLayout()->getBlock('menu')->setActive($menuPath);
    return $this;
}

1 Answer 1

1

Check your app/design/adminhtml/default/default/layout/main.xml file

...
<block type="adminhtml/page_menu" name="menu" as="menu"></block>
...

menu block definition should be there

If you think you have some extension overriding that try disabling them, one by one (so you can identify the responsible one), in app/etc/modules

Also, you can try downloading a fresh copy of your Magento version, and replacing all of your app/design/adminhtml/default folder

5
  • There is no "main.xml" file in that location.
    – Black
    Commented May 20, 2018 at 11:47
  • That's the problem then Commented May 20, 2018 at 11:48
  • It seems like the upgrade triggered from Magento Connect Manager deleted many necessary files.
    – Black
    Commented May 20, 2018 at 11:51
  • I tried to replace app/design/adminhtml/default with the fresh one, but it made no big difference, everything looks messed up. I decided to not research any longer, I will just start again from start and never use the bugged Magento Connect Manager again without using git.
    – Black
    Commented May 20, 2018 at 11:59
  • ...and creating a database backup in prior.
    – Black
    Commented May 21, 2018 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.