Updating HikaShop and Joomla seems to have broke my ReCAPTCHA

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279193

-- url of the page with the problem -- : www.veggievore.com/advice/one-hour-custo...onsultation/checkout
-- 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.

Attachments:
Last edit: 7 years 1 month ago by scarney.

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279195

I have put my site back to where it matches the image I attached. So, now the Captcha box shows. It is an older version of the Hika Recaptcha v2 plugin because the option to display the ReCaptcha after the address is not available. The easiest page to see this is at www.veggievore.com/registration

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
7 years 1 month ago #279211

Hello,

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.

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279261

Thank you for your reply. I had read that entire thread before I submitted my ticket. I had also downloaded the latest HikaShop ReCaptcha v2 plugin but that actually did not fix the problem and actually in some ways broke it more, or at least differently.

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

Last edit: 7 years 1 month ago by scarney.

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279276

My host believes this may be a problem with the upstream IPv6 routing between them and Google. Apparently I am not the only person with odd communications to Google issues. They are working on it. I am hoping that they fix the problem. I will report back as soon as I know whether their connectivity is actually the problem.

Last edit: 7 years 1 month ago by scarney. Reason: grammar improvement

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 1 month ago #279263

Hi,

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.

Last edit: 7 years 1 month ago by nicolas.
The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279369

I was waiting till the host resolved their issue with their IPv6 routing to Google. That is resolved now and the problem still exists. The host believes the problem is with the template. I will inform you as I find out more. Thank you for the detailed explanation. I suspect that might come in very handy as I present this to the template developers. Here is what the hosting company had to say:

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 1 month ago #279393

Hi,

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.

The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
7 years 1 month ago #279477

Nicolas,
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.

Time to create page: 0.088 seconds
Powered by Kunena Forum