Jump to content

Blank product pages in 1.5.4.0, poss after module updates


Recommended Posts

I've got a problem today in 1.5.4.0 which may be related to updating some modules. But I'm not 100% sure.

 

Front page of the site works fine, search works, add to cart from carousels & cart works fine, but all product pages appear blank.

 

Debugging gives this error.

 

Fatal error: Call to undefined method ProductController::getProduct() in /home/sites/sitedomain.co.uk/public_html/shop/modules/productcomments/productcomments.php on line 810

 

Line 810 in product comments.php is

 

$product = $this->context->controller->getProduct();
$image = Product::getCover((int)Tools::getValue('id_product'));
$cover_image = $this->context->link->getImageLink($product->link_rewrite, $image['id_image'], 'medium_default');
 
Which isn't giving me much of a clue as to what's wrong.
 
Configuration Information turned up a bunch of missing files, which have been replaced from a backup, but still no joy.
 
Any suggestions what to try gratefully received.
Link to comment
Share on other sites

Thank you. There's something definately incompatible with the 3.3.4 version of product comments & 1.5.4.0. I've disabled it for now & the product pages are working again. I'll work out how to get hold of a working version tomorrow.

 

Thanks again.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...