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())

Solution:

I found 4 kinds of solution.

This first one works & is easy.

#1.

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

– Replace the parent class name

From:

class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Core_Block_Template

To:

class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Page_Block_Html_Pager

This second one is more effective.

#2.

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.

#3.

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

– Add this function:

#4.

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

– Search for isLastPage

– Replace it with getLastPageNum

Hope it helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed