I recently upgrade from 1.87 to 1.91+ and after some issues ended up doing a clean install of 1.91+. Everything seemed to work fine, except for uploading images to questions using the wysiwyg question editor (CKEditor). I keeped getting "You don't have permissions to upload files".
After doing some hunting around with our admin, we discovered that config.php in /admin/scripts/kcfinder wasn't configured properly. The lines in question read:
Code:
$_CONFIG = array(
'disabled' => true,
'readonly' => false,
'denyZipDownload' => true,
'theme' => "oxygen",
'uploadURL' => "upload",
'uploadDir' => "",
'dirPerms' => 0755,
'filePerms' => 0644,
'deniedExts' => "exe com msi bat php cgi pl php4 php5 sh",
'types' => array(
// CKEditor & FCKEditor types
'files' => "",
'flash' => "",
'images' => "",
),
...
For some reason, the disabled flag is set "true", which caused the problem. Also, the upload dir isn't specified. I discovered that uploads are added to a subdirectory of the kcfinder directory and not to the upload directory of limesurvey. I assume that this is the reason for that. Now I have several questions:
1. Is this the result of a faulty installation? or
2. Does kcfinder need to be configured by the user? or
3. Could it be possible that this is a more general problem? and finally
4. Can I safely change the settings for disabled and uploaddir (and if yes, how can I specify upload dir so that images are saved to the corresponding survey folder in the limesurvey upload directory)?
Thanks a lot for you help!