(reCAPTCHA V3) The response is invalid or malformed
The error:
Why am I seeing this error when using reCAPTCHA V3 for RSForm! Pro?
(reCAPTCHA V3) The response is invalid or malformed.
Possible causes:
1. Outdated RSForm!Pro System plugin
When using an out of date RSForm!Pro System plugin, it loads an out of date JavaScript file on your page which in turn causes some errors. You can check the versions you're using under System > Manage > Extensions > search for 'System - RSForm! Pro'. You can update this plugin simply by downloading it once again from our website and by installing it over your current one (this acts as an update).
2. Layout Auto-Generate is disabled
If by any chance your form's layout auto-generation option is disabled and if you add more components to your form, you will need to make sure you add their placeholders in the HTML of the Form Layout tab or else they will not show up on your form at all.
You'll need to either auto-generate the form's layout or add the reCaptcha placeholder to your custom layout:
{Recaptcha:body}
Make sure to replace 'Recaptcha' with your actual field name.
3. Multiple Form Instances
If you're loading the same form twice or multiple times on your page, please try keeping one single unique form instance on your page. If you do try to load multiple different form on the same page, their IDs for like any other elements on your page have to still be kept unique. Or you can use the RSForm!Pro Modal plugin in order to display multiple buttons with just one form instance.
4. JavaScript errors
Using the Check Browser Console feature (press F12 on your keyboard then click on Console; or right click on your page > Inspect > Console) you can see if there any JavaScript related errors returned on your page. If indeed such errors are returned, these could be caused by one of the followings:
- Missing files - In some situations, the component related files are not loaded on the page. If this is the case, you can try switching to a default Joomla! template, Protostar on Joomla! 3.x and Cassiopeia on Joomla! 4.x / 5.x. If then the reCaptcha works, then you'll need to find out what exactly is excluding these files from being loaded.
- Compressed files - If you're using optimization related tools, please have these temporarily disabled while testing this (also clear your Joomla! cache afterwards and properly refresh the form's page using CTRL+F5 before checking this once more).