Drupal7所見即所得模塊CKEditor

初學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

相關文章
相關標籤/搜索