Hi all.
Surely I am missing something pretty simple here but I can't for the life of me work out why the sample CKfinder gives me the error 'folder not found'. I'm sure it has to do with the baseURL or baseDir being incorrect. I'm using MAMP locally on OSX. Here are my current settings.
$baseUrl = 'http://localhost/mysite/cms/ckeditor/ckfinder/userfiles/';
$baseDir = '/Applications/MAMP/htdocs/mysite/cms/ckeditor/ckfinder/userfiles/';
I would prefer to use resolveUrl so have also tried:
$baseUrl = '/mysite/cms/ckeditor/ckfinder/userfiles/';
$baseDir = resolveUrl($baseUrl);
Any help would be appreciated.
Thanks.
Mon, 11/28/2011 - 12:49
#1
Re: Installing CKfinder locally on MAMP
If $baseUrl contains the full URL (I mean, the protocol and the domain name), then resolveUrl() will not work.
So, you are right that you must set something like:
If you are getting a "folder not found'" error with such settings, try executing a pwd command in terminal in the "userfiles" folder to double check whether the entered path is right.
The other option is that $baseDir is indeed right, but somewhere below it is being overwritten, e.g. by
Another possible option is that while changing resource types, you have removed the usage of helper variables (not seeing the configuration file I may be just guessing), so whatever you set, it is not used anyway.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+