irvinlim / acf-recaptcha

Google reCAPTCHA plugin for Advanced Custom Fields on WordPress
https://wordpress.org/plugins/advanced-custom-fields-recaptcha-field/
MIT License
33 stars 12 forks source link

ERROR for site owner: Invalid site key #39

Open DoTooapp opened 5 years ago

DoTooapp commented 5 years ago

I keep having the ERROR for site owner: Invalid site key message.

  1. I added the site key to the recaptcha setting page
  2. Turn on recaptcha protection on the field group, when saved it turns off again. I use it on a frontend form which is loaded like this: $args = array( 'post_id' => 'new_post', 'new_post' => array( 'post_type' => 'contact', 'post_status' => 'publish' ), 'return' => '?contact-form-did-send=true', 'submit_value' => __('Send to DoToo team', 'dotoo') ); acf_form($args); Also see this post, he has the same issue. https://wordpress.org/support/topic/recaptcha-v3-17/#post-11381855

I use a V2 checkbox and have these domains entered: https://hbosafe.nl http://hbosafe.test https://www.hbosafe.nl

Would love to get a reply to know if this is an issue with the plugin or me.

irvinlim commented 5 years ago

Did you register your site as reCAPTCHA v3? I believe that wouldn't be supported, you have to use v2.

Specifically, this plugin is only to create a reCAPTCHA v2 checkbox like this: https://developers.google.com/recaptcha/docs/versions#checkbox

DoTooapp commented 5 years ago

@irvinlim thanks for replying, I actually have the V2 checkbox one since I expected the plugin not to support V3. I does work with the demo keys (third question here: https://developers.google.com/recaptcha/docs/faq) So that's weird to me.

Do you have any clue on what Im missing here?