I am facing one error in Magento Admin part, When I try to create a category it shows following fatal Error :
Fatal error: Call to a member function getId() on a non-object in C:\wamp\www\magento\lib\Varien\Data\Tree\Dbp.php on line 331
public function loadEnsuredNodes($category, $rootNode)
{
$pathIds = $category->getPathIds();
$rootNodeId = $rootNode->getId();
$rootNodePath = $rootNode->getData($this->_pathField);
$select = clone $this->_select;
$select->order($this->_table.'.'.$this->_orderField . ' ASC');
So can anyone help me? how to fix this issues? can anyone suggest me the solution?