a11ychecker:未捕获的错误:无法加载测试

时间:2018-08-21 19:29:57

标签: javascript ajax ckeditor accessibility ckeditor4.x

我在CKEditor 4上使用a11ychecker,并且在我的本地主机上运行良好,但是当我将其上传到实时网站后,它不再工作,并且出现错误。

单击工具栏上的图标时,出现以下错误:

Uncaught Error: Tests could not be loaded
    at Object.error (plugin.js?t=I63C:48)
    at u (jquery-3.3.1.min.js?ver=4.9.8:2)
    at Object.fireWith [as rejectWith] (jquery-3.3.1.min.js?ver=4.9.8:2)
    at k (jquery-3.3.1.min.js?ver=4.9.8:2)
    at XMLHttpRequest.<anonymous> (jquery-3.3.1.min.js?ver=4.9.8:2)

当我再次单击它时,我得到:

plugin.js?t=I63C:18 Uncaught TypeError: Cannot read property 'getFocused' of null
    at t._selectIssue (plugin.js?t=I63C:18)
    at t.hide (plugin.js?t=I63C:17)
    at u.close (plugin.js?t=I63C:40)
    at u.exec (plugin.js?t=I63C:38)
    at r (plugin.js?t=I63C:43)
    at CKEDITOR.command.i (plugin.js?t=I63C:43)
    at CKEDITOR.command.exec (ckeditor.js:212)
    at a.execCommand (ckeditor.js:283)
    at CKEDITOR.ui.button.CKEDITOR.tools.extend.click (ckeditor.js:679)
    at Object.execute (ckeditor.js:680)
t._selectIssue @ plugin.js?t=I63C:18
hide @ plugin.js?t=I63C:17
u.close @ plugin.js?t=I63C:40
u.exec @ plugin.js?t=I63C:38
r @ plugin.js?t=I63C:43
i @ plugin.js?t=I63C:43
exec @ ckeditor.js:212
execCommand @ ckeditor.js:283
CKEDITOR.tools.extend.click @ ckeditor.js:679
execute @ ckeditor.js:680
(anonymous) @ ckeditor.js:681
(anonymous) @ ckeditor.js:31
callFunction @ ckeditor.js:32

如您所见,我有jQuery 3.3.1和BalloonPanel插件,但出现这些错误。

如何解决?

1 个答案:

答案 0 :(得分:0)

对于我来说,这是由于服务器针对那些Quail测试.json文件给出了404错误。在IIS中为.json文件(application / json)添加MIME类型可以解决此问题。