2017-03-28 158 views
0

Ckfinder 3.4.1,以下從樣本錯誤:的臨時文件夾是不可寫爲CKFinder

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') 

臨時文件夾從:

$配置[ 'tempDirectory'] = sys_get_temp_dir();

/TMP/stroylocman

和該文件夾具有777的權限。

但從樣本腳本不起作用。哪裏不對? THX

回答

0

曾與CKE 4.6.2和3.4.1 CKF同樣的問題。

我能得到它與CKE 4.5.6和2.4.2 CKF工作。

/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

相關問題