How to reproduce the issue, including custom code if needed.
Observed behavior
Error observed regarding the Recaptcha_Render snippet that was appearing whenever the page with the contact form was loaded. Found a fix.. but the form in general is not sending or redirecting. Still investigating but wondering if anyone else has had issues? I know this is related to the 3.2.4 update because the form sucessfully worked last week.. just prior to my update to PHP 8.4 and MODx 3.2.4
Expected behavior
How it should behave after following the steps above.
Environment
MODX version tagged when creating the issue, Apache or NGINX with version, MySQL version, browser, etc. Any relevant information.
Is it a timing issue? i.e. if you send within two minutes, does it work? Do you have the bit of code that shows if there’s an error with the recaptcha?..
The error in the dashboard occurs when the form loads, and is not related to hiting the send or even filling out the captchaV2. Initially — I was getting the images, but now it’s just the prove your human checkbox. Recaptcha has always been a pickle to work with, and I find them very frustrating in general. Is there another method of combating the spam that does not include Google?
I found Form Protection for MODx from Jay Gilmore and loaded it. Thought I would try that route. Although… just wondering about when or how to generate the toke. Also, curious as to whether I need workemail:blank, (the honey pot trap for bot) or the text:stripTags`. I “think” that stripTags has been incorporated in current version of FormIt, so maybe not.
I was able to solve it. I did have a missing backward tick mark, but the form still did not work.
Then I followed an important philosphy: If all else fails, read directions. Did this, and realized that after installing, and setting everything up, I forgot to flush the cache. Doing so resulted in the form successfully being submitted followed by the page redirect.
The form mail did go to myjunk mail, but I resolved this by setting up a DMARC.
So far so good, and I have to say — so nice to not have to force people to pick out the squares with a bicycle in it.