- Posts: 293
- Thank you received: 9
Support for Google No CAPTCHA reCAPTCHA
My clients are really asking for this.
Thank you.
Please Log in or Create an account to join the conversation.
I created a feature request ticket in order to update the reCaptcha plugin.
[Edit] In fact, Nicolas already created the feature request one week ago
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Joomla template club, Hikashop's partner: www.jpwebseo.com
Our Joomla 3.5 tutorials: joomlagroup.com
Please Log in or Create an account to join the conversation.
Here is a beta of the plugin with the support of noCAPTCHA reCAPTCHA:
Please log in or register to see it.
Please note that this is a separate plugin from the other ReCaptcha plugin so you'll have to disable the old one and configure the new one if you're already using the old one.
Thank you in advance for your feedback so that we can publish it.
Please Log in or Create an account to join the conversation.
Error
We couldn't contact the reCAPTCHA server to verify your answer. Please try again.
I installed this on our development site:
arthrem.co.nz/xla/
Please Log in or Create an account to join the conversation.
We don't have the problem on our end. This indicates an issue with the server-to-server communication when verifying the captcha.
Could it be that your server is not allowed to open connections to the outside ? That would explain why you get the error but not us.
Please Log in or Create an account to join the conversation.
Google reCaptcha2 is already working fine on the Contact Us page, so it isn't a server connection issue.
arthrem.co.nz/xla/contact-us
Please Log in or Create an account to join the conversation.
I did again a test on our end with the plugin on both the contact form and the registration form and both worked for me.
Could you temporarily add the code:
var_dump($getResponse);var_dump($answers);exit;
after the line:
$answers = json_decode($getResponse, true);
in the file plugins/system/recaptcha2/recaptcha2.php and do a test again ? It should display a blank page with the debug of the data coming back from Google. Please provide that data so that we can see what's going on.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
This indicates that your server was not able to connect with the recaptcha server.
Normally, in that case, you should find a warning message in the PHP error log of your web server for that error.
That might provide more information on why it couldn't connect with it.
Could you look for that error message ?
Please Log in or Create an account to join the conversation.
arthrem.co.nz/xla/contact-us
Please Log in or Create an account to join the conversation.
Kind regards,
William van Veen
Wveen.com
Please Log in or Create an account to join the conversation.
So why do it works on my server and not yours ?
Especially that the error comes from the file_get_contents PHP function which is used to contact ReCaptcha.
I suppose that RSForm must use something else than file_get_contents to contact ReCaptcha and that's why they don't get the problem. Still, it's not because their method works than ours is wrong. So I still believe that it comes from a server issue.
Normally, in that case, you should find a warning message in the PHP error log of your web server for that error.
That might provide more information on why it couldn't connect with it.
Could you look for that error message ?
@wveencom:
I can't do much on that. The width of the zone is defined completely on the Google side. It's great that it works for you too.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What do you mean by "verification is not displayed" ?
I don't understand your screenshot. What is the grey area on it ?
Could you provide a link to that page ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
ivan599 wrote: poslovniweb.com/demo2/
This is a form from RSform, obviously having nothing to do with HikaShop... I don't even see anything HikaShop on that site. So, you're in the wrong forum...
However, and just for the record, RSform offers a free ReCaptcha 2 plugin, which you can download from their site when logged in with a valid, actual account.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
I have installed the second version of the Hikashop-recaptcha plugin.
I also experienced the following error after submitting the registration form.
"We couldn't contact the reCAPTCHA server to verify your answer. Please try again."
Anybody has an idea?
Thanks.
Ali
Please Log in or Create an account to join the conversation.
string(22) "{ "success": false }" array(1) { ["success"]=> bool(false) }
nicolas wrote: Hi,
I did again a test on our end with the plugin on both the contact form and the registration form and both worked for me.
Could you temporarily add the code:
var_dump($getResponse);var_dump($answers);exit;
after the line:
$answers = json_decode($getResponse, true);
in the file plugins/system/recaptcha2/recaptcha2.php and do a test again ? It should display a blank page with the debug of the data coming back from Google. Please provide that data so that we can see what's going on.
Please Log in or Create an account to join the conversation.
if you activate the Captcha - ReCaptcha plugin and insert the public and private keys once, even though you disable it again, it creates the problem. From the very beginning you should not use the Captcha - ReCaptcha plugin ever...
Please Log in or Create an account to join the conversation.