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