簡體   English   中英

當ckfinder彈出時,無法顯示圖像

[英]when ckfinder popup, cannot show the images

ckeditor 與 ckfinder 集成。 當我從 ckeditor 單擊瀏覽器時,ckfinder 出現但無法顯示圖像和文件夾。 錯誤將是這樣的。

It was not possible to properly load the XML response from the web server.
XML Parsing Error: junk after document element Location: http://localhost/tess/ckfinder/ckfinder.html?Type=Images&CKEditor=editor1&CKEditorFuncNum=1&langCode=en Line Number 2, Column 1:Notice: A non well formed numeric value encountered in /Applications/XAMPP/xamppfiles/htdocs/tess/ckfinder/core/connector/php/php5/Utils/Misc.php on line 202
^
Raw response from the server:

<?xml version="1.0" encoding="utf-8"?><br />
<b>Notice</b>: A non well formed numeric value encountered in <b>/Applications/XAMPP/xamppfiles/htdocs/tess/ckfinder/core/connector/php/php5/Utils/Misc.php</b> on line <b>202</b><br />
<br />
<b>Notice</b>: A non well formed numeric value encountered in <b>/Applications/XAMPP/xamppfiles/htdocs/tess/ckfinder/core/connector/php/php5/Utils/Misc.php</b> on line <b>202</b><br />
<br />
<b>Notice</b>: A non well formed numeric value encountered in <b>/Applications/XAMPP/xamppfiles/htdocs/tess/ckfinder/core/connector/php/php5/Utils/Misc.php</b> on line <b>202</b><br />
<Connector resourceType="Images"><Error number="0" /><ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true" thumbsUrl="http://localhost/ckeditor-ckfinder-integration/uploads/_thumbs/" thumbsDirectAccess="false" thumbsWidth="100" thumbsHeight="100" imgWidth="1600" imgHeight="1200" uploadMaxSize="134217728" uploadCheckImages="false" plugins="imageresize,fileeditor,zip" /><ResourceTypes><ResourceType name="Images" url="http://localhost/ckeditor-ckfinder-integration/uploads/images/" allowedExtensions="bmp,gif,jpeg,jpg,png" deniedExtensions="" hash="3425a9286fe54f22" hasChildren="false" acl="255" maxSize="134217728" /></ResourceTypes><PluginsInfo><imageresize smallThumb="90x90" mediumThumb="120x120" largeThumb="180x180" /></PluginsInfo></Connector>

錯誤顯示如下:

在此處輸入圖片說明

我已經通過評論 ckfinder\\core\\connector\\php\\php5\\Utils\\Misc.php line no 196 to 205 解決了這個問題,然后它工作正常。 您在代碼下方評論。

        $last = strtolower($val[strlen($val)-1]);
    switch($last) {
        // The 'G' modifier is available since PHP 5.1.0
        case 'g':
            $val *= 1024;
        case 'm':
            $val *= 1024;
        case 'k':
            $val *= 1024;
    }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM