NeoHub Posted January 28, 2020 Share Posted January 28, 2020 Hi guys, I'm facing a problem with my shop that simply stop showing the product page on front end. I did the debug and found this: (1/1) UndefinedMethodException Attempted to call an undefined method named "getId" of class "Product". Did you mean to call e.g. "getIdByEan13", "getIdByReference", "getIdProductAttributeByIdAttributes", "getIdProductAttributeMostExpensive", "getIdProductAttributesByIdAttributes", "getIdTaxRulesGroup", "getIdTaxRulesGroupByIdProduct" or "getIdTaxRulesGroupMostUsed"? in productcomments.php line 880 at ProductComments->renderProductCommentsList(object(Product))in productcomments.php line 862 at ProductComments->hookDisplayFooterProduct(array('product' => object(Product), 'category' => object(Category), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970 at HookCore::coreCallHook(object(ProductComments), 'hookdisplayFooterProduct', array('product' => object(Product), 'category' => object(Category), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355 at HookCore::callHookOn(object(ProductComments), 'displayFooterProduct', array('product' => object(Product), 'category' => object(Category), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907 at HookCore::exec('displayFooterProduct', array('product' => object(Product), 'category' => object(Category), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in ProductController.php line 598 at ProductControllerCore->assignCategory()in ProductController.php line 217 at ProductControllerCore->initContent()in Controller.php line 292 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Anyone knows how to solve this? Many thanks for any help. Link to comment Share on other sites More sharing options...
joseantgv Posted January 29, 2020 Share Posted January 29, 2020 (edited) Could you paste productcomments.php line 880? I suppose it has something like $product->getId(). Change it to $product->id. Or even better, contact module developer Edited January 29, 2020 by joseantgv (see edit history) Link to comment Share on other sites More sharing options...
NeoHub Posted January 29, 2020 Author Share Posted January 29, 2020 Hi, actually i've installed an old donate module that overridden the product page on front end. I deleted the module and the file productcontroller.php at override/controllers/front and it worked again Many thanks anyway! In the end helped the tip to get in contact with the module developer! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now