【问题标题】:Contact Form 7 is not working when submitting for the first time but it works fine when second time sumbit button is pressedContact Form 7 在第一次提交时不起作用,但在第二次按下 sumbit 按钮时它工作正常
【发布时间】:2019-09-15 03:19:49
【问题描述】:

联系表格 7 - WordPress - 联系表格 7 在第一次提交时无法正常工作,但当我第二次提交相同的表格时它工作正常。 第一次发生错误是“尝试发送您的消息时出错。请稍后再试。”

【问题讨论】:

  • 您需要提供更多信息,以便任何人能够帮助您。
  • 这里的错误完全一样...有什么解决办法吗?
  • 您使用的是浏览器隐私窗口吗?只有这个问题出现在私人窗口中

标签: html wordpress contact-form-7


【解决方案1】:

似乎首先检查不可见的recaptcha,并在成功时停止任何进一步的事件(即检查表单验证和提交)。

((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(frm).submit() : HTMLFormElement.prototype.submit.call(frm);

to

((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(cf7SubmitElm).trigger('click') : HTMLFormElement.prototype.submit.call(frm);

在文件 /Applications/MAMP/htdocs/pakulska/wp-content/plugins/invisible-recaptcha/engine/PublicEngine.php 第 78 行附近。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-21
    • 2021-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-17
    相关资源
    最近更新 更多