The documentation to integrate ckfinder states:

        require_once '../../../../includes/filemanager.config.php';

        straight below the following line:

        $baseDir = resolveUrl($baseUrl);

This should be above as it needs to resolve the $baseDir to an absolute path like var/www/html/www.mysite.com/default/files.

Comments

Anonymous’s picture

Status: Active » Closed (fixed)

My mistake, didnt notice the %d in absolute path setting.

domi007’s picture

Man, I worked on this for 2 days I couldn't figure it out, and you solved it for me, thank you so much!

knalstaaf’s picture

To be exact: this code is located in sites/all/modules/ckeditor/ckfinder/config.php. The video documentation is located here (and is correct: the require_once-rule should go below the $baseDir-rule.

carlhinton’s picture

By far the easiest way to do this I found was to do

$baseDir = $_SERVER['DOCUMENT_ROOT'] . '/sites/default/files/ckfinder/';

If you are using WYSIWYG then filemanager.config.php will not exist, you will have to create it!
Another useful link is jrsinclair's Drupal-WYSIWYG-CKEditor-CKFinder-bridge