本文介绍了网站所有者 Google 网站所有者的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了以下问题并在 recaptcha 上出错.我得到的错误是站点所有者错误:站点密钥无效".任何人都可以解决问题.这是我正在使用的 shopify 中的屏幕截图和附加代码.

 <script src='https://www.google.com/recaptcha/api.js'></script><div class="row">{% 包括 'custom_breadcrumb' %}<div class="col-md-3"><div class="sidebar-pages">{% 包含侧边栏页面"%}

<!-- 幸福保证页面的侧边栏条件-->{% if page.handle == "100-happiness-guarantee" %}<div class="sidbar_imges"><a href="/pages/100-happiness-guarantee"><img src="https://cdn.shopify.com/s/files/1/2502/0332/files/happiness_guarantee_22cf74cf-9eca-4155-b710-f90e45d3ee5d.png?11766646048781568141" alt=""></a>

{% 别的 %}{% 万一 %}<!-- 结束条件-->

<div class="col-md-9"><div class="page-content">{{ 页面内容}}

{% if page.handle == "contact" %}高<div class="contact-form form-vertical custom_contact">{% 表格'联系' %}{% if form.posted_successfully?%}<p class="note form-success">{{ 'contact.form.post_success' |t }}</p>{% 万一 %}{{ 表单错误 |default_errors }}<div class="grid grid--half-gutters"><div class="grid__item medium-up--half-half"><label for="ContactFormName">{{ 'contact.form.name' |t }}</label><input type="text" id="ContactFormName" name="contact[name]" value="{% if form[name] %}{{ form[name] }}{% elsif customer %}{{ customer.name }}{% endif %}">

<div class="grid__item medium-up--half-half"><label for="ContactFormEmail" class="{% if form.errors contains 'email' %}label--error{% endif %}">{{ 'contact.form.email' |t }}</label><input type="email" id="ContactFormEmail" name="contact[email]" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}" class="{% if form.errors contains 'email' %}input--error{% endif %}">

<label for="ContactFormPhone">{{ 'contact.form.phone' |t }}</label><input type="tel" id="ContactFormPhone" name="contact[phone]" pattern="[0-9\-]*" value="{% if form[phone] %}{{ form[phone]] }}{% elsif 客户 %}{{ customer.phone }}{% endif %}"><label for="ContactFormMessage">{{ 'contact.form.message' |t }}</label><textarea rows="10" id="ContactFormMessage" name="contact[body]">{% if form.body %}{{ form.body }}{% endif %}</textarea><div class="g-recaptcha" data-sitekey="6LecFDgUAAAAACl_oTnHA6zmvTv5v1ubdXyLVcgp"></div><input type="submit" class="btn" value="{{ 'contact.form.submit' | t }}">{% 尾形 %}

{% 别的 %}{% 万一 %}

解决方案

您的 API 密钥无效.生成一个新的.

https://developers.google.com/recaptcha/docs/faq#recently-my-recaptcha-widget-started-displaying-invalid-site-key-whats-happening

I am stuck to the following problem and getting error on recaptcha.The error which is i am getting is "ERROR for site owner: Invalid site key". Can any one respolve the problem. Here is the screenshot and attached code in shopify which I am using.

 <script src='https://www.google.com/recaptcha/api.js'></script>

<div class="row">
  {% include 'custom_breadcrumb' %}
  <div class="col-md-3">
    <div class="sidebar-pages">
      {% include 'sidebar-pages' %}
    </div>
          <!--     side bar condition for Happiness Guarantee page  -->
      {% if page.handle == "100-happiness-guarantee" %}
      <div class="sidbar_imges">
        <a href="/pages/100-happiness-guarantee"><img src="https://cdn.shopify.com/s/files/1/2502/0332/files/happiness_guarantee_22cf74cf-9eca-4155-b710-f90e45d3ee5d.png?11766646048781568141" alt=""></a>
      </div>
      {% else %}

      {% endif %}

   <!-- end condition     -->
  </div>
  <div class="col-md-9">
    <div class="page-content">
         {{ page.content }}
     </div>
    {% if page.handle == "contact" %}
hghf
    <div class="contact-form form-vertical custom_contact">
        {% form 'contact' %}

          {% if form.posted_successfully? %}
            <p class="note form-success">
              {{ 'contact.form.post_success' | t }}
            </p>
          {% endif %}

          {{ form.errors | default_errors }}

          <div class="grid grid--half-gutters">
            <div class="grid__item medium-up--one-half">
              <label for="ContactFormName">{{ 'contact.form.name' | t }}</label>
              <input type="text" id="ContactFormName" name="contact[name]" value="{% if form[name] %}{{ form[name] }}{% elsif customer %}{{ customer.name }}{% endif %}">
            </div>
            <div class="grid__item medium-up--one-half">
              <label for="ContactFormEmail" class="{% if form.errors contains 'email' %}label--error{% endif %}">{{ 'contact.form.email' | t }}</label>
              <input type="email" id="ContactFormEmail" name="contact[email]" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}" class="{% if form.errors contains 'email' %}input--error{% endif %}">
            </div>
          </div>

          <label for="ContactFormPhone">{{ 'contact.form.phone' | t }}</label>
          <input type="tel" id="ContactFormPhone" name="contact[phone]" pattern="[0-9\-]*" value="{% if form[phone] %}{{ form[phone] }}{% elsif customer %}{{ customer.phone }}{% endif %}">

          <label for="ContactFormMessage">{{ 'contact.form.message' | t }}</label>
          <textarea rows="10" id="ContactFormMessage" name="contact[body]">{% if form.body %}{{ form.body }}{% endif %}</textarea>
<div class="g-recaptcha" data-sitekey="6LecFDgUAAAAACl_oTnHA6zmvTv5v1ubdXyLVcgp"></div>
          <input type="submit" class="btn" value="{{ 'contact.form.submit' | t }}">

        {% endform %}
      </div>
{% else %}
{% endif %}
  </div>
</div>
解决方案

Your API key is invalid. Generate a new one.

https://developers.google.com/recaptcha/docs/faq#recently-my-recaptcha-widget-started-displaying-invalid-site-key-whats-happening

这篇关于网站所有者 Google 网站所有者的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-18 23:12