Home » Magento3 July 2012

Magento: Solution of Invalid method Mage_Catalog_Block_Product_List_Toolbar :: isLastPage

While upgrading Magento, I got this error when I go to product list page. It says:

Invalid method Mage_Catalog_Block_Product_List_Toolbar::isLastPage(Array())


I found 4 kinds of solution.

This first one works & is easy.


– Open /app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

– Replace the parent class name


class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Core_Block_Template


class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Page_Block_Html_Pager

This second one is more effective.


Just follow the steps provided here: Magento: Solution of Warning: Invalid argument supplied for foreach() in …/template/catalog/product/list/toolbar.phtml

The other two solutions below might work as well.


– Open app/code/core/Mage/Core/Block/Template.php

– Add this function:


– Open app/design/frontend/TEMPLATE_PACKAGE/TEMPLATE_NAME/catalog/product/list/toolbar.phtml

– Search for isLastPage

– Replace it with getLastPageNum

Hope it helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.