Wordpress - 联系表格7 - 发送联系表格

时间:2017-11-03 10:31:35

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

当我尝试使用联系表单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

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

1 个答案:

答案 0 :(得分:0)

在我的情况下,由于我的表单中有一个文件上传字段可以上传附件而导致错误,原因是文件超出了 post_max_size upload_max_filesize / apache设置)。当我更改这两个时,问题就消失了。