Browser: Mozilla Firefox Developer Edition
OS: Windows
Bricks Builder: 1.12.2
WordPress: 6.7.2
Issue Identified:
When a form is configured with Google reCAPTCHA and has a HoneyPot field enabled, an error occurs when submitting the form if the reCAPTCHA API keys are removed before disabling reCAPTCHA in the form settings .
Cause:
The error arises because the system continues attempting to validate reCAPTCHA even after the API keys are deleted, as the reCAPTCHA activation option in the form was not properly disabled.
Step-by-Step Solution:
If the error has already occurred:
-
Step 1: Re-enter the Google reCAPTCHA API keys in the settings.
-
Step 2: Go to the form with HoneyPot enabled and disable the reCAPTCHA option .
-
Step 3: Save changes, then remove the reCAPTCHA API keys .
-
Result: The form will work without errors, even with HoneyPot active.
To prevent the error in the future:
-
Step 1: Disable reCAPTCHA in the form settings first.
-
Step 2: Only remove the reCAPTCHA API keys after confirming reCAPTCHA is fully deactivated.
Recommendation for Developers:
Ideally, future updates should include an automatic check to verify if API keys are configured before attempting reCAPTCHA validation, avoiding this conflict.
This error is critical for users combining HoneyPot and reCAPTCHA, as it blocks form submissions if the deactivation order is not followed. We hope a permanent fix will be implemented!
Note: Always back up your site before making changes to critical configurations like API keys.