Magento error: Invalid method Mage_Catalog_Block_Product_List_Toolbar::isLastPage
This is an interesting bug that seems to affect some custom templates that have not been fully adapted to 4.1x. This causes some categories with a set number of products to throw the following error:
Invalid method Mage_Catalog_Block_Product_List_Toolbar::isLastPage(Array ( ) ) Trace: #0 [internal function]: Varien_Object->__call(\'isLastPage\', Array)
To Fix
Copy this
public function isLastPage()
{
return $this->getCollection()->getCurPage() >= $this->getLastPageNum();
}
and paste in app/code/core/Mage/Core/Block/Template.php after this:
public function getCacheKeyInfo()
{
return array(
'BLOCK_TPL',
Mage::app()->getStore()->getCode(),
$this->getTemplateFile(),
'template' => $this->getTemplate()
);
}
To avoid having it get overwritten during next update create the following folders:
app/code/local/Mage/Core/Block/
and add your new Template.php in there.
source:
http://www.magentocommerce.com/boards/viewthread/201998/#t259715
Looking for Optimised UK Magento Hosting
Rock solid speed and reliability
Robust, reliable, fully backed up, secure UK based Magento hosting for £175 per year. Full details here or Contact us
Share this:
This entry was posted by admin on September 28, 2010 at 3:08 pm, and is filed under Magento. Follow any responses to this post through RSS 2.0.You can leave a response or trackback from your own site.
- Magento fix: while trying to access connect Fatal error: Class Exception not found in Frontend.php on line 90
- Notes on Magento benchmarking..
- Fatal error: Undefined class constant ‘COUPON_TYPE_NO_COUPON’ in mysql4-upgrade-1.4.0.0.1-1.4.0.0.2.php
- Magetno fix : Cant add products to admin create order
- Magento fix : Invalid method Mage_Wishlist_Model_Item::canConfigure(Array
- Create a multi-store setup in Magento
- Magento fix: Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php
- Magento fix : Local file doesn’t exist
- Magento tip: after upgrade prices on product page simple product are gone……
- Add attribute to Grid or List view

Fantatisc!! It solve my problem… i´m stucked for about a couple of days because this little ****** bug!!
Thank U