Problem with image upload in FCKeditor

erynsidhe - April 3, 2008 - 10:49

I'm sorry if I'm repeating this but I have not been able to find an answer for my problem anywhere.

Was hoping anyone here could help me get the image upload working in FCKeditor. I'm running 2.5 on Drupal 6. Everything else seems to be working except image upload. When the browser loads I just get "This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file"" . Which of course I have. I've followed the instructions in the Readme-file and changed config.php accordingly. I really have no idea what to do now.

Any help?

Config.php is not the only thing that must be changed...

wwalc - April 4, 2008 - 08:21

Config.php is not the only thing that must be changed to enable the file browser.

If you get error message saying that file browser is disabled, re-check the following:

  • In "Administer > User Management > Permissions" assign the
    "allow fckeditor file uploads" permissions.
  • locate file named
    settings.php inside your drupal directory (usually sites/default/settings.php)
    and set $cookie_domain variable to the appropiate domain (remember to logout and login again after doing this step).
  • adjust the File browser settings for each profile (disabled by default)

Wiktor Walc
http://www.fckeditor.net
"Support Open Source Software"

The same issue

kpocha - July 25, 2008 - 17:56

I followed all instructions (readme.txt & your answer), but I can't solve the problem.
When I open the server the message is "This connector is disabled" and if try to upload file without openning the server it's says "This file uploader is disabled". Both messages says I need to configure config.php.
Every time I modify/update a file I clear it from the browser´s history.
I hope you could help me soon.
Thanks.

More details

kenyan - July 27, 2008 - 01:48

Could you post the relevant parts of config.php that you changed?
That way I see if theres any problem.
I had the same issue but managed to fix it.
Basically, I just changed to this (and nothing else):

// 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'] = true ; <--------- here

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/files/' ; <--------------here, I already have this folder

// 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'] = '/files/' ; <------------- same as above
require_once "../../../../../filemanager.config.php"; <----- added this from the readme.txt

(Be careful to put the above line right there and not under the previous $Config)

AND, finally, go to settings.php (/sites/default/settings.php), re-enable write permissions (of course do the same for folder 'default' and change back when done) and uncomment this line:
$cookie_domain = example.com <---------
Remember to change example.com to read your site. <-----

Hope this helps. But meanwhile, IMCE works perfectly instead to load your images while you wait to fix your issue. Though you should not take the shortcut.
Please check out http://kenyatrail.com (Still under construction) and critique before I go too far.

I've done all of that but

doktorrr - March 2, 2009 - 12:45

I've done all of that but upload in FCKeditor don't work.

It's not working for me

insats - March 10, 2009 - 21:02

It's not working for me either. I've tried everything mentioned here.

(ps. Using 6.10 and latest FCKeditor which is 2.7 I believe)

It Works

mcfilms - May 25, 2009 - 20:27

Hi Kenyan,

I just wanted to confirm that your tips worked for me and got my upload working.

Thanks

fckeditor 2.5 Drupal 6.12

RobertOak - June 6, 2009 - 07:26

Not only did this work, someone might tell Drupal fckeditor maintainer that the documentation is wrong frankly.

You have conflicting information about the paths and no mention of the set domain cookie, which isn't required or setting in the default installation.

Thanks for posting this "exercise in combinatorics".

It is discussed in the

bsenftner - November 3, 2009 - 07:12

It is discussed in the README.txt file accompanying the module.

One simple solution

Henry Kyemba - June 9, 2009 - 22:22

I had trouble trying to configure the image upload feature.

I resolved the issue in a roundabout way:
Visit http://kyemba.net/uploadguide.htm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"There is some sort of perverse pleasure in knowing that it's
basically impossible to send a piece of hate mail through the
internet without its being touched by a gay program. That's

fckeditor, browse, image module

Naqueen - July 4, 2009 - 18:56

OK, apologies if this answer is not what you're looking for, but I just got the insert/edit image to work for me. I have drupal 6.12, fckeditor 2.6.4, and the Image module.
1. Installed fckeditor module, also fckeditor, and the Image module.
NOTE: My default image path at (/admin/settings/image) is images. I ftped some images to my images folder.
1. Did everything in the modules/fckeditor/readme.txt *Configuration* section.
2. Did everything in the modules/fckeditor/readme.txt *How to enable the file browser* section.
3. Cleared my cache (admin/settings/performance).
4. Created a new story, clicked on the image icon on the fckeditor toolbar, clicked on browse server, but nothing was there, even though I knew I had ftped some images! Turned out I needed to make 1 more change.
5. Back to the (editor/filemanager/connectors/php/config.php)
/* Configuration settings for each Resource Type These were wrong - were set to image instead of images.
$Config['FileTypesPath']['Image']= $Config['UserFilesPath'] . 'images/' ;
$Config['FileTypesAbsolutePath']['Image']=($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'images/' ;

6. Cleared the cache.
7. Worked! Insert and upload now goes to the right folder.
:)

-- Na

please help!

steven07 - October 6, 2009 - 00:57

I've been looking around for a while and STILL can't solve this problem. I get the "This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file" error.

I set my cookie domain and here is my code for config.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'] = true ;

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

// 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'] = 'stevenpalomino.com/images' ;
require_once '../../../../../filemanager.config.php';

Am I doing something wrong? Please help me!
Steven

steven07: I was at the same

drupal92037 - November 3, 2009 - 04:54

steven07:

I was at the same place you were. Then (in config.php) I tried getting rid of the leading slash when setting the UserFilesPath, i.e., instead of
$Config['UserFilesPath'] = '/images';
I made it
$Config['UserFilesPath'] = 'images';
and it started working!

As RobertOaks mentioned above, it has indeed been an exercise in combinatorics for me. Just flailing around trying everything I see. But now it works.

This worked great for me

phpsharma - March 1, 2010 - 19:32

I just made the above changes. worked fine for me.

sharma chelluri

I still have the same

Frank Leith - December 13, 2009 - 15:23

I still have the same problems. But found that sites\all\modules\fckeditor\filemanager.config.php does not exists.
What to do?

Frank, what version drupal

kenyan - December 20, 2009 - 20:14

Frank, what version drupal are you on?
Are you using the wysiwyg module, fckeditor in the libraries folder, IMCE and IMCE wysiwyg bridge?
http://drupal.org/project/wysiwyg
http://drupal.org/project/imce_wysiwyg

You should be.

 
 

Drupal is a registered trademark of Dries Buytaert.