Magento Fatal error: Call to a member function getSortedChildren() on a non-object

magentomagento-1.9

I have installed Magento CE 1.9 version and getting error after calling Catalog on Home page. Issue seems to be related with list.phtml.

ERROR : Fatal error: Call to a member function getSortedChildren() on
a non-object in
mageinc\app\design\frontend\rwd\default\template\catalog\product\list.phtml
on line 74

I didn't change anything after installation and it seems this issue came with Magento 1.9 edition.

Issue is occurring for both List and Grid view on Catalog page as it is being called for both views.

Is there any best solution to resolve this issue ?

Best Answer

you just have to delete the method ->getSortedChildren(); at line 134

$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();

so you have

$_nameAfterChildren = $this->getChild('name.after');
Related Topic