Common Errors

Call to a member function setSaveParametersInSession() on boolean

Error
You may encounter a Call to a member function setSaveParametersInSession() on boolean error in Magento when adding an adminhtml grid within a custom module.
Solution
This error occurs within the _prepareLayout() method of the Mage_Adminhtml_Block_Widget_Grid_Container class.
protected function _prepareLayout()
{
$this->setChild( ‘grid’,