News:

Looking for documentation? Take a look on our wiki

Main Menu

message: "The CAPTCHA solution was incorrect." when ask question product

Started by carsten888, August 14, 2017, 13:53:20 PM

Previous topic - Next topic

carsten888

When a user asks a question about a product they get this message:
QuoteThe CAPTCHA solution was incorrect.
but on the page there is no captcha at all.

VM 3.2.2
J 3.7.4

jenkinhill

I assume that you have ReCaptcha enabled for your site, and that "Use ReCaptcha for recommendations and 'Ask a question'" is selected in VM Configuration/Shopfront?  If so the ReCaptcha should show on the ask question form. If it does not show them maybe you are using a template override?  The captcha code in components/com_virtuemart/views/askquestion/tmpl/form.php  is:

<div class="submit">
<?php // captcha addition
echo $this->captcha;
// end of captcha addition 
?>

            <div>
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

carsten888

yes, its configured to use captcha.
no overrides.

This is the html output:
<div id="jform_captcha" class="g-recaptcha  required" data-sitekey="6Les7s4SAAAAADDhocqHbulmZH1CsOWCO7hlLMu_" data-theme="" data-size="normal"></div>
but its not displaying anything. I checked the css, its just display block, so it should show.
While in that chrome-inspection window I noticed an alert for an error. Maybe that would explain.

Uncaught TypeError: Cannot read property 'autocomplete' of undefined
    at eval (eval at <anonymous> (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:2), <anonymous>:11:17)
    at eval (eval at <anonymous> (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:2), <anonymous>:40:3)
    at eval (<anonymous>)
    at /media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:2
    at Function.globalEval (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:2)
    at text script (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:4)
    at Xb (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:4)
    at y (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:4)
    at c (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:4)
    at Object.send (/media/jui/js/jquery.min.js?bdf2ecc2792ee32906c6b0d80e3f8919:4)

jenkinhill

The data-theme is missing in your example. Normally this would be light or dark, depending on the selection made in the plugin - eg data-theme="dark"
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

carsten888

It was set to 'light'. Then I saved it again (just to make sure it was set in the database and was not some default in a newer version). Then on the form it gives this message:



I checked and checked and copy-pasted again just to make sure, just same message. Ready to try another captcha. (now which one does that friendly 'I'm not a robot'-checkbox?)

jenkinhill

Quote from: carsten888 on August 20, 2017, 14:44:59 PM
(now which one does that friendly 'I'm not a robot'-checkbox?)

The default Joomla CAPTCHA - reCAPTCHA  plugin does this when set to Version 2.0 ...............
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

carsten888

Quote from: jenkinhill on August 20, 2017, 15:15:22 PM
Quote from: carsten888 on August 20, 2017, 14:44:59 PM
(now which one does that friendly 'I'm not a robot'-checkbox?)

The default Joomla CAPTCHA - reCAPTCHA  plugin does this when set to Version 2.0 ...............
I got mine set to version 2 and it just used to do the google text-images thing. When I go to plugins > catpcha there is only one plugin. What am I overlooking here?

J 3.7.4

(sorry about going wildly off-topic here)

jenkinhill

There is only the one plugin. Google serves the image captcha or the robot tickbox depending on the IP address and some other elements https://security.googleblog.com/2014/12/are-you-robot-introducing-no-captcha.html
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

carsten888

Got it working!

Deleted the key, made a new one, deleted the joomla cache, worked.

thanks a lot!