I hate to sound like an idiot - i have actually spent well over 3 hours trying to configure FCKeditor! All I want is to enable file browsing. I followed the instructions, cleared cache, still nothing.

I keep getting errors: "This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php"!

Nothing in the log files.

Changed the fckeditor.config.js
Added to php/config.php: require_once "../../../../../filemanager.config.php";
set $cookie_domain

Anything else???

Comments

wwalc’s picture

Edit your profile, scroll down to the "File browser settings", set "Allow advanced file management" and "Allow basic file management" to true.
After setting the $cookie_domain, remember to logout and login again (you may need to close your browser).

wwalc’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

jeffpurtle’s picture

Version: 5.x-2.1 » 6.x-1.x-dev
Priority: Normal » Critical
Status: Closed (fixed) » Active

I tried all the things from the readme files included with fckeditor. I appear to have everything working except for the file browser. It doesn't even appear. I can only enter URLs to upload a picture.

I have looked inside the config.php file and can't find the area refered to in response #1 above. I have scrolled down and can't find anything like that. Is there some code I need to add to enable the file browser and upload button?

wwalc’s picture

Priority: Critical » Normal
Status: Active » Fixed

@jeff_purtle: Edit your profile, scroll down to the "File browser settings", set "Allow advanced file management" and "Allow basic file management" to true, remember also to assign "allow fckeditor file uploads" permission.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Jacobtv’s picture

Status: Closed (fixed) » Active

Very sorry, but I am going to have to open this one up again.

I can't find what is suggested. Where exactly do I find the File Browser Settings?
I am using FCKeditor with IMCE, and have done everything according to the readme.txt, but I am still getting the same error mentioned in the original post.

Jorrit’s picture

File browser settings is a fieldset in the edit profile screen. In this fieldset, you'll find a setting called "File browser type". Set it to IMCE or built-in. The "allow quick uploads" determines whether the quick uploads tab is activated.

Jacobtv’s picture

So there is no "Allow advanced file management" and "Allow basic file management" settings?

Is there then another solution to the initial problem, than that suggested by wwalc?

Jacobtv’s picture

Bump... Kind of urgent problem:-)

Jorrit’s picture

Those settings are replaced by the settings you see at the moment. Are your permissions setup correctly? Could you post your config.php?

Jacobtv’s picture

These are my config settings

<?php
/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Configuration file for the File Manager Connector for PHP.
 */

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
//		authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = false ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;
require_once "../../../../../filemanager.config.php";

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

// Perform additional checks for image files.
// If set to true, validate image size (using getimagesize).
$Config['SecureImageUploads'] = true;

// What the user can do with this connector.
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;

// Allowed Resource Types.
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;

// After file is uploaded, sometimes it is required to change its permissions
// so that it was possible to access it at the later time.
// If possible, it is recommended to set more restrictive permissions, like 0755.
// Set to 0 to disable this feature.
// Note: not needed on Windows-based servers.
$Config['ChmodOnUpload'] = 0777 ;

// See comments above.
// Used when creating folders that does not exist.
$Config['ChmodOnFolderCreate'] = 0777 ;

/*
	Configuration settings for each Resource Type

	- AllowedExtensions: the possible extensions that can be allowed.
		If it is empty then any file type can be uploaded.
	- DeniedExtensions: The extensions that won't be allowed.
		If it is empty then no restrictions are done here.

	For a file to be uploaded it has to fulfill both the AllowedExtensions
	and DeniedExtensions (that's it: not being denied) conditions.

	- FileTypesPath: the virtual folder relative to the document root where
		these resources will be located.
		Attention: It must start and end with a slash: '/'

	- FileTypesAbsolutePath: the physical path to the above folder. It must be
		an absolute path.
		If it's an empty string then it will be autocalculated.
		Useful if you are using a virtual directory, symbolic link or alias.
		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
		Attention: The above 'FileTypesPath' must point to the same directory.
		Attention: It must end with a slash: '/'

	 - QuickUploadPath: the virtual folder relative to the document root where
		these resources will be uploaded using the Upload tab in the resources
		dialogs.
		Attention: It must start and end with a slash: '/'

	 - QuickUploadAbsolutePath: the physical path to the above folder. It must be
		an absolute path.
		If it's an empty string then it will be autocalculated.
		Useful if you are using a virtual directory, symbolic link or alias.
		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
		Attention: The above 'QuickUploadPath' must point to the same directory.
		Attention: It must end with a slash: '/'

	 	NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to
	 	"userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.
	 	This is fine, but you in some cases you will be not able to browse uploaded files using file browser.
	 	Example: if you click on "image button", select "Upload" tab and send image
	 	to the server, image will appear in FCKeditor correctly, but because it is placed
	 	directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.
	 	The more expected behaviour would be to send images directly to "image" subfolder.
	 	To achieve that, simply change
			$Config['QuickUploadPath']['Image']			= $Config['UserFilesPath'] ;
			$Config['QuickUploadAbsolutePath']['Image']	= $Config['UserFilesAbsolutePath'] ;
		into:
			$Config['QuickUploadPath']['Image']			= $Config['FileTypesPath']['Image'] ;
			$Config['QuickUploadAbsolutePath']['Image'] 	= $Config['FileTypesAbsolutePath']['Image'] ;

*/

$Config['AllowedExtensions']['File']	= array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File']		= array() ;
$Config['FileTypesPath']['File']		= $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Image']	= array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image']	= array() ;
$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Flash']	= array('swf','flv') ;
$Config['DeniedExtensions']['Flash']	= array() ;
$Config['FileTypesPath']['Flash']		= $Config['UserFilesPath'] . 'flash/' ;
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
$Config['QuickUploadPath']['Flash']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Media']	= array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
$Config['DeniedExtensions']['Media']	= array() ;
$Config['FileTypesPath']['Media']		= $Config['UserFilesPath'] . 'media/' ;
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
$Config['QuickUploadPath']['Media']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;

?>

I have also set the cookie_domain to my domain without the quotes.

Jacobtv’s picture

By the way... Does it make any difference, that my drupal installation is in a subfolder respective to the root?

Jorrit’s picture

Try putting

require_once "../../../../../filemanager.config.php";

after

$Config['UserFilesAbsolutePath'] = '' ;
Jacobtv’s picture

Nope still no change....

My config.php now looks like this:

<?php
/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Configuration file for the File Manager Connector for PHP.
 */

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
//		authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = false ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;
require_once "../../../../../filemanager.config.php";

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

// Perform additional checks for image files.
// If set to true, validate image size (using getimagesize).
$Config['SecureImageUploads'] = true;

// What the user can do with this connector.
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;

// Allowed Resource Types.
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;

// After file is uploaded, sometimes it is required to change its permissions
// so that it was possible to access it at the later time.
// If possible, it is recommended to set more restrictive permissions, like 0755.
// Set to 0 to disable this feature.
// Note: not needed on Windows-based servers.
$Config['ChmodOnUpload'] = 0777 ;

// See comments above.
// Used when creating folders that does not exist.
$Config['ChmodOnFolderCreate'] = 0777 ;

/*
	Configuration settings for each Resource Type

	- AllowedExtensions: the possible extensions that can be allowed.
		If it is empty then any file type can be uploaded.
	- DeniedExtensions: The extensions that won't be allowed.
		If it is empty then no restrictions are done here.

	For a file to be uploaded it has to fulfill both the AllowedExtensions
	and DeniedExtensions (that's it: not being denied) conditions.

	- FileTypesPath: the virtual folder relative to the document root where
		these resources will be located.
		Attention: It must start and end with a slash: '/'

	- FileTypesAbsolutePath: the physical path to the above folder. It must be
		an absolute path.
		If it's an empty string then it will be autocalculated.
		Useful if you are using a virtual directory, symbolic link or alias.
		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
		Attention: The above 'FileTypesPath' must point to the same directory.
		Attention: It must end with a slash: '/'

	 - QuickUploadPath: the virtual folder relative to the document root where
		these resources will be uploaded using the Upload tab in the resources
		dialogs.
		Attention: It must start and end with a slash: '/'

	 - QuickUploadAbsolutePath: the physical path to the above folder. It must be
		an absolute path.
		If it's an empty string then it will be autocalculated.
		Useful if you are using a virtual directory, symbolic link or alias.
		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
		Attention: The above 'QuickUploadPath' must point to the same directory.
		Attention: It must end with a slash: '/'

	 	NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to
	 	"userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.
	 	This is fine, but you in some cases you will be not able to browse uploaded files using file browser.
	 	Example: if you click on "image button", select "Upload" tab and send image
	 	to the server, image will appear in FCKeditor correctly, but because it is placed
	 	directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.
	 	The more expected behaviour would be to send images directly to "image" subfolder.
	 	To achieve that, simply change
			$Config['QuickUploadPath']['Image']			= $Config['UserFilesPath'] ;
			$Config['QuickUploadAbsolutePath']['Image']	= $Config['UserFilesAbsolutePath'] ;
		into:
			$Config['QuickUploadPath']['Image']			= $Config['FileTypesPath']['Image'] ;
			$Config['QuickUploadAbsolutePath']['Image'] 	= $Config['FileTypesAbsolutePath']['Image'] ;

*/

$Config['AllowedExtensions']['File']	= array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File']		= array() ;
$Config['FileTypesPath']['File']		= $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Image']	= array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image']	= array() ;
$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Flash']	= array('swf','flv') ;
$Config['DeniedExtensions']['Flash']	= array() ;
$Config['FileTypesPath']['Flash']		= $Config['UserFilesPath'] . 'flash/' ;
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
$Config['QuickUploadPath']['Flash']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Media']	= array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
$Config['DeniedExtensions']['Media']	= array() ;
$Config['FileTypesPath']['Media']		= $Config['UserFilesPath'] . 'media/' ;
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
$Config['QuickUploadPath']['Media']		= $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;

?>
wwalc’s picture

Just to recheck: did you assign "allow fckeditor file uploads" permission?

Jacobtv’s picture

Yep.

wwalc’s picture

Hummm... let's see if we can debug it somehow. What's your exact cookie_domain setting?

I hope you like Firefox ;). Install Data Tamper extension (or Live Headers) or anything that will let you inspect HTTP headers.

Click "Browse" button in FCKeditor, find URL similar to:
http://example.com/drupal6/sites/all/modules/fckeditor/fckeditor/editor/...

Open it in the new tab. Now you should be able to debug this.
Add a

print "Authenticated: ";
var_dump($authenticated);

after
$authenticated = user_access("allow fckeditor file uploads");

and

print "bootstrapFileFound: ";
var_dump($bootstrapFileFound);

before
if (!isset($bootstrapFileFound) || $bootstrapFileFound) {

now reload the link that you have found at the beginning and check if FCKeditor found at least the bootstrap file.

Do the above only if you're the only person with access permission to the file browser.

-Anti-’s picture

> By the way... Does it make any difference, that my drupal installation is
> in a subfolder respective to the root?

JFYI, I set-up fckEditor with IMCE last night with no problems.
I didn't need to edit anything (except for adding my own toolbar and some additional custom css).
However, I used a subdomain, rather than a subfolder.

wwalc’s picture

Yeah, the debugging instrsuctions were for the built-in file browser.
To enable IMCE no further file manipulations are required.

What version of IMCE module are you using? In older version you may need to check "Enable FCKEditor support".

Jacobtv’s picture

My cookie_domain setting is: $cookie_domain = fnks.org;

I am using the most recent update of IMCE. Version 6.x-1.1
I am not using the built in filebrowser, but just to make sure, I used the built-in filebrowser, and the problem persisted.

-Anti-’s picture

Version: 6.x-1.x-dev » 6.x-1.3-rc1

> I used the built-in filebrowser, and the problem persisted.

How did you upload fckEditor (not the module itself, but the actual 3rd party editor)? When unpacked, there are a hell of a lot of small files; one or two could have easily been corrupted during transit. I tried first to upload it uncompressed using my ftp client and it failed. So I uploaded it zipped, and then unpacked it on the server using my cpanel-11 backend.

I would get fckeditor working first without choosing the IMCE option. Then once it is ok, change the browsing option. Further, I'd test it in Firefox until you get it working, then try the others (IE6, IE7, Opera, Safari) just to minimise the chance of browser incompatibility bugs.

Also, be aware that after specifying IMCE as the file browser, the image button still actually opens the built-in interface. IMCE is not opened until you click 'browse server'. The path to the image/file from IMCE is then sent back to the built-in interface, not directly to the textarea.

Jacobtv’s picture

Okay...

Now I tried disabling the IMCE functionality.
I uploaded the actual editor again as a zip file, and extracted it via my cPanel.

Still I get the same error. It's getting more and more wierd. Seems like there is some simple but very vital thing I am missing.

-Anti-’s picture

Have you got quick-upload enabled?
I never turned it on because I read all the bug reports about it before installing the module.
If you enabled it, try switching it off.

Jacobtv’s picture

Didn't work. And the upload option disappears from my "insert picture"-pop up.

Jacobtv’s picture

Could there be anything in my php.ini file I need to pay attention to?

I also looked at my connector.php, and I stumpled upon this line:

if ( !$Config['Enabled'] )
	SendError( 1, 'This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file' ) ;

Is that of any relevance, since that is the message that I am getting?

Since my drupal installation is in a subfolder, I changed my cookie_domain settings to include that subfolder, but still no change.

wwalc’s picture

The only thing I can suggest is to take a deep breath and start installing it again.
Uninstall IMCE and FCKeditor module (not just disable, but first write down somewhere any configuration settings that you want to remember), download the latest versions of both modules, upload them and just follow the instruction.
Remember that you want to enable IMCE, not the built-in file browser (skip section "How to enable the file browser" and just go to "File browser settings" in FCKeditor profile and select IMCE).

Jacobtv’s picture

That did it!

Cancelled the Quick Upload option, so I am only using IMCE now, and it works fine.

I am not sure what advantages there are to IMCE as opposed to the built-in file browser? Somehow I think the built-in is the most user friendly...

Anyways thank you for your help. I don't know if this post should stay open sice the original problem was with the built-in file browser?

My problem is solved anyway.

-Anti-’s picture

> I am not sure what advantages there are to IMCE as opposed to the built-in file browser?
> Somehow I think the built-in is the most user friendly...

Yes, the built-in is more simple. But IMCE allows each user to automatically have their own
'private' folder with limits to their upload space and file-types, based on their role. It also plugs
into an image cck field (by using another module). Further, your users can create thumbnails
according to your pre-sets, and you can set a max resolution for images and/or file-sizes.

Jorrit’s picture

Plus you can delete files as well.

garciaae’s picture

Try to rename /sites/default/files/.htaccess to /sites/default/files/.htaccessOLD.
It seems that IIS settings doesn't work properly with Drupal.
This worked for me.

jamesczar’s picture

We were experiencing a similar issue - perhaps the same?

Basic FCKEditor installed, no ICME.

Any image uploaded via the regular browser would use the /sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php to determine automatic subfolders (ie image) for each file type.

HOWEVER, anything uploaded via quick upload was using the base path settings, but not applying the subfolder file type check. So we changed the following:

$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

to

$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] . 'image/' ;

This allows the file type check to work for QuickUpload as well, and thus use the same subdirectory for Quick Upload as well as File Browser Upload.

For some reason the Quick Upload file path settings in the FCKEditor Admin settings are completely ignored.

THUS, you should make this setting for all the Quick Upload configs in this file.

$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] . 'file/' ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] . 'file/' ;

$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] . 'image/' ;

$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] . 'flash/' ;

$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] . 'media/' ;

We tested this with the Flash Quick Uploader, and it works like a charm!

Hope this helps. Took us 2 hours to figure this one out!

wwalc’s picture

@jamesczar: http://drupal.fckeditor.net/troubleshooting#9

Those (not intuitive) default values will be probably changed in CKEditor 3.x, it would cause too much problems during upgrades if it was changed in 2.x.

wwalc’s picture

Status: Active » Fixed

btw. Jacobtv problem is solved so closing this ticket.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.