Drupal7所见即所得模块CKEditor

初学Drupal(7.26),刚好遇到一个需要用到CKEditor模块的项目,于是就摸索着把它给装上了。

图片上传出问题

回到Drupal7的管理页面后刚好发现了对于CKEditor的“状态报告”(错误报告):

You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php (CKFinder is enabled in the Advanced profile)

需要修改修改sites\default\settings.php文件:

 
 
$cookie_domain = 'localhost';//去掉注释,填写正确的路径
这样就没有错误,图片也可以正常上传了。

但还是有警告:You are using an unlicensed version of the CKEditor module for Drupal. Visit http://cksource.com/ckeditor-for-drupal
to purchase a licensed version that also includes a license for a full-featured file browser, CKFinder, and a dedicated support channel



2.编辑保存遇到这样的报错:Notice: Array to string conversion in DrupalDefaultEntityController->cacheGe() (string 364 in file includes/entity.inc).

需要修改includes/entity.inc文件的第364行,把
if (array_diff_assoc($conditions, $entity_values)) {
 
 

替换为:

if (drupal_array_diff_assoc_recursive($conditions, $entity_values)) {

这样就OK了。



 

 

转载于:https://www.cnblogs.com/Medeor/p/3530558.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值