当我启动 ckfinder 时。 我收到一个 XML 错误:
Es war nicht möglich die XML-Antwort von dem Server herunterzuladen. XML-Verarbeitungsfehler: Kein Element gefunden Adresse: http://servername/ordner/assets/js/ckfinder/ckfinder.html?type=Images&CKEditor=editor&CKEditorFuncNum=1&langCode=de Zeile Nr. 1, Spalte 1: ^ Raw-Antwort vom Server:
{"enabled":true,"s":"","c":"","thumbs":["150x150","300x300","500x500"],"images":{"max":"1600x1200","sizes":{"small":"480x320","medium":"600x480","large":"800x600"}},"resourceTypes":[{"name":"Images","allowedExtensions":"bmp,gif,jpeg,jpg,png","deniedExtensions":"","hash":"bd90f11282419614","acl":1023,"maxSize":8388608,"hasChildren":true,"url":"http:'/'/servername'/ordner'/content'/images'/"}],"uploadMaxSize":8388608,"uploadCheckImages":false}
怎么了?我使用 CKFinder 3.2.1(IIS 8.5 上的 PHP)感谢 4 帮助
我无法检查您的链接,因为它向我显示"找不到服务器"错误。
无效的 XML 响应可能是由配置文件中的错误或 PHP 警告/通知(如果启用了显示错误并error_reporting设置为 E_ALL 和 E_STRICT)引起的。
通常,由于无效路径,则会生成此错误。
使用 Firebug 跟踪 ajax 调用并检查 XML 响应。
请检查您的服务器是否在响应中发送了正确的Content-Type
标头,它应该是application/json
。
这可能很有用:https://technet.microsoft.com/en-us/library/cc725608(v=ws.10).aspx。请使 MIME 类型application/json
已配置,如果没有,请添加以下内容:
- 文件扩展名:
.json
. - 哑剧类型:
application/json
。