XOOPS中Fckeditor 在arctile模组中上传失败解决方法

上传过程提示信息:

This file uploader is disabled. Please check the “editor/filemanager/upload/php/config.php” file

使用过程中可能出现问题。有以下几个地方要修改

modules\article\fckeditor.upload.php

中必须定义

define(“FCKUPLOAD_DISABLED”, 1);

修改class\xoopseditor\FCKeditor\editor\filemanager\upload\php\upload.php

文件头部为

//Modifyed By XuYong 解决有时不能顺利获取config.php等文件

$current_path =dirname(FILE);

if ( DIRECTORY_SEPARATOR != “/“ ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/“, $current_path);

require($current_path.’/config.php’) ;

require($current_path.’/util.php’) ;

/*

require(‘config.php’) ;

require(‘util.php’) ;

*/

//End Modifyed

修改class\xoopseditor\FCKeditor\editor\filemanager\upload\php\connector.php

文件头部为

//Modifyed By XuYong 解决有时不能顺利获取config.php等文件

$current_path =dirname(FILE);

if ( DIRECTORY_SEPARATOR != “/“ ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/“, $current_path);

require($current_path.’/config.php’) ;

require($current_path.’/util.php’) ;

require($current_path.’/io.php’) ;

require($current_path.’/basexml.php’) ;

require($current_path.’/commands.php’) ;

/*

include(‘config.php’) ;

include(‘util.php’) ;

include(‘io.php’) ;

include(‘basexml.php’) ;

include(‘commands.php’) ;

*/

//End Modifyed

环境:XOOPS 2.0.16 UTF-8