Page 1 of 2

[1.4.0]Writing review bug

Posted: Tue Mar 02, 2010 8:44 am
by SamLar
Hey there!

I think thats a bug at least I can't find a way to make it work.
Easily it's the following - just go to a product - go into the details and click the tab for review.
Write a review.
For me a message comes up :

Error: Review Name must be greater than 3 and less than 25 characters!

Even if the name has more then 3 characters this comes up and can't post a review.

Review from backend works fine.

cheers
sam

Re: Writing review bug / v1.4

Posted: Tue Mar 02, 2010 3:57 pm
by rph
Are you using special characters?

Re: [1.4.0]Writing review bug

Posted: Wed Mar 03, 2010 6:10 am
by SamLar
ahem... no. no special charachters.

If I just type lets say "aaaaaaaa" or "55555555" or a acombination or whatever.... I always get the same error.

Error: Review Name must be greater than 3 and less than 25 characters!

review.jpg

That's the error message I get - review.jpg (42.32 KiB) Viewed 8141 times


Re: [1.4.0]Writing review bug

Posted: Wed Mar 03, 2010 9:31 am
by Daniel
works for me

Re: [1.4.0]Writing review bug

Posted: Wed Mar 03, 2010 10:48 am
by SamLar
Hi Daniel,

I tried it n different browsers - even on mac on an other machine with always the same result.

Any suggestions? Maybee some option in the backend? Maybee a server setting?

No clue here

Re: [1.4.0]Writing review bug

Posted: Thu Mar 11, 2010 2:09 am
by Daniel
maybe you have a space in your langUAGE files.


post a link to your site.

Re: [1.4.0]Writing review bug

Posted: Thu Mar 11, 2010 6:13 am
by SamLar
Hi Daniel,

a space... don't know mate.
This is the link to a product. Just try to write a review:
http://bsbooks.juuceclients.com/index.p ... uct_id=116

Re: [1.4.0]Writing review bug

Posted: Thu Mar 11, 2010 7:36 am
by webvet
SamLar

I have followed your link and see what you mean. I got the same error report.

However - the review option working fine on my v1.4.0 store so don't think this is a genuine bug. Sorry not to be more helpful, but it seems like something at your end!

Re: [1.4.0]Writing review bug

Posted: Thu Mar 11, 2010 10:10 am
by Daniel
possibly the Cufon script.

Re: [1.4.0]Writing review bug

Posted: Thu Mar 11, 2010 10:37 am
by SamLar
that's not it.

I deactivated the cufon script - negative.

I thought to try my luck by reiinstalling partially files of opencart as languages and so on. As I see you released 1.4.2 I'm using 1.4.1. Can I just replace files or not?

cheers

Re: [1.4.0]Writing review bug

Posted: Sat Mar 13, 2010 12:36 am
by Daniel
you can.

Re: [1.4.0]Writing review bug

Posted: Tue Apr 05, 2011 5:19 am
by dlange
I have the latest OC, Problem: When a review is posted it says "Error: Review Name must be between 3 and 25 characters!" even though there are normal characters in the name.
I see other people are having the problem but no solutions (that I can find) does anyone know the fix??
(ps - OC has to be the best shopping cart system I have seen from customer AND admin, keep up the great work guys).

Re: [1.4.0]Writing review bug

Posted: Wed Apr 06, 2011 12:11 am
by fatpora
i have the same problem, i dont know how to fix it, if anyone can help please do!!

Re: [1.4.0]Writing review bug

Posted: Wed Apr 06, 2011 1:05 am
by i2Paq
I'm having no problems with a clean 1.4.9.4 and the default theme.

Re: [1.4.0]Writing review bug

Posted: Sun Jun 05, 2011 1:50 pm
by ameliaa
Has this problem been solved? I'm having the same problem for two of my opencart based websites.

Re: [1.4.0]Writing review bug

Posted: Thu Aug 25, 2011 7:10 am
by pb3131
dlange wrote:I have the latest OC, Problem: When a review is posted it says "Error: Review Name must be between 3 and 25 characters!" even though there are normal characters in the name.
I see other people are having the problem but no solutions (that I can find) does anyone know the fix??
(ps - OC has to be the best shopping cart system I have seen from customer AND admin, keep up the great work guys).

Having the same problem - seems to be going around. I am using

Version 1.4.9.3

of the sweetest little cart I know...

Re: [1.4.0]Writing review bug

Posted: Fri Oct 07, 2011 6:12 pm
by thekman
I know this is a really old post but I came across the same problem today and found the answer. When I debugged the code I found that the JSON was trying to send an empty name field even when the field had something entered into it. It turned out that the newsletter mod which I had installed was also making use of an input field with the same name, and obviously this was always empty when trying to send a review, hence the error message.

The simple fix was to replace the following in /catalog/view/theme/default/template/product/product.tpl:

Code: Select all

<input type="text" name="name" value="" />
with this:

Code: Select all

<input type="text" name="revname" value="" />
and then in the JSON part at the end of the same file, to replace:

Code: Select all

data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
with this:

Code: Select all

data: 'name=' + encodeURIComponent($('input[name=\'revname\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
Thus changing the field names used from name to revname. This allowed both the reviews and newsletter mod to coexist happily together. Hope that helps someone else in the same situation.

Thanks,
Kman.

Re: [1.4.0]Writing review bug

Posted: Fri Oct 07, 2011 9:41 pm
by Daniel
just added a fix on the svn.

Re: [1.4.0]Writing review bug

Posted: Fri Jun 22, 2012 4:58 pm
by mattwhi
Sorry for bring an old thread up but I was experiencing this error, thank you so much for the fix, it worked perfectly ;)

Re: [1.4.0]Writing review bug

Posted: Tue Jun 26, 2012 12:18 am
by ocstream
thekman, thanks for posting your fix. I had the same problem with a OC 1.5.3.1

I replaced the code using Notepad, uploaded, and it fixed it perfectly :)