【问题标题】:Wordpress - Contact Form 7 - Stuck sending contact formWordpress - 联系表格 7 - 卡住发送联系表格
【发布时间】:2018-04-16 01:22:38
【问题描述】:

当我尝试使用联系表格 7 在 Wordpress 中发送标准联系表格时,发送卡住了。表单有效,我确实将邮件发送到我的收件箱,但在主页上视觉上,表单卡在“发送模式”。

Chrome 控制台这样说

Uncaught TypeError: Cannot read property 'dispatchEvent' of undefined
  at Object.wpcf7.triggerEvent (scripts.js?ver=4.9.1:361)
  at ajaxSuccess (scripts.js?ver=4.9.1:279)
  at Object.<anonymous> (scripts.js?ver=4.9.1:344)
  at i (jquery.js?ver=1.12.4:2)
  at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
  at y (jquery.js?ver=1.12.4:4)
  at XMLHttpRequest.c (jquery.js?ver=1.12.4:4)

Firefox 控制台说:

TypeError: $target.get(...) is undefined[Läs mer]  scripts.js:361:3
  wpcf7.triggerEvent http://***.se/wp-content/plugins/contact-form-7/includes/js/scripts.js:361:3
  wpcf7.submit/ajaxSuccess http://***.se/wp-content/plugins/contact-form-7/includes/js/scripts.js:279:6
  wpcf7.submit/< http://***.se/wp-content/plugins/contact-form-7/includes/js/scripts.js:344:4
  n.Callbacks/i http://***.se/wp-includes/js/jquery/jquery.js:2:27444
  n.Callbacks/j.fireWith http://***.se/wp-includes/js/jquery/jquery.js:2:28213
  y http://***.se/wp-includes/js/jquery/jquery.js:4:22719.send/c

你对我的问题有好的解决方案吗?

【问题讨论】:

  • script.js 的第 361 行是什么?
  • 是插件 CF7 Customizer 发生冲突,因此发送冻结。停用它解决了这个问题。我得到了blog.chapagain.com.np/…的建议
  • 那里可能是 CSS 或 js 问题。类似溢出=隐藏的 CSS。

标签: javascript ajax wordpress forms contact-form-7


【解决方案1】:

在我的情况下,错误是因为我的表单中有一个文件上传字段来上传附件,并且文件超出了 post_max_sizeupload_max_filesize (php /apache 设置)。当我改变这两个时,问题就消失了。

【讨论】:

    猜你喜欢
    • 2020-05-30
    • 1970-01-01
    • 1970-01-01
    • 2014-08-27
    • 1970-01-01
    • 2015-09-22
    • 1970-01-01
    • 2017-01-12
    • 1970-01-01
    相关资源
    最近更新 更多