简体   繁体   English

“无效的验证码”总是在Wordpress Contact Form 7中发生

[英]“Invalid captcha” always happening in Wordpress Contact Form 7

I just added recaptcha to a contact form I have in a Wordpress site. 我只是将recaptcha添加到了我在Wordpress网站中拥有的联系表中。 I followed the steps here: 我按照这里的步骤操作:

How to add recaptcha 如何添加Recaptcha

So I created my recaptcha pair sitekey-secretkey and now they are configured in my Wordpress site as said in this manual. 因此,我创建了我的Recaptchasitekey-secretkey ,现在按照本手册中的说明在我的Wordpress网站中对其进行了配置。

I also added this div: 我还添加了这个div:

<div class="g-recaptcha" data-sitekey="mysitekey"></div>

But when I use the captcha, it always says " Invalid captcha ". 但是,当我使用验证码时,它总是显示“ Invalid captcha ”。 Why is this happening? 为什么会这样呢? I followed all steps. 我遵循了所有步骤。

I had the same problem when migrating to a new server but with differenct contact form plugin. 迁移到新服务器时,我遇到了同样的问题,但是使用了不同的联系表单插件。

I found this which says: 我发现说:

 allow_url_fopen setting was not properly “on”

Unfortunately, that was already on in my case, so I was unable to fix the issue. 不幸的是,就我而言,这已经存在,因此我无法解决此问题。 Maybe it will work for you. 也许它将为您工作。

  1. Go to Google's reCAPTCHA admin page. 转到Google的reCAPTCHA管理页面。
  2. Register your site. 注册您的网站。
  3. Get a site key and secret key. 获取站点密钥和秘密密钥。

Copy the key pair into the WordPress admin screen of the site you registered. 将密钥对复制到您注册的站点的WordPress管理屏幕中。

  1. Go to the admin menu Contact > Integration. 转到管理菜单联系>集成。
  2. Find reCAPTCHA panel and click Configure Keys. 查找reCAPTCHA面板,然后单击“配置密钥”。
  3. Copy the site key and secret key into the fields and save them. 将站点密钥和秘密密钥复制到字段中并保存。

For more information follow this link : https://contactform7.com/recaptcha/ 有关更多信息,请单击以下链接: https : //contactform7.com/recaptcha/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM