After the upgrade I was getting the error:
Fatal error: Call to a member function getSize() on a non-object in ./app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml on line 34
Offending line: <?php if($this->getCollection()->getSize()): ?>
After some quick debugging I found getCollection was returning null. As a workaround I manually set the collection:
$collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('*');
$this->setCollection($collection);
My question, why isn’t the collection being set? Where would it normally be set?
The is normally set in the parent
catalog/product_listblock’s_beforeToHtmlmethod.Specifically this line.
My guess would be your system was heavily modified such that the toolbar block no longer had
catalog/product_listas a parent.