未登录的用户无法提交表单

时间:2017-08-07 作者:murcoder

我使用Mailchimp插件嵌入了一个Mailchimp新闻稿注册,该插件对登录用户和我的其他网站都很好。但在此页面上,未登录的用户无法单击表单的提交按钮。它只是没有效果,也没有出现错误消息。什么都没有发生。

EDIT: Could the problem be the fact, that there are two forms on the page, when the user isn\'t logged in and mailchimp can\'t figure out which input field are the right ones?! The weird thing is, that it works fine, if I use the option "convert text inputs to textarea", of the browser plugin \'web developer\'!

这是我的表格:

    <form class="snp-subscribeform snp_subscribeform layout_form cr_form cr_font" method="post">
  <script type="text/javascript">
    (function() {
      if (!window.mc4wp) {
        window.mc4wp = {
          listeners: [],
          forms: {
            on: function(event, callback) {
              window.mc4wp.listeners.push({
                event: event,
                callback: callback
              });
            }
          }
        }
      }
    })();
  </script>
  <div class="mc4wp-form-fields">
    <div rel="text" class="cr_ipe_item ui-sortable musthave footer-newsletter_firstname"> <input type="text" name="FNAME" placeholder="Firstname*" required=""></div>
    <div rel="text" class="cr_ipe_item ui-sortable musthave footer-newsletter_lastname"> <input type="text" name="LNAME" placeholder="Lastname*" required=""></div>
    <div rel="email" class="cr_ipe_item ui-sortable musthave footer-newsletter_email"> <input type="email" name="EMAIL" placeholder="E-Mail*" required=""></div><input type="hidden" name="INTERESTS[57aa0ce9f6]" value="ccbb36e6a3">
    <div rel="button" class="bld-el-cont bld-el-button cr_ipe_item ui-sortable submit_container"> <input type="submit" class="bld-el cr_button" value="Register" name="mc_newsletter_submit"></div>
    <div style="display: none;"><input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off"></div><input type="hidden" name="_mc4wp_timestamp" value="1502116875"><input type="hidden" name="_mc4wp_form_id" value="7342"><input type="hidden" name="_mc4wp_form_element_id"
      value="mc4wp-form-1"></div>
  <div class="mc4wp-response"></div>
相关插件列表:

隐藏我的wp(高级版)

  • 多功能wp安全性
  • buddypress
  • 联系人表单7
  • iThemes安全性
  • MailChimp für WordPress
  • 插件管理器
  • W3总缓存
  • wp SpamShield
  • wp扫描
  • 我猜其中一些插件正在阻止脚本、重定向或其他内容。我已经重命名/停用了插件All-In-One WP Security、iThemes Security、W3 Total Cache、WP SpamShield、WP Sweep和hide my WP,但没有任何更改。非常感谢您的帮助!

    1 个回复
    最合适的回答,由SO网友:murcoder 整理而成

    Problem solved.Ninja Popups 插件,因为它试图捕获任何表单提交。

    Mailchimp for Wordpress插件的贡献者在这里帮助了我:https://wordpress.org/support/topic/buddypress-and-mailchimp-form-doesnt-work-together/#post-9397642

    结束

    相关推荐

    恢复CForms II表单预置

    我有个客户不得不重新激活cforms II contact forms plugin. 它拒绝并给出以下错误:*Fatal error*: Cannot use string offset as an array in */var/www/vhosts/site.com/httpdocs/wp-content/plugins/cforms/lib_activate.php* <http://site.com/httpdocs/wp-content/plugins/cform