It is nice to have magento 1.4 released but there is a small bug in toolbar which makes the list and grid view error.
And I don’t like the error report in write in a number file stored in var/report, even though it is good to have it not showing in the frontend
It is a easy fix for the toolbar error for magento1.4
file to change:
code/core/Mage/Catalog/Block/Product/List/Toolbar.php
here is the code from the new magento1.4
class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Core_Block_Template
{
/**
* Products collection
*
* @var Mage_Core_Model_Mysql4_Collection_Abstract
*/
the problem is the extends Mage_Core_Block_Template, it doesn’t have the method each as $this->getPages()
so if you change it to
class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Page_Block_Html_Pager
all the problem fixed.