Jump to content

Comments Problem


Recommended Posts

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

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 by veni (see edit history)
Link to comment
Share on other sites

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

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

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

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 by veni (see edit history)
Link to comment
Share on other sites

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 by veni (see edit history)
Link to comment
Share on other sites

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

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

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/

  • Like 1
Link to comment
Share on other sites

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

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

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


$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 by Dominic78 (see edit history)
Link to comment
Share on other sites

							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

  • Like 1
Link to comment
Share on other sites

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

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 by Dominic78 (see edit history)
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 :)

 

attachicon.gifproductcomments.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

 

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

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

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

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 by sanax (see edit history)
Link to comment
Share on other sites

...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

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

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

  • 2 weeks later...
  • 3 weeks later...
×
×
  • Create New...