tags:

views:

55

answers:

2

hey,

I am getting the following error on the backend of Magento:

Fatal error: Call to a member function setActive() on a non-object in /var/www/vhosts/pro-pin.ca/httpdocs/app/code/core/Mage/Adminhtml/Controller/Action.php on line 82

I've gone through the community forum, but found out that this was due to the magic slider or lightbox extensions. I haven't had this problem on any other server.

Any help please..

A: 

Based on line number I'm primarily running a different version of Magento than you, but if you look at Action.php, you'll see something like this

protected function _setActiveMenu($menuPath)
{
    $this->getLayout()->getBlock('menu')->setActive($menuPath);
    return $this;
}

The call to

$this->getLayout()->getBlock('menu')

is supposed to return a block object, but if your system it isn't. The most likely culprit here in one of your extensions is removing the block named menu from your layout, or one of your developers fiddled with some layout and/or Core files.

In your development environment remove all your modules. If the problem goes away, re-enable until it starts again and you'll know which module is causing you a problem. If the problem doesn't go away, grab a fresh copy of Magento and start diffing files.

Alan Storm
A: 

hey,

I removed all the extension and tried but no success .. bu when i replaced the adminhtml layout files it worked.. The layout files directory was adminhtml/default/default/layout/

cyphertext_