« CKFinder error bookmark | Main | How to install Drush on ITS servers »

January 24, 2013

Install or Move CKFinder Libraries so sites/all/libraries

$ sudo drush up

CKeditor is broken. Fix it.

1) How to install CKEditor Library

$ cd sites/all
$ mkdir libraries
$ wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.0.1/ckeditor_4.0.1_standard.tar.gz
$ sudo tar -xzf ckeditor_4.0.1_standard.tar.gz

Probably some other steps here...

2) How to install CKFinder

$ sudo wget http://download.cksource.com/CKFinder/CKFinder%20for%20PHP/2.3.1/ckfinder_php_2.3.1.tar.gz
$ sudo tar -xzf ckfinder_php_2.3.1.tar.gz

Edit ckfinder/config.php

Comment out the entire "function CheckAuthentication(){ blah}" function

Add this require_once line below the $baseDir variable. Note, I do not know why it goes up so many directories but it works:

$baseDir = resolveUrl($baseUrl);
require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';

Add/remove/modify the directories that will appear in the CKFinder window when users upload. This is found in the $config['ResourceType'][] = Array() arrays.

Edit the CKEditor profiles (admin/config/content/ckeditor)
- CKEditor Global Settings- make sure the paths to CKFinder and CKEditor point to the sites/all/libraries directory.

- For the Editor Profiles, make sure CKFinder is selected for file management options

Edit permissions (admin/people/permissions)
- Make sure the appropriate roles have access to CKEditor and CKFinder
- Note, if CKFinder access does not appear on this page then the library likely has not been located correctly.

Posted by kkwaiser at January 24, 2013 10:17 AM


Login to leave a comment. Create a new account.