1

Fatal error: Call to a member function getSummaryHtml() on a non-object in /usr/local/apache2/htdocs/app/code/core/Mage/Catalog/Block/Product/Abstract.php on line 319

/**
 * Get product reviews summary
 *
 * @param Mage_Catalog_Model_Product $product
 * @param bool $templateType
 * @param bool $displayIfNoReviews
 * @return string
 */
public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = false, $displayIfNoReviews = false)
{
 if ($this->_initReviewsHelperBlock()) {
 return $this->_reviewsHelperBlock->getSummaryHtml($product, $templateType, $displayIfNoReviews);
 }
 return '';
}
grg
1591 silver badge11 bronze badges
asked Oct 24, 2016 at 20:48

1 Answer 1

1

$this->_reviewsHelperBlock should be initiated with Mage_Review_Block_Helper Please check in this file

protected function _initReviewsHelperBlock()
{
 if (!$this->_reviewsHelperBlock) {
 if (!Mage::helper('catalog')->isModuleEnabled('Mage_Review')) {
 return false;
 } else {
 $this->_reviewsHelperBlock = $this->getLayout()->createBlock('review/helper');
 }
 }
 return true;
}
answered Oct 25, 2016 at 6:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.