These lines bypass setting the upload path by CKFinder on Pantheon, which calls the filemanager.conf.php file :

91   if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
92     $baseDir = resolveUrl($baseUrl);
93   }

http://screencast.com/t/FQXZisnZx

Please advise if this should be addressed by CKFinder folks - thanks!

Comments

TaraRowell created an issue. See original summary.

TaraRowell’s picture

Issue summary: View changes
julianmancera’s picture

Hi all,

I confirm the same problem as Tara, the function that gets the ckfinder default folder has problems as the ckfinder 3 doesn't has the resolveUrl function any more.

Tara did you get a work around that you can share?

Thank you!

Julian

julianmancera’s picture

Hi all

I found a workaround in filemanager.conf.php. You need to comment out the resolveUrl($baseUrl); lines and in the of the file set:

$baseUrl = 'http://mysite.com/sites/default/files/';
$baseDir = '/sites/default/files/';

In the ckfinder config.php file before the return $config; put

// The require once depends on where you installed the ckeditor, this is for the ckeditor in the module folder
require_once '../../../../includes/filemanager.config.php';
$config['authentication'] = 'CheckAuthentication';
//This has to be the full file system path
$config['backends'][0]['root'] = '/var/www/html/public_html/sites/default/files/';
$config['backends'][0]['baseUrl'] = 'https://mysite.com/sites/default/files/';

Julian

butterfi’s picture

Regarding #4, where exactly did you put the $baseUrl and $basedDir?