博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
drupal上配置fckeditor。
阅读量:7300 次
发布时间:2019-06-30

本文共 1773 字,大约阅读时间需要 5 分钟。

今天在drupal上配置FCKEditor,经过了一番周折,总算能够上传图片了。
首先是好不容易在,FCKEditor的配置中,找到了build-in browser和允许上传附件的选项,勾上之后,出现如下提示:
You are using a feature that requires manual integration into config.php (either built-in filebrowser or quick uploads are enabled in the Advanced profile). Read instructions about enabling built-in file browser and add "require_once ..." statement in editor/filemanager/connectors/php/config.php.
然后搜索到如下网址:
http://drupal.org/node/324053
http://drupal.org/node/277657
有一段话:
Features:
11) Some people have problems with upgrading FCKeditor: they forget to add
require_once "../../../../../filemanager.config.php";
to the config.php
我们才知道要加的那句话是:
require_once "../../../../../filemanager.config.php";
 
我们尝试把它加在config.php的代码最前面和最后面,都不行,出现如下提示:
You have added "require_once ..." statement in editor/filemanager/connectors/php/config.php, but in the wrong line.'
搜索下面关键字:
require_once ..." statement in editor/filemanager/connectors/php/config.php, but in the wrong line.
打开了http://www.sambazwalm.be/drupal/sites/all/modules/fckeditor/fckeditor.install
它完全就是一份源代码,能在里面找到答案吗?
经过查找发现,它提示我们的错误信息赫然出现,相关代码如下:
  
  if ($userfiles_absolute_path_line && $force_single_extension_line && (
  $require_once_line < $userfiles_absolute_path_line || $require_once_line > $force_single_extension_line)) {
    return t('You are using a feature that requires manual integration into config.php (either built-in filebrowser or quick uploads are enabled in the !profile profile). You have added "require_once ..." statement in editor/filemanager/connectors/php/config.php
从中猜测,require_once那一行应该放在userfiles_absolute_path_line 和force_single_extension_line 之间。
连猜带蒙,把它放在config的两个配置之间,果然OK了。
这之后发现,图片文件名为英文名的,完全能够上传了。中文名暂时不支持。
本文转sinojelly51CTO博客,原文链接:http://blog.51cto.com/sinojelly/222633
,如需转载请自行联系原作者
你可能感兴趣的文章
java web
查看>>
UltraEdit的使用方法
查看>>
工具、插件、学习
查看>>
安全现状:从通杀到专杀
查看>>
quick-cocos2dx在eclipse下的lua调试
查看>>
Hadoop综合大作业
查看>>
寻找水王
查看>>
JAVA _构造函数
查看>>
内存溢出和内存泄漏的区别、产生原因以及解决方案 转
查看>>
【Sql server: T-Sql 技术内幕 系列】之索引篇
查看>>
举例json和POST爬取百度翻译
查看>>
linux下core dump--转载
查看>>
JS代码片段整理
查看>>
根据出生日期计年龄
查看>>
Cracking the coding interview--Q2.3
查看>>
qt显示图片
查看>>
springboot整合kafka
查看>>
pku3020 Antenna Placement (解法1)
查看>>
nohup 命令(设置后台进程): appending output to ‘nohup.out’ 问题
查看>>
docker in all
查看>>