Just installed magento 1.9 and have fallen on the first hurdle.
I've created a product and have used suggestions from previous versions to display the product on the homepage but am getting the following message
Fatal error: Call to a member function
getSortedChildren()
on a non-object inapp/design/frontend/rwd/default/template/catalog/product/list.phtml
on line 180
Any help gratefully received.
In the content section of homepage I have…
<div class="page-title">
<h2>Our Latest Products</h2>
</div>
<p>{{block type="catalog/product_list" category_id="3" template="catalog/product/list.phtml"}}</p>
Best Answer
The problem is the new rwd design has two child blocks for the product list:
And in the template itself there are not checks to see if these are present before they are attempted to be loaded and used.
A quick fix would be to use a different template that is a copy of the main template but with the following edits:
The
name.after
occurs twice in the template but theafter
appears just one. One final thing to note is that the default rwd css hides the actions section of the product list on the cms pages.