- Posts: 190
- Thank you received: 2
Updating HikaShop and Joomla seems to have broke my ReCAPTCHA
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 7.1.8
-- Browser(s) name and version -- : Chrome for Windows Version 60.0.3112.113 (Official Build) (64-bit)
-- Error-message(debug-mod must be tuned on) -- : Error
We couldn't contact the reCAPTCHA server to verify your answer. Please try again.
I upgraded my HikaShop and my Joomla and did not test but was just informed that my ReCAPTCHA is no longer working. This just broke. I have logged into my ReCaptcha page and Google and I have the correct public and private keys which have been configured on my HikaShop reCAPTCHA plugin for years. I found some similar problems reported here and found in this forum a link to
www.hikashop.com/support/documentation/7...-with-recaptcha.html
I downloaded the plugin and things got worse. I uninstalled the previous plugin and things are still worse. Basically the reCAPTCHA no longer displays. I wonder if this is because I had two CAPTCHA plugins enabled on my site. I am thinking I only need one.
Captcha - ReCaptcha
HikaShop ReCaptcha v2
Here is a page where the CAPTCHA should be working. It should first display and then second it should work. It was displaying and not working but now it is neither displaying or working.
I have embedded a screenshot of the page when the Captcha was displaying but the Error message displayed.
I would sure like some more clues as to what might have made this stop working. I am happy to give you access.
Also noticed after installing the HikaShop ReCaptcha v2 again that the Version and Date do not display properly in the Extensions manage area:
Version displays: {__PLUGIN_VERSION__}
Date displays: {__DAY__} {__MONTH__} {__YEAR__}
ALSO: I would LOVE to display the ReCAPTCHA once it is working again below the Address Information section. But, when I selected the address option it did not display even the word Captcha which is what is being displayed now.
Please Log in or Create an account to join the conversation.
The ReCaptcha shows again now that I rolled back my Recaptcha v2 software. But, it still does NOT work. The error is still there as follows:
Error
We couldn't contact the reCAPTCHA server to verify your answer. Please try again.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Checking that thread will probably help you :
www.hikashop.com/support/forum/install-u...ha-server-error.html
Please Log in or Create an account to join the conversation.
I do have a message in with my host about the possible php.ini configurations although I am pretty sure they are going to report back that the settings they have are correct. This problem did not exist until I updated my HikaShop and my Joomla version.
I want to make sure that this is the page to download the latest HikaShop Recaptcha v2:
www.hikashop.com/support/documentation/7...-with-recaptcha.html
Is that the correct location. I just installed it again and now the Recaptcha does not even display the Recaptcha box and images at all.
Thanks, Sean
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The ReCaptcha plugin of HikaShop uses both cURL and file_get_contents (both functions provided by PHP/the server) to connect with the ReCaptcha server in order validate the captcha answer of the user.
That error indicates that something prevent the server from contacting the ReCaptcha server.
It could be something on the network of the hosting blocking the request, the ReCaptcha server being down (which it isn't at the moment), or directly something on the server itself (cURL not being available, file_get_contents being blocked, or firewall restrictions blocking outgoing communications with the outside, etc).
No one else has issues with the ReCaptcha plugin and the latest versions of HikaShop and Joomla, so I don't think that it is linked to that.
As you said, even when you rolled back with an old version of the website, you still had the problem. So it loooks like a server issue. And we can't help with that. You need to check with your hosting support I'm afraid.
And yes, that link is were you can download the latest version of the ReCaptcha plugin.
Please Log in or Create an account to join the conversation.
I looked into the issue on the registration page, and when I set the template for the registration to Protostar, the captcha renders fine. This makes me feel like there's something in the "Rasa2 - Veggivore Top" template that could be conflicting with the rendering of the recaptcha because there is a Chrome Developer Tools console error that says: Error: Missing required parameters: sitekey
So I don't think the captcha public key is being properly passed to the recaptcha service from template on the registration page.
I will send this information and the information from you to the template developer and see what they say.
Sean
Please Log in or Create an account to join the conversation.
The problme is linked to the template, then it must come from the view overrides they have which must tweak the registration page in a way that the recaptcha plugin doesn't understand.
So you'll probably have to rename some files related to the registration page display in the templates/YOUR_TEMPLATE/html/ sub folders.
Please Log in or Create an account to join the conversation.
Thank you again for the helpful hints. My template guys found the problem. It was in the template but it was not their fault. I had previously added a recaptcha code snippet into the header of the template and it did not include the keys. Somehow previously this was not being triggered and instead the keys from your plugin were being processed.
Anyhow, I have removed the offending code snippet and all is well.
Thanks again.
Sean Carney
Please Log in or Create an account to join the conversation.