Formalicious and Recaptchav2 - form won't submit

Hi,

Using Modx 3.2.0, Formalicious 3.1.1, Formit 5.2.3

I get the following errors when trying to submit a form created in Formalicious…

[2026-06-25 10:45:34] (ERROR @ /home/www/public_html/core/components/formalicious/src/Formalicious/Snippets/RenderForm.php : 378) PHP warning: Undefined array key "step"
[2026-06-25 10:45:34] (ERROR @ /home/www/public_html/core/cache/includes/elements/modx/revolution/modsnippet/65.include.cache.php : 48) PHP warning: Undefined variable $hook

The Recaptcha is displaying but clicking submit does nothing. The form does submit if I remove the recaptcha from the form.

I have the following hooks:

recaptchav2,email,redirect

Can anyone help?

Thanks Janice

These are mere warnings. It’s not the reason why “recaptchav2” won’t work.


Do you get the recaptcha_error_message (“Please select the checkbox in the ReCaptcha image.”) or no visual feedback at all?

Maybe you could try debugging what happens when the hook is processed.
In the snippet “recaptchav2”, if the verification isn’t successful, the code just logs the information with the log level debug (modX::LOG_LEVEL_DEBUG) which usually isn’t visible in the MODX error log file.
Maybe change the line in the snippet (NOT in the file on the server) to use modX::LOG_LEVEL_ERROR instead, to see the return from the Google API. (Or alternatively temporarily change the system setting log_level).