Ken*_*nny 6 javascript forms ajax wordpress 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)
Run Code Online (Sandbox Code Playgroud)
和 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
Run Code Online (Sandbox Code Playgroud)
你对我的问题有什么好的解决方案吗?
小智 2
就我而言,导致错误的原因是我的表单中有一个文件上传字段来上传附件,并且文件超出了 post_max_size和upload_max_filesize ( php/apache 设置)。当我改变这两个时,问题就消失了。
| 归档时间: |
|
| 查看次数: |
3884 次 |
| 最近记录: |