Recaptcha stopped working on one of my websites. The ReCaptcha displays ok, clicking on "I'm Not a Robot" functions ok, but when I submit the form I get "The reCAPTCHA wasn't entered correctly. Please try it again."
I tried creating a new ReCaptcha l but I got the same result. Here's a link to one of the forms on the website: https://www.flaglermuseum.us/contact-the-public-affairs-director
The site is running:
CF 5 v 5.0.17
Joomla 3.9.4
Thanks in advance for your assistance.
Jose
Hi Jose,
The form fend appears to be working OK and the ReCaptcha data is submitted
name: Bob Testing
email: example@example.com
phone: 01234567890
comments: Testing
g-recaptcha-response: 03AOLTBLQPr7iMYiv2guji7nX5LlnSvVMrS491v_j4g2-Het0KD7afpP_g4YZDjtunubcqPFzy8pEX1pORTBm0sOpLn_dWjQ4jgSbtnBhyWt51Le2TBujh31HwOmZ73KMNRdlXeCkc3ehZeAjhuwePQx27YXcehB_7d3plaki_FaM7lvTbLHUStm3_FV-JqhSLrGMLYzwfOviu8reweweyXfiUrwKFQchHijkxXHqOqh_R8_rHeZ72dFYAyovY-Y-NPB-MIJLIy24FOLntf-_NpAxYmslQsbYPKvuLLn4SqqRwlQP5DneCwT7vTY61BX3RZiWrhwuxvtLKDUZqixwUL6E6qf_O1160QSzU55WsBVOFPTadgXGtUXDK04wFKARorYegRINLLdgzTxpag43gcSdH-PrWp5SKzdRNi9243_iK-jJZAA5vQ3xBexiczb6y9Saf6lmTbL5E
input_submit_5: Submit
There may be a problem with Joomla! routing losing the data on submission. Please try setting the form Action URL manually to
http://domain_name.com/index.php?option=com_chronoforms5&chronoform=form_name&event=submit (but with your domain and form name)
Bob
Hi Bob,
I changed the form action URL as you recommended but changing the protocol to https because the site runs on https and nothing. Just to make sure, I changed it in the HTML (Render Form) action under setup. I also tried it with http and got a browser warning that the information I was about to send was unsecure, but I still said yes and got the same recatpcha eror. I also tried changing the form method from File to Post, same result and to Get, which redirected me to the site's home page with the following URL on the browser (the form didn't submit):
https://www.flaglermuseum.us/index.php?name=my+name&email=my+email&phone=1234&comments=test&g-recaptcha-response=03AOLTBLRse6zJJtMJsBTGyz_wH2O9ny3eGwzqBhE6PPvxrsm4quHjXJErc6h_6a7ykzzHb96_OExY8KRJ5OHT1dazclwYYpKcrOYEVyzTvfVcHWTYbTzs0LSoX8Jlb1_tnDtCDuQf9VurYh0URNhehz-6GAgXZn0nI16zJ5QrL37EReA4_Ie5tG8U_63lMv1F4l0CUhNB5egra90r0JTej9q9c8Ikp3HaxWhzFinYXhfeDgStxl5jbFrsjkYRdVPEmKQZRtkWohnWMZKvO1ajKg_b3unGrFB3UKi6KkK3ccbFp9dNPTr-rYc8sf9T6Vc_hGpB8iswQ9fpHUtmWijMD_AXVAwLNMAOsSakOQT88hb53ecMNSxW6ZmJA3MKI8k6PDMkk_k0lE_FkvGOSP84Q-GGDw5LMxDEVftps4WbvWtn6TN592Y4DIu9JAhFSZeMiTDG5rbG_8CmdrGuiNlwLuutxSybAlG58VyhMmLB_HA4bQJL6-hK_AWW1lELLfUWN7vGamslo4kDmFj2SBLyKKRph4H4Te5gUQ&input_submit_5=Submit (my name and email redacted so I don't publish it in public)
What can I try next? Would it help you if I give you access to Joomla's control panel?
Jose
Hi Bob, I have additional information to add.
I recently migrated this website to a new server (same host, same type of box, just faster processor and more ram, same OS, etc.) I still have the old server so I went to the site on the old server and naturally ReCaptcha wasn't displaying. I logged into ReCaptcha and added the old server IP address (because I'm browsing the site via IP as DNS is pointing to the new server) and ReCaptcha immediately displayed (so it's connecting). I tried submitting the form and it worked perfectly!
Here's a URL to the form on the old server: https://208.43.28.58/contact-the-public-affairs-director (you might get https warnings, just ignore them)
So, I went back into ReCatpcha and added the IP address of the site on the new server (the site is IP based so it has it's on IP) and nothing. UGH! What could be going on? Could it be a PHP module that I should have on in the new server that I have off?
Jose
Hi Jose,
I don't know what is happening :-( By all means PM me a login and I'll take a quick look.
Bob
Bob, I got it!!!
I went to the old server and new server and launched PHP 7.2 settings to compare. The only difference was that the new server had allow url_fopen off. I turned it on and tested the form and it worked!
Can you elaborate on how url_fopen affects chronoforms?
Jose
Hi Bob, thanks for the explanation. I just wanted to know for future reference.
Thanks for your help as always! Enjoy the weekend.
Jose