veni Posted September 21, 2013 Share Posted September 21, 2013 Hello, i've been trying to set up the comments module but had no luck. I've seen taht some people reported problems too and followed their solutions like the one in the Github and deleting/uninstalling/reinstalling the module and keeps not working. When I click the tab (comments) I see nothing but "NO COMMENTS YET" (in spanish) and there is no way to post a new comment. Do any of you have any clue? Thanks. Nice work. Atte Veni Link to comment Share on other sites More sharing options...
vekia Posted September 21, 2013 Share Posted September 21, 2013 hello you use latest version of product comments module? Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 I think so. I downloaded the Presta Shop which had this module. Is it the last?I downloaded PrestaShop few days ago. Thanks for the help! Link to comment Share on other sites More sharing options...
vekia Posted September 21, 2013 Share Posted September 21, 2013 your website is online? if so, can you please share an url ? i will inspect the code Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 (edited) No sorry, I'm using WAMP in localhost. One thing, the tab appears huh but cannot write only says that there are not comments yet. PS:I'm still getting used to this great tool, it's awesome, for this reason i'm using localhost. Really thanks for the help, it's awesome to see a person like you so knowledgable helping me. Thanks. Edited September 21, 2013 by veni (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 21, 2013 Share Posted September 21, 2013 When you log in you will find that you can then leave comments. When not logged in it simply states 'No customer comments for the moment'. You can change the xlation of 'No customer comments for the moment' to 'No customer comments for the moment, returning customers please log in to leave comments'. Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 Yes i've tryed this too. I was logged in so I logged out and reentered the site in order maybe to refresh but did not work. Now I will try a new user. Will report if works. Thanks. Link to comment Share on other sites More sharing options...
El Patron Posted September 21, 2013 Share Posted September 21, 2013 I tested on a 1.5.5.0 on my localhost.....module out of the box from install...no changes works perfect in english and spanish... sell you my 1.5.5.0 install for 1,000,000 euros, I know it's alot, but I only need to sell one...or just the working module for half that Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 Half works! thanks, I've created a new user and now I have the possibility to send a message But when clicking "SEND" it says: "Title is incorrect Comment is incorrect Product not found" Have any idea? I want to really thank you for your effort, ideas and help.Now just hope it will eventually work. Thanks! Link to comment Share on other sites More sharing options...
El Patron Posted September 21, 2013 Share Posted September 21, 2013 personally, I don't know what you did before that could cause unpredictable results... it may be best to start from scratch, uninstall and delete the module... and install the attached productcomments v2.3 from a 1.5.5.0 pack productcomments.zip 1 Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 Same, now it works halfway by this I mean now I can see and fill the comment form but when I click send it returns this on a red box : Title is incorrect Comment is incorrect Product not foundWhat can it be? Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 (edited) WORKING Solved, I followed the GITHUB steps and now it works great! Thanks all for all the help you given me! I really appreaciate your effort and if at any time you need something please do not hesitate to ask me! PS: I've added 3 star ratings but when the comment is shown only appears one, is this normal? can this be modified? PS2: Unable to report. Edited September 21, 2013 by veni (see edit history) Link to comment Share on other sites More sharing options...
veni Posted September 21, 2013 Author Share Posted September 21, 2013 (edited) Now something even weirder is happening. Now I can post comments but one I report one comment or I change user, I am not able to report anymore any coment. I am not able to comment in all products. I'm sad because it started to look great. Thanks for patience. PS: It seems that I can only post where a new user has posted. Every new user can only post in one item. Edited September 21, 2013 by veni (see edit history) Link to comment Share on other sites More sharing options...
fcoitino Posted September 27, 2013 Share Posted September 27, 2013 (edited) veni ... What were the steps (from github) you took to solve your problem?Thank you! Edited September 27, 2013 by fcoitino (see edit history) Link to comment Share on other sites More sharing options...
veni Posted September 27, 2013 Author Share Posted September 27, 2013 veni ... What were the steps (from github) you took to solve your problem? Thank you! Hello, I followed https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 and it helped a lot I mean it helped me being able to comment and so on but then other problems appearled like I can only vote or report a comment once and I am not able to comment in more than one product. Weird and sad because now I'm not sure and I would love to use PrestaShop but I don't know how to fix this, Thanks for the help Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 Hi, I was also having the issue where I could write a review but then when I clicked send nothing happened. I deleted and re-installed but now if i enable the module you can navigate the site and categories but when you click on a product i get Server error page with the following error The website encountered an error while retrievinghttp://vapourmagic.com/shop/index.php?id_product=16&controller=product&id_lang=7. It may be down for maintenance or configured incorrectly. Error code: 500 Can anyone please shed some light on this for me Kind Regards Dom Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 Hi, I was also having the issue where I could write a review but then when I clicked send nothing happened. I deleted and re-installed but now if i enable the module you can navigate the site and categories but when you click on a product i get Server error page with the following error The website encountered an error while retrievinghttp://vapourmagic.com/shop/index.php?id_product=16&controller=product&id_lang=7. It may be down for maintenance or configured incorrectly. Error code: 500 Can anyone please shed some light on this for me Kind Regards Dom Hi Dom, for 500 or a blank page, you need to find the underlying error, review this post, get the error then you can search on that error http://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-500-error-or-blank-page/ 1 Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 Thanks EL Patron, Warning: asort() expects parameter 1 to be array, boolean given in /home/sites/vapourmagic.com/public_html/shop/modules/tmspecials/tmspecials.php on line 61 Fatal error: Call to undefined method ImageType::getFormatedName() in /home/sites/vapourmagic.com/public_html/shop/modules/productcomments/productcomments.php on line 713 is the error message reported, as it only happens when productcomments is enabled i am guessing that is where the fault. I would appreciate any advice you could offer with this Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 Thanks EL Patron, Warning: asort() expects parameter 1 to be array, boolean given in /home/sites/vapourmagic.com/public_html/shop/modules/tmspecials/tmspecials.php on line 61 Fatal error: Call to undefined method ImageType::getFormatedName() in /home/sites/vapourmagic.com/public_html/shop/modules/productcomments/productcomments.php on line 713 is the error message reported, as it only happens when productcomments is enabled i am guessing that is where the fault. I would appreciate any advice you could offer with this what version of prestashop are you having this problem with? What version of product comments? Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 what version of prestashop are you having this problem with? What version of product comments? Product Comments V 2.3 Prestashop version: 1.5.1.0 thank you Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 what version of prestashop are you having this problem with? What version of product comments? Hi, very odd. Can you post (use the <> in editor) the code moudules/productcomment/productcomment.php,please include 5 lines above and below line 713. Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 (edited) $this->context->smarty->assign(array( 'id_product_comment_form' => (int)Tools::getValue('id_product'), 'product' => new Product((int)Tools::getValue('id_product'), false, $this->context->language->id), 'secure_key' => $this->secure_key, 'logged' => (int)$this->context->customer->isLogged(true), 'allow_guests' => (int)Configuration::get('PRODUCT_COMMENTS_ALLOW_GUESTS'), 'productcomment_cover' => (int)Tools::getValue('id_product').'-'.(int)$image['id_image'], 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'criterions' => ProductCommentCriterion::getByProduct((int)Tools::getValue('id_product'), $this->context->language->id), 'action_url' => '', 'averageTotal' => (int)$average['grade'], 'too_early' => ($customerComment && (strtotime($customerComment['date_add']) + Configuration::get('PRODUCT_COMMENTS_MINIMAL_TIME')) > time()), 'nbComments' => (int)(ProductComment::getCommentNumber((int)Tools::getValue('id_product'))) )); return ($this->display(__FILE__, '/productcomments-extra.tpl')); } Edited October 1, 2013 by Dominic78 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 if (!$id_product_comment) continue; $comment = new ProductComment((int)$id_product_comment); $comment->validate(); } break; case 'delete': foreach ($product_comments as $id_product_comment) { if (!$id_product_comment) continue; $comment = new ProductComment((int)$id_product_comment); $comment->delete(); ProductComment::deleteGrades((int)$id_product_comment); } break; Let's do this..I am attaching a native product comment from a 1.5.1.0 installation. uninstall and delete existing productcomments module and install this one. also the code you posted is around line 173, not 713 productcomments.zip 1 Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 (edited) Thanks El patron the products now load although when i click the send button nothing happens when trying to post a comment Edited October 1, 2013 by Dominic78 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 Thanks El patron the products now load although when i click the send button nothing happens when trying to post a comment ave maria pues! (omg in Colombia)... not sure what is causing that....typically I'm not 'real' sure about most things... post your url here...you can delete it later...but I think you are having a problem above my pay grade. Is this an established shop? I mean would it be a huge deal to get 1.5.5.0 up and running? btw, you version was one of the first releases of 1.5.. Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 (edited) Hi, the domain is ******************** It is an established shop, someone came to me as they had been charged by someone to build the shop but it was left not working (about 4 or 5 months ago) i got it working for them but now they wanted to add customer comments amongst other things, but because of the structure it was first built in I am unsure how to upgrade it. the customer has a website ******************** but the online shop is at ******************** Edited October 1, 2013 by Dominic78 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 Hi, the domain is www.vapourmagic.com/shop It is an established shop, someone came to me as they had been charged by someone to build the shop but it was left not working (about 4 or 5 months ago) i got it working for them but now they wanted to add customer comments amongst other things, but because of the structure it was first built in I am unsure how to upgrade it. the customer has a website www.vapourmagic.com but the online shop is at www.vapourmagic.com/shop worked for me...clear your browser cache and cookies and retest http://vapourmagic.com/shop/index.php?id_product=21&controller=product&id_lang=7 1 Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 OMG cant believe i did not check that, Thank you so much your a legend Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 OMG cant believe i did not check that, Thank you so much your a legend glad that resolved it...and I need like 5400 more post to reach legend.... 1 Link to comment Share on other sites More sharing options...
Dominic78 Posted October 1, 2013 Share Posted October 1, 2013 Well with the issues i am having of late i am sure i can help you get there lol 1 Link to comment Share on other sites More sharing options...
El Patron Posted October 1, 2013 Share Posted October 1, 2013 Well with the issues i am having of late i am sure i can help you get there lol jajajaja...you better hurry I am the oldest mod on the forum... 1 Link to comment Share on other sites More sharing options...
sanax Posted October 3, 2013 Share Posted October 3, 2013 Let's do this..I am attaching a native product comment from a 1.5.1.0 installation. uninstall and delete existing productcomments module and install this one. also the code you posted is around line 173, not 713 productcomments.zip I've upload the latest .zip as included above but I still get this error: Title is incorrect Comment is incorrect Product not found I'm using version 1.5.5.0 Not sure where I go wrong My URL: www.christiaanbekker.com Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2013 Share Posted October 3, 2013 I've upload the latest .zip as included above but I still get this error: Title is incorrect Comment is incorrect Product not found I'm using version 1.5.5.0 Not sure where I go wrong My URL: www.christiaanbekker.com yes, same results here...both logged and non-logged...ave Maria pues (omg in Colombia) this forge report has been closed as 'fixed'. http://forge.prestashop.com/browse/PNM-1690 https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 please let the community know if you applied and it works for you. Link to comment Share on other sites More sharing options...
sanax Posted October 3, 2013 Share Posted October 3, 2013 yes, same results here...both logged and non-logged...ave Maria pues (omg in Colombia) this forge report has been closed as 'fixed'. http://forge.prestashop.com/browse/PNM-1690 https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 please let the community know if you applied and it works for you. I tried it but the first code change in js/tools.js does not exists. The last comment in the link also indicates that it's not working. Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2013 Share Posted October 3, 2013 I tried it but the first code change in js/tools.js does not exists. The last comment in the link also indicates that it's not working. replacing lines of code and be tricky business...and very time consuming... -To save time and mistakes back up any files that you are going to change -then replace the entire target file(s) with the fixed file(s)... tip: if you had custom code then using the backed up files, retrofit to new files... Link to comment Share on other sites More sharing options...
sanax Posted October 3, 2013 Share Posted October 3, 2013 (edited) replacing lines of code and be tricky business...and very time consuming... -To save time and mistakes back up any files that you are going to change -then replace the entire target file(s) with the fixed file(s)... tip: if you had custom code then using the backed up files, retrofit to new files... ...unfortunately, the code he posted in his js/tool.js does not exist in my 1.5.5.0 Therefor I can't make any changes. I checked both tools.js files but could not find the code he's referring too. Kinda back to zero! Edited October 3, 2013 by sanax (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2013 Share Posted October 3, 2013 ...unfortunately, the code he posted in his js/tool.js does not exist in my 1.5.5.0 Therefor I can't make any changes. I checked both tools.js files but could not find the code he's referring too. Kinda back to zero! how odd..well then just create it...I checked a native ps 1.5.5.0 (with pcomments) and I have the file... so just create a tools.js and place in subfolder js Link to comment Share on other sites More sharing options...
sanax Posted October 4, 2013 Share Posted October 4, 2013 how odd..well then just create it...I checked a native ps 1.5.5.0 (with pcomments) and I have the file... so just create a tools.js and place in subfolder js There is a tool.js but not the code he's referring too. Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2013 Share Posted October 4, 2013 replacing lines of code and be tricky business...and very time consuming... -To save time and mistakes back up any files that you are going to change -then replace the entire target file(s) with the fixed file(s)... tip: if you had custom code then using the backed up files, retrofit to new files... There is a tool.js but not the code he's referring too. maybe you didn't see my tip on this Link to comment Share on other sites More sharing options...
sanax Posted October 4, 2013 Share Posted October 4, 2013 maybe you didn't see my tip on this I will just disable the feature until there is a solution. Link to comment Share on other sites More sharing options...
sanax Posted October 9, 2013 Share Posted October 9, 2013 ...any solution to this problem yet? Link to comment Share on other sites More sharing options...
vekia Posted October 9, 2013 Share Posted October 9, 2013 hello have you tried with comments module from 1.5.6 version ? Link to comment Share on other sites More sharing options...
bannerclick Posted October 17, 2013 Share Posted October 17, 2013 The latest version on Github works for me! Link to comment Share on other sites More sharing options...
tdc666 Posted November 4, 2013 Share Posted November 4, 2013 (edited) i'm having this issue also. am i to understand that the only solution is to replace the js code? that's a bummer. Edited November 4, 2013 by tdc666 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 5, 2013 Share Posted November 5, 2013 js code? have you tried with latest version from github? Link to comment Share on other sites More sharing options...
tdc666 Posted November 5, 2013 Share Posted November 5, 2013 i don't know how that bithub thing works. i was able to copy/paste the code they had up over there to get it working, though. kind of a bummer i have to spend time patching modules to get them to work, but oh well. Link to comment Share on other sites More sharing options...
Recommended Posts