初学Drupal(7.26),恰好遇到一个须要用到CKEditor模块的项目,因而就摸索着把它给装上了。php
图片上传出问题cookie
回到Drupal7的管理页面后恰好发现了对于CKEditor的“状态报告”(错误报告):dom
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)ui
须要修改修改sites\default\settings.php文件:spa
$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行,把()includes/entity.inc
if (array_diff_assoc($conditions, $entity_values)) {
替换为:code
if (drupal_array_diff_assoc_recursive($conditions, $entity_values)) {
这样就OK了。blog