Community Forums

[1.4.0]Writing review bug

Bug reports here

[1.4.0]Writing review bug

Postby SamLar » Tue Mar 02, 2010 12:44 am

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
Last edited by i2Paq on Tue Mar 02, 2010 12:43 pm, edited 1 time in total.
Reason: Title fix
SamLar
 
Posts: 42
Joined: Tue Dec 22, 2009 6:20 am

Re: Writing review bug / v1.4

Postby rph » Tue Mar 02, 2010 7:57 am

Are you using special characters?
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2837
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [1.4.0]Writing review bug

Postby SamLar » Tue Mar 02, 2010 10:10 pm

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.42 KiB) Viewed 1466 times
SamLar
 
Posts: 42
Joined: Tue Dec 22, 2009 6:20 am

Re: [1.4.0]Writing review bug

Postby Daniel » Wed Mar 03, 2010 1:31 am

works for me
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5185
Joined: Fri Nov 03, 2006 10:57 am

Re: [1.4.0]Writing review bug

Postby SamLar » Wed Mar 03, 2010 2:48 am

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
SamLar
 
Posts: 42
Joined: Tue Dec 22, 2009 6:20 am

Re: [1.4.0]Writing review bug

Postby Daniel » Wed Mar 10, 2010 6:09 pm

maybe you have a space in your langUAGE files.


post a link to your site.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5185
Joined: Fri Nov 03, 2006 10:57 am

Re: [1.4.0]Writing review bug

Postby SamLar » Wed Mar 10, 2010 10:13 pm

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.php?route=product/product&product_id=116
SamLar
 
Posts: 42
Joined: Tue Dec 22, 2009 6:20 am

Re: [1.4.0]Writing review bug

Postby webvet » Wed Mar 10, 2010 11:36 pm

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!
Genuine, Honest Opencart Support @ http://webvetservices.com
User avatar
webvet
 
Posts: 260
Joined: Wed May 13, 2009 6:04 pm
Location: Shropshire, UK

Re: [1.4.0]Writing review bug

Postby Daniel » Thu Mar 11, 2010 2:10 am

possibly the Cufon script.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5185
Joined: Fri Nov 03, 2006 10:57 am

Re: [1.4.0]Writing review bug

Postby SamLar » Thu Mar 11, 2010 2:37 am

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
SamLar
 
Posts: 42
Joined: Tue Dec 22, 2009 6:20 am

Re: [1.4.0]Writing review bug

Postby Daniel » Fri Mar 12, 2010 4:36 pm

you can.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5185
Joined: Fri Nov 03, 2006 10:57 am

Re: [1.4.0]Writing review bug

Postby dlange » Mon Apr 04, 2011 9:19 pm

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).
dlange
 
Posts: 2
Joined: Mon Apr 04, 2011 9:09 pm

Re: [1.4.0]Writing review bug

Postby fatpora » Tue Apr 05, 2011 4:11 pm

i have the same problem, i dont know how to fix it, if anyone can help please do!!
fatpora
 
Posts: 6
Joined: Wed Dec 15, 2010 10:46 am

Re: [1.4.0]Writing review bug

Postby i2Paq » Tue Apr 05, 2011 5:05 pm

I'm having no problems with a clean 1.4.9.4 and the default theme.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

FREE manuals: ShowMe Guides OpenCart, Opencart Check List and Our Documentation section.

BUGs?: Known BUGS for All OC Versions.

[How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9858
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: [1.4.0]Writing review bug

Postby ameliaa » Sun Jun 05, 2011 5:50 am

Has this problem been solved? I'm having the same problem for two of my opencart based websites.
ameliaa
 
Posts: 25
Joined: Fri Jan 29, 2010 10:31 am

Re: [1.4.0]Writing review bug

Postby pb3131 » Wed Aug 24, 2011 11:10 pm

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...
pb3131
 
Posts: 8
Joined: Mon Mar 21, 2011 8:36 pm

Re: [1.4.0]Writing review bug

Postby thekman » Fri Oct 07, 2011 10:12 am

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.
thekman
 
Posts: 1
Joined: Fri Oct 07, 2011 10:06 am

Re: [1.4.0]Writing review bug

Postby Daniel » Fri Oct 07, 2011 1:41 pm

just added a fix on the svn.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5185
Joined: Fri Nov 03, 2006 10:57 am

Re: [1.4.0]Writing review bug

Postby mattwhi » Fri Jun 22, 2012 8:58 am

Sorry for bring an old thread up but I was experiencing this error, thank you so much for the fix, it worked perfectly ;)
mattwhi
 
Posts: 2
Joined: Fri Jun 22, 2012 8:52 am

Re: [1.4.0]Writing review bug

Postby ocstream » Mon Jun 25, 2012 4:18 pm

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 :)
ocstream
 
Posts: 3
Joined: Sun Jun 24, 2012 1:14 pm

Next

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 17 guests

Hosted by Arvixe Web Hosting