我在 Zend Framework 2 中的应用程序中添加了 CKEditor 和 elfinder。当我想添加图像时,它给了我这个错误:
Invalid backend response.
Data is not JSON.
在控制台中我有这个:
<br />
<b>Strict Standards</b>: Only variables should be passed by reference in <b>***/elFinder/php/elFinderVolumeDriver.class.php</b>
on line <b>645</b><br />
{"cwd":{"mime":"directory","ts":1438003401,"read":1,"write":1,"size":0,"hash":"l1_Lw","volumeid":"l1_","name":"files","date":"Today 15:23","locked":1,"dirs":1},"options":{"path":"files","url":"\/assets\/dev\/plugins\/elFinder\/php\/..\/files\/","tmbUrl":"\/assets\/dev\/plugins\/elFinder\/php\/..\/files\/.tmb\/","disabled":[],"separator":"\/","copyOverwrite":1,"archivers":{"create":["application\/x-tar","application\/x-gzip","application\/x-bzip2"],"extract":["application\/x-tar","application\/x-gzip","application\/x-bzip2"]}},"files"[{"mime":"directory","ts":1438003401,"read":1,"write":1,"size":0,"hash":"l1_Lw","volumeid":"l1_","name":"files","date":"Today 15:23","locked":1,"dirs":1},{"mime":"directory","ts":1438002867,"read":1,"write":1,"size":0,"hash":"l1_dGVtcA","name":"temp","phash":"l1_Lw","date":"Today 15:14"}],"api":"2.0","uplMaxSize":"64M"}
编辑:
在测试服务器上重新集成:http: //kodowanie.esy.es/ckeditor/一切正常。
当我将文件加载到我的应用程序时,我遇到了问题。
当我想添加文件时给我一个错误:
Invalid backend response.
Data is not JSON.
网址是:
http://***/assets/plugins/elFinder/elfinder.html?CKEditor=textarea&CKEditorFuncNum=207&langCode=pl
当我刷新页面时,一切正常并且错误没有出现,并且 url 看起来像这样:
http://***/assets/plugins/elFinder/elfinder.html?CKEditor=textarea&CKEditorFuncNum=207&langCode=pl#elf_l1_Lw
此外,让我使用我的应用程序登录。