Временная папка не доступна для записи в CKFinder

Ckfinder 3.4.1, следующая ошибка из образцов:

 Fatal error: Uncaught exception 'CKSource\CKFinder\Exception\InvalidConfigException' with message 'The temporary folder is not writable for CKFinder' in /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php:330 Stack trace: #0 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php(73): CKSource\CKFinder\Config->validate() #1 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(91): [error] 30729#0: *100469095 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'CKSource\CKFinder\Exception\InvalidConfigException' with message 'The temporary folder is not writable for CKFinder' in /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php:330
Stack trace:
#0 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Config.php(73): CKSource\CKFinder\Config->validate()
#1 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(91): CKSource\CKFinder\Config->__construct('/home/stroylocm...')
#2 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/pimple/pimple/src/Pimple/Container.php(113): CKSource\CKFinder\CKFinder->CKSource\CKFinder\{closure}(Object(CKSource\CKFinder\CKFinder))
#3 /home/stroylocman/www/htdocs/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/CKFinder.php(185): Pimple\Container->offsetGet('config')

Временная папка из:

$ config [‘tempDirectory’] = sys_get_temp_dir ();

является

/ TMP / stroylocman

и эта папка имеет разрешение 777.

Но скрипты из примеров не работают. Что случилось?
Спасибо

0

Решение

Была такая же проблема с CKE 4.6.2 и CKF 3.4.1.

Я смог заставить его работать с CKE 4.5.6 и CKF 2.4.2.

В /ckfinder/config.php..

Я закомментировал функцию ..

function CheckAuthentication()

А также добавил ..

// This clears the Drupal error at: /admin/reports/status
// https://www.drupal.org/node/2519308#comment-10084260
require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';
$config['backends'][0]['root'] = $baseDir;
$config['backends'][0]['baseUrl'] = $baseUrl;

под $baseDir,

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector