Moodle上传文件问题未捕获DOMException:阻止了具有来源的帧

时间:2018-12-23 11:57:29

标签: php moodle moodle-api

当我尝试在添加问题页面(例如docx,xl​​sx)中上传某种文件时,我遇到了穆迪问题,在控制台上出现以下错误:

Uncaught DOMException: Blocked a frame with origin "http://example.com" from accessing a cross-origin frame.
at Function.O.getValue (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:14670:14)
at Y_Node.DEFAULT_GETTER (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30339:24)
at Y_Node._get (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30422:41)
at Y_Node.get (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30395:24)
at IO._uploadComplete (http://yui.yahooapis.com/combo?3.13.0/datatype-xml-parse/datatype-xml-parse.js&3.13.0/io-xdr/io-xdr.js&3.13.0/io-form/io-form.js&3.13.0/io-upload-iframe/io-upload-iframe.js&3.13.0/queue-promote/queue-promote.js&3.13.0/io-queue/io-queue.js&3.13.0/event-resize/event-resize.js&3.13.0/dd-ddm/dd-ddm.js&3.13.0/dd-ddm-drop/dd-ddm-drop.js&3.13.0/dd-proxy/dd-proxy.js&3.13.0/dd-constrain/dd-constrain.js&3.13.0/dd-drop/dd-drop.js&3.13.0/dd-scroll/dd-scroll.js&3.13.0/dd-drop-plugin/dd-drop-plugin.js&3.13.0/dd-delegate/dd-delegate.js:724:44)
at Y_Node.<anonymous> (http://yui.yahooapis.com/combo?3.13.0/datatype-xml-parse/datatype-xml-parse.js&3.13.0/io-xdr/io-xdr.js&3.13.0/io-form/io-form.js&3.13.0/io-upload-iframe/io-upload-iframe.js&3.13.0/queue-promote/queue-promote.js&3.13.0/io-queue/io-queue.js&3.13.0/event-resize/event-resize.js&3.13.0/dd-ddm/dd-ddm.js&3.13.0/dd-ddm-drop/dd-ddm-drop.js&3.13.0/dd-proxy/dd-proxy.js&3.13.0/dd-constrain/dd-constrain.js&3.13.0/dd-drop/dd-drop.js&3.13.0/dd-scroll/dd-scroll.js&3.13.0/dd-drop-plugin/dd-drop-plugin.js&3.13.0/dd-delegate/dd-delegate.js:569:34)
at Y.Subscriber._notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26572:35)
at Y.Subscriber.notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26601:24)
at Y.CustomEvent._notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26264:17)
at Y.CustomEvent._procSubs (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26390:36)

仅在某些计算机上会出现此问题 例如,与computer1一起使用时,它可以与所有浏览器完美配合,而对于computer2,则不能在所有浏览器上正常工作 请注意,某些文件正在上传,没有错误,例如png,jpg文件

有什么帮助吗?

1 个答案:

答案 0 :(得分:0)

在httpd.conf

找到行

LoadModule reqtimeout_module modules/mod_reqtimeout.so

注释该行:

#LoadModule reqtimeout_module modules/mod_reqtimeout.so

重新标记Apache