Magento News

 

Magento 1.4 toolbar bug

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 not good for developers to find the errors.

It is a easy fix for the toolbar error for magento1.4

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.

Magento 1.4 toolbar bug

Possibly Related Posts:


 

Leave a Reply