Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g-recaptcha error on submission (review, contact, return) #2663

Closed
markoRs opened this issue Feb 11, 2015 · 3 comments
Closed

g-recaptcha error on submission (review, contact, return) #2663

markoRs opened this issue Feb 11, 2015 · 3 comments

Comments

@markoRs
Copy link

markoRs commented Feb 11, 2015

On product pages - when posting reviews and omitting name, or rating, or review, in all cases only error for captcha is shown. I guess it has something to do with:

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()),

@markoRs
Copy link
Author

markoRs commented Feb 12, 2015

Just to add, new g-recaptcha doesn't allow to post a review on product pages, create return request, or enquiry (contact page). It always reports error, verify again. Tested on 2.0.1.1 and 2.0.1.2 on local server.

@markoRs markoRs changed the title New captcha issue on product.tpl g-recaptcha error on submission (review, contact, return) Feb 22, 2015
@danielkerr
Copy link
Member

i think this is because you are on localhost, php can not get your real IP. only enable captcha when you have a domain

@markoRs
Copy link
Author

markoRs commented Mar 8, 2015

Hi Daniel,

Tested live and it's not working. I don't know if the code below helps (contact.php). But captcha always reports error, cannot verify.
if (!$json['success']) {
$this->error['captcha'] = $this->language->get('error_captcha');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants