candh Posted March 10, 2018 Share Posted March 10, 2018 Hello, I've enabled the productcomment module in my Admin panel. When I clicked to test the comment feature, I was shown the following errors. Notice: Undefined index: product in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.php on line 166Notice: Trying to get property of non-object in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.phpon line 166Notice: Trying to get property of non-object in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.phpon line 166 Notice: Undefined index: product in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.phpon line 168Notice: Trying to get property of non-object in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.phpon line 168Notice: Trying to get property of non-object in /Users/candh/Sites/cache/smarty/compile/42/92/b5/4292b57f983b87f8f99e90da1d0835de6a62bf37.file.productcomments.tpl.php on line 168 I then cleared the cache by going to Performance and Clicking the "Clear Smarty cache and Autoload cache" button. It was successful. I checked again and the problem still exists. I then found this https://www.prestashop.com/forums/topic/302412-product-comments-errors-in-version-28/ But it was of no help because there is no $product variable being assigned inside public function hookProductTabContent($params) What can I do to resolve the errors? I'm running PrestaShop 1.5.6.2 The productcomments version is 2.9.1 I've also checked with 2.9 and it didn't help. Here is my hookProductTabContent($params): https://pastebin.com/dVZFXEKh Link to comment Share on other sites More sharing options...
candh Posted March 10, 2018 Author Share Posted March 10, 2018 I !!fixed!!! it by clicking on the "Reset" from the modules page. I also changed data: $('#id_new_comment_form').serialize() on line 66 on productcomments.js to data: $('#new_comment_form form').serialize() to make it work. !!CLOSED!!! 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