Magento 1.6.0 : Product is not displayed

Problem:

When in category page customer clicks on product. Product is not displayed.

Error:

Call to undefined method Mage_PageCache_Helper_Data::getNoCacheCookieLifetime()

Can See error in log file or with fire bug

<div class=”col-main”>

<script type=”text/javascript”>
var lifetime = <br />
<b>Fatal error</b>:  Call to undefined method Mage_PageCache_Helper_Data::getNoCacheCookieLifetime() in <b>/home/aaaaaaa/www/app/design/frontend/base/default/template/pagecache/cookie.phtml</b> on line <b>29</b><br />

Fix:

Add follwoing code to file app/code/core/Mage/PageCache/Helper/Data.php

public function getNoCacheCookieLifetime()
{
return Mage::getStoreConfig(self::XML_PATH_EXTERNAL_CACHE_LIFETIME);
}

If your magento uses compiler mode also change file

include/src/Mage_PageCache_Helper_Data.php

References:

http://www.magentocommerce.com/boards/viewthread/265631/#t374170

Please leave feedback if this was helpful, thnx.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s