I’m using Magento 1.5 and I’m getting a fatal error message when trying to access “Customers->Manage Customers” from Magento Backend.
error details :
Call to a member function setSaveParametersInSession() on a non-object in/my_domain.com/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php
on line 59
and this is the peace of code inside Container.php where Magento gets stuck
protected function _prepareLayout() { $this->setChild( 'grid', $this->getLayout()->createBlock( $this->_blockGroup.'/' . $this->_controller . '_grid', $this->_controller . '.grid')->setSaveParametersInSession(true) ); return parent::_prepareLayout(); }
any help would be greatly appreciated
Thanks
It is not clear from the question, but …
I suppose you got this error while you are creating a new module with a adminhtml controller.
If so …
The error could be triggered by an erroneous
_blockGroupdeclaration in the blocks that extendMage_Adminhtml_Block_Widget_Grid_ContainerHope it helps