I gatting error
Recoverable Error: Argument 1 passed to Ess_M2ePro_Controller_Adminhtml_BaseController::_addContent() must be an instance of Mage_Core_Block_Abstract, boolean given, called in /var/www/app/code/community/Ess/M2ePro/controllers/Adminhtml/SupportController.php on line 72 and defined in /var/www/app/code/community/Ess/M2ePro/Controller/Adminhtml/BaseController.php on line 148
When click on sub menu in Admin panel.
Following app\code\community\Ess\M2ePro\Block\Adminhtml\Support.php file.
class Ess_M2ePro_Block_Adminhtml_Support extends Mage_Adminhtml_Block_Widget_Form_Container
{
private $referrer = NULL;
public function __construct()
{
parent::__construct();
$this->setId('supportContainer');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml';
$this->_mode = 'support';
$this->referrer = $this->getRequest()->getParam('referrer');
}
}
Following app\code\community\Ess\M2ePro\etc\config.xml file.
<blocks>
<M2ePro>
<class>Ess_M2ePro_Block</class>
</M2ePro>
<adminhtml>
<rewrite>
<page_menu>Ess_M2ePro_Block_Adminhtml_Magento_Menu</page_menu>
</rewrite>
</adminhtml>
</blocks>
Following app/code/community/Ess/M2ePro/controllers/Adminhtml/SupportController.php file.
class Ess_M2ePro_Adminhtml_SupportController extends Ess_M2ePro_Controller_Adminhtml_BaseController
{
public function indexAction()
{
$this->_initAction();
$referrer = $this->getRequest()->getParam('referrer');
if ($referrer == Ess_M2ePro_Helper_Component_Ebay::NICK) {
$this->setPageHelpLink(Ess_M2ePro_Helper_View_Ebay::NICK);
} elseif ($referrer == Ess_M2ePro_Helper_View_Common::NICK) {
$components = Mage::helper('M2ePro/View_Common_Component')->getActiveComponents();
if (count($components) == 1) {
$this->setPageHelpLink(array_shift($components));
}
}
$this->_addContent($this->getLayout()->createBlock('M2ePro/adminhtml/support'))
->renderLayout();
}
}
I tried to google but still did not get proper solution.