pe7er / hCaptcha

A simple CAPTCHA Plugin using the hCaptcha service to protect your Joomla site against SPAM
13 stars 7 forks source link

hCaptcha set up failure #45

Closed joomlady closed 8 months ago

joomlady commented 10 months ago

A client reported that recaptcha v2 was not working on her J 3.10.12 site. When someone clicked the robot question it just spun and would not let you proceed. This has never happened before and over the years I've had over 30 sites using this captcha. It's happening on all my joomla sites on 2 servers. I discovered hcaptcha and followed the instructions to download, install, obtain site keys, and set it as default. I disabled the reCaptcha . I went to the emial form on the Contact page and no hCaptcha, just an ERROR notice "Captcha plugin not set or not found. Where did I mess up? Earlier I got a notice that my site key had been changed and I replied that I hadn't done it. Both site keys were on the hCaptcha website so I Archived the one that I did not use. and completed the set up of the other site key. Any ideas?

pe7er commented 10 months ago

A client reported that recaptcha v2 was not working on her J 3.10.12 site. When someone clicked the robot question it just spun and would not let you proceed.

Google has changed something at their end. If you have Mootools on the front-end of your website (default in Joomla 3), then Joomla's default reCaptcha does not work anymore.

I discovered hcaptcha and followed the instructions to download, install, obtain site keys, and set it as default. I disabled the reCaptcha . I went to the emial form on the Contact page and no hCaptcha, just an ERROR notice "Captcha plugin not set or not found. Where did I mess up? Earlier I got a notice that my site key had been changed and I replied that I hadn't done it. Both site keys were on the hCaptcha website so I Archived the one that I did not use. and completed the set up of the other site key. Any ideas?

I've just added the hCaptcha plugin for Joomla 4 (latest version 1.4.2) to a Joomla 4 site and did not experience any issues.

Did you configure the "CAPTCHA - hCaptcha" plugin correctly? Did you copy the hCaptcha "Site Key" to the "Site Key" field and the "Secret key" to the "Secret key" field?

Did you change the Global Configuration of your site? Global Configuration > [Site] > Default Captcha: "CAPTCHA - hCaptcha"

joomlady commented 10 months ago

Thank your for your response, pe7er.

Did you configure the "CAPTCHA - hCaptcha" plugin correctly? Did you copy the hCaptcha "Site Key" to the "Site Key" field and the "Secret key" to the "Secret key" field?

Did you change the Global Configuration of your site? Global Configuration > [Site] > Default Captcha: "CAPTCHA - hCaptcha"

Apparently not. I missed something on the hCaptcha page, I suppose. I downloaded the zip, got the keys and put them in, changed the default, everything listed in the very clear directions, but the hCaptcha page wasn't immediately intuitive for me. I will have to go back and start over. I've since found out on the joomla.org forum that everyone posting was able to install Hcaptcha on their J.3 sites without any problems.

pe7er commented 10 months ago

Apparently not. I missed something on the hCaptcha page, I suppose. I downloaded the zip, got the keys and put them in, changed the default, everything listed in the very clear directions, but the hCaptcha page wasn't immediately intuitive for me. I will have to go back and start over. I've since found out on the joomla.org forum that everyone posting was able to install Hcaptcha on their J.3 sites without any problems.

Can you please let me know if it works? And what went wrong when setting it up? I could add some extra instruction on the plugin's configuration page to make it more clear what you have to do to get it to work.

joomlady commented 10 months ago

Can you please let me know if it works? And what went wrong when setting it up? I could add some extra instruction on the plugin's configuration page to make it more clear what you have to do to get it to work.

Yes, I did get it to work. The only thing I did was change the Name under Basic Info on the site configuration form. I had used a word relating to the name of my business; then I changed it to the first word of the site's name. The hCaptcha block appeared on the email form on the site. Then I ran a test of the shopping cart. hCaptcha did not appear when I was checking out but it did work. I received a receipt from paypal and a copy of my test email. I have about 10 more sites on which to install hCaptcha so I'll do it the same way and see if it works on other sites. Thank you.

joomlady commented 10 months ago

Yesterday I added another site to hCaptcha. It doesn’t work. I’ve gone over it multiple times. On your side the new site is set up the same as the first except for Basic Info/Name, Sitekey, and Domain name. On the plugin on the site the secret and site keys are OK. hCaptcha is enabled. Default captcha is set for hCaptcha and the reCaptcha has been disabled.

At this point I will go through the rest of my sites and set up hCaptcha for each. If any start working maybe I’ll see a pattern

Thank you.

pe7er commented 10 months ago

Then I ran a test of the shopping cart. hCaptcha did not appear when I was checking out but it did work. I received a receipt from paypal and a copy of my test email. I have about 10 more sites on which to install hCaptcha so I'll do it the same way and see if it works on other sites. Thank you.

Which shopping cart do you use? Does the developer offer its own Captcha plugins for that shopping cart?

Or does the shopping cart support Joomla's Captcha's? If not, this hCaptcha plugin does not work either...

joomlady commented 10 months ago

I tried to set hCaptcha on another site this morning and it worked immediately.

The one that I couldn’t get to work I did it all over again as a new site after archiving the one that didn’t work. New Name, new site key , etc. No luck.

Score 2 sites work; 1 failure.

I’ll keep adding other sites.

joomlady commented 10 months ago

Eshop. Thank you for the info. I’ll check with Eshop support.

joomlady commented 9 months ago

I had a strange failure this morning. I've installed hCaptcha without issue on 6 Joomla v.3 sites now. The most recent one looked good on the email form. I check them by sending an email to the site owner. The hCaptcha box was there, I clicked the I am human box and the challenge box opened. I did that and clicked verify and a check mark appeared as it's supposed to. I clicked Send Email and got an error message: "Unable to connect to the hcaptcha.com servers Invalid field: Captcha" I tried it on PHP 8.0 and 8.1. Same result. Help!

pe7er commented 9 months ago

It's a weird issue that the hCaptcha works okay (it's displayed) but at the same time it does not work on submit (the "Unable to connect to the hcaptcha.com servers, Invalid field: Captcha" error). Could it be a temporary glitch with the hcaptcha.com servers ?

I've tested hcaptcha-j3-1.4.2.zip (j3 version 1.4.2) on a Joomla! 3.10.12 website using PHP 8.0.30. But I cannot reproduce the issue that you reported. On my test site the Contact Form + User Registration Form are both protected by the hCaptcha challenge. After solving the Captcha, I can submit both forms and they both work correctly.