1

这是我的集成代码:

 My extranet is in root/include/ckeditor and root/include/ckfinder

$baseUrl = 'https://extranet.com/crm/include/;
$baseUrl = '/userfiles/';

$baseDir = '/crm/include/userfiles/;

我正在尝试进行配置,仅此而已。我正在尝试与 ckeditor 集成,但我遇到了各种错误。谁能告诉我我在哪里做错了。

It was not possible to properly load the XML response from the web server.
    XML Parsing Error: junk after document element Location: https://extranet.zeald.com/crm_snapshot/include/ckfinder/ckfinder.html?CKEditor=message&CKEditorFuncNum=2&langCode=en Line Number 2, Column 1:Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/clusternfs2/extranet/crm_snapshot/include/ckfinder/core/connector/php/php4/Utils/Misc.php on line 54
    ^
    Raw response from the server:


    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/clusternfs2/extranet/crm_snapshot/include/ckfinder/core/connector/php/php4/Utils/Misc.php on line 54

编辑:在这里查看 Misc.php 给出错误的代码

public static function encodeURIComponent($str)
    {
        $revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')');
        return strtr(rawurlencode($str), $revert);
    }

我已经运行了 php 版本 4.3.10,并且我阅读了 ckfinder 文档,说明 php4+ 支持 version2.2.1。

编辑:我已经删除了这段代码,它似乎正在工作:

/*  public static function encodeURIComponent($str)
    {
        $revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')');
        return strtr(rawurlencode($str), $revert);
    } */

有没有办法使这项工作。

希望有人可以帮助我。

4

0 回答 0