Drupal - FCKeditor: Allow quick uploads

  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:2b0dfaf2565cbf8b605660a1ccb074ea' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtejustify\">После установки модуля FCKeditor, приступаем к его настройке: Управление =&gt; Настройка сайта&nbsp; =&gt; FCKeditor...</p>\n<p class=\"rtejustify\">При настройке профилей в File browser settings доступна опция быстрой загрузки. По умолчанию эта опция отключена. При активации этой опции появляется сообщение &quot;При установке Drupal возникли проблемы. Смотрите подробности в отчете о состоянии.&quot; Следуюя совету смотрим подробности в отчете о состоянии. При просмотре состояния можно обнаружить такую ошибку:</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td class=\"rtejustify\">You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php (either built-in filebrowser or quick uploads are enabled in the Default profile).</td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">&nbsp;&quot;Лечится&quot; это следующим образом. Любым доступным способом редактируем файл settings.php (путь к нему&nbsp;следующий: &nbsp;/<span style=\"color: #ff0000\">корень_сайта</span>/sites/default/settings.php. Находим закомментированый параметр $cookie_domain и изменяем значение на необходимое (доменное имя). В моем частном случае:</p>\n<p class=\"rtejustify\"><strong>До редактирования:</strong></p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<p><span style=\"color: #ff0000\">/** Пропущено **/</span></p>\n<p># $cookie_domain = \'example.com\';</p>\n<p><span style=\"color: #ff0000\">/** Пропущено **/</span><br />\n &nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\"><strong>&nbsp;После редактирования:</strong></p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td><span style=\"color: #ff0000\">/** Пропущено **/</span>\n<p>$cookie_domain = \'muff.kiev.ua\';</p>\n<p><span style=\"color: #ff0000\">/** Пропущено **/</span></p>\n<p> &nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">Далее необходимо добавить параметр &quot;require_once&quot; в файл /<span style=\"color: #ff0000\">корень_сайта</span>/sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php.</p>\n<p class=\"rtejustify\">Ищем переменную &quot;$Config[\'UserFilesAbsolutePath\']&quot; и после нее добавляем строку &quot;require_once \'../../../../../filemanager.config.php\';&quot;</p>\n<p class=\"rtejustify\"><strong>До редактирования:</strong></p>\n<p class=\"rtejustify\"><strong></strong></p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td><span style=\"color: #ff0000\">/** Пропущено **/</span>\n<p>// Fill the following value it you prefer to specify the absolute path for the<br />\n // user files directory. Useful if you are using a virtual directory, symbolic<br />\n // link or alias. Examples: \'C:\\\\MySite\\\\userfiles\\\\\' or \'/root/mysite/userfiles/\'.<br />\n // Attention: The above \'UserFilesPath\' must point to the same directory.<br />\n $Config[\'UserFilesAbsolutePath\'] = \'\' ;</p>\n<p><span style=\"color: #ff0000\">/** Пропущено **/</span><br />\n &nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p></p>\n<p><strong>После редактирования:</strong></p>\n<p><table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td><span style=\"color: #ff0000\">/** Пропущено **/</span></td></tr></tbody></table></p>\n<p>// Fill the following value it you prefer to specify the absolute path for the<br />\n // user files directory. Useful if you are using a virtual directory, symbolic<br />\n // link or alias. Examples: \'C:\\\\MySite\\\\userfiles\\\\\' or \'/root/mysite/userfiles/\'.<br />\n // Attention: The above \'UserFilesPath\' must point to the same directory.<br />\n $Config[\'UserFilesAbsolutePath\'] = \'\' ;<br />\n require_once \'../../../../../filemanager.config.php\';</p>\n<p><span style=\"color: #ff0000\">/** Пропущено **/</span><br />\n &nbsp;</p>\n\n\n\n\n\n<p>После этих действий FCKeditor &quot;успокоится&quot; и перестанет ругаться на включение&nbsp;&quot;Allow quick uploads&quot;.</p>\n', created = 1767373863, expire = 1767460263, headers = '', serialized = 0 WHERE cid = '2:2b0dfaf2565cbf8b605660a1ccb074ea' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:07243fc0252056071eaa62af8c18d662' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtecenter\"><a class=\"thickbox\" href=\"/files/imagepicker/1/wake_up_ua.png\"><img alt=\"Вставай, Україно!\" class=\"imgp_img\" src=\"/files/imagepicker/1/thumbs/wake_up_ua.png\" style=\"height:200px; width:150px\" /></a></p>\n', created = 1767373863, expire = 1767460263, headers = '', serialized = 0 WHERE cid = '2:07243fc0252056071eaa62af8c18d662' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '3:cc913d232116f0426090404133377d88' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:d9a86123bfcbc57878743027b584400b' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtecenter\"><a href=\"http://muff.kiev.ua/rss.xml\"><img alt=\"RSS\" width=\"160\" height=\"60\" src=\"http://muff.kiev.ua/files/muf-rss.png\" /></a></p>\n', created = 1767373863, expire = 1767460263, headers = '', serialized = 0 WHERE cid = '2:d9a86123bfcbc57878743027b584400b' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '3:39649256b636e3d5ded656bc52bd8c01' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
Версия для печатиОтправить другуPDF version

После установки модуля FCKeditor, приступаем к его настройке: Управление => Настройка сайта  => FCKeditor...

При настройке профилей в File browser settings доступна опция быстрой загрузки. По умолчанию эта опция отключена. При активации этой опции появляется сообщение "При установке Drupal возникли проблемы. Смотрите подробности в отчете о состоянии." Следуюя совету смотрим подробности в отчете о состоянии. При просмотре состояния можно обнаружить такую ошибку:

You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php (either built-in filebrowser or quick uploads are enabled in the Default profile).

 "Лечится" это следующим образом. Любым доступным способом редактируем файл settings.php (путь к нему следующий:  /корень_сайта/sites/default/settings.php. Находим закомментированый параметр $cookie_domain и изменяем значение на необходимое (доменное имя). В моем частном случае:

До редактирования:

/** Пропущено **/

# $cookie_domain = 'example.com';

/** Пропущено **/
 

 После редактирования:

/** Пропущено **/

$cookie_domain = 'muff.kiev.ua';

/** Пропущено **/

 

Далее необходимо добавить параметр "require_once" в файл /корень_сайта/sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php.

Ищем переменную "$Config['UserFilesAbsolutePath']" и после нее добавляем строку "require_once '../../../../../filemanager.config.php';"

До редактирования:

/** Пропущено **/

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

/** Пропущено **/
 

После редактирования:

/** Пропущено **/

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;
require_once '../../../../../filemanager.config.php';

/** Пропущено **/
 

После этих действий FCKeditor "успокоится" и перестанет ругаться на включение "Allow quick uploads".

Ваша оценка: Нет Средняя: 3 (2 голоса)

Вставай, Україно!

Литература

Кто пустил женщину за консоль сервера?!!!