When I attempt to send an image to the server, by way of the upload tab:
"This file uploader is disabled. Please check editor/filemanager/connectors/php/config.php"
Been trying to fix this issue for a couple weeks now, and Googling has yielded nothing I haven't tried already.
Thanks in advance!


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

// 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'] = '/home/scottwernerrealtor/public_html/files/' ;
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") ;


CommentFileSizeAuthor
#24 fckeditorbrowsererror.jpg112.16 KBjvieille
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wwalc’s picture

Assigned: Unassigned » wwalc

I confirm that there is a problem with authenticating, I'm working on this right now.

wwalc’s picture

Category: support » bug
Priority: Normal » Critical
wwalc’s picture

Assigned: wwalc » Unassigned
Category: bug » support
Priority: Critical » Normal

Ok, I've been trying to reproduce this issue too fast and forgot about one single, but important step :D.
This is probably the same thing that happened to you:

Open sites\default\settings.php.
Uncomment line with "$cookie_domain =" and set the $cookie_domain variable.
Logout and login again. You should be able to use file browser now.

Some additional explanation: by adding this line:
require_once "../../../../../filemanager.config.php";
you overwrite those settings:

$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/files/' ;
$Config['UserFilesAbsolutePath'] = '/home/scottwernerrealtor/public_html/files/' ;

This is an expected behaviour because you don't want to grant access to file browser to everyone.
Code that is in filemanager.config.php checks whether you have necessary privileges to run the file browser.
Without the $cookie_domain variable, file browser is unable to access your session.

Let me know if that solved your problem.

jerwilkins’s picture

wwalc, you are fantastic!
I was certain I'd changed that line earlier, but I must have reinstalled afterwards.
This fixed it for me :)

emanherz’s picture

I'm having the same problem but my settings.php doesn't have the cookie-domain line in it.

wwalc’s picture

What version of Drupal are you using?
Try adding this manually then (in sites\default\settings.php):

$cookie_domain = 'example.com';

change the name of the domain of course.

azim’s picture

Version: 5.x-2.1-beta2 » 6.x-1.2

Am getting the same problem jerwilkins had earlier. Am running Drupal 6 with fckeditor-6.x-1.2 and FCKeditor 2.5.1.

When I attempt to send an image to the server from the 'Upload' tab;

This file uploader is disabled. Please check the "editor/filemanager/connectors/php/config.php" file

I get the following when I Browse Server for file from the 'Image Info' tab;

This file connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file

My 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'] = '/sites/default/files/' ;

// 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'] = '/home/cbr/public_html/sites/default/files/' ;
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") ;

Azim

wwalc’s picture

azim: what about the $cookie_domain setting?

$cookie_domain = 'example.com';

in sites\default\settings.php, did you uncomment it?

azim’s picture

Haha. How could I not understand thread #6 earlier.

Now the upload works.

But I do not see the files in the Resources Browser.
The image also doesn't show on the published post.

But can be accessed via FTP and HTTP full url http://www.domain.com/sites/default/files/image.gif

Thanks in advanced wwalc.

wwalc’s picture

azim:
Re: "The image also doesn't show on the published post."
Check issue 226177.
Also you might find these page useful: http://drupal.fckeditor.net/troubleshooting.
(In short: make sure that you are using the correct input format).

Re: "do not see the files in the Resources Browser":
check 239552
(...The idea is that FileTypesPath and QuickUploadPath should point to the same path... and so on)

azim’s picture

239552 was the solution. Thanks.

wwalc’s picture

Status: Active » Fixed
milis’s picture

Hey,

I have fckeditor 5.x-2.1 with the editor FCKeditor 2.6 and Drupal 5.2.
In the config.php I have set $Config['Enabled'] = true ; The rest of the config.php are the default values. I have also set the $cookie_domain value.

But I still get "This file uploader is disabled. Please check editor/filemanager/connectors/php/config.php".

I am desperate at the moment. Do you have any idea? Could it be because it perhaps tries to save the file at a place where it has not the write?

Milad

milis’s picture

Status: Fixed » Postponed (maintainer needs more info)
wwalc’s picture

Did you set the "allow fckeditor file uploads" permissions? Is it possible that fckeditor module resides in a symlink directory?

wwalc’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
barobba’s picture

Here is a late response but maybe it will help someone else.

When I was trying to upload images, I was getting broken images. Finally, I looked at the whole path in the error message and /usr/local/apache/htdocs/... was completely wrong. I'm on a shared server. In FCKEditor under "File browser settings"/"Absolute path to uploaded files:" I had to replace the %d because it was the wrong server path. Instead, I used something like /home/myhome/public_html/ instead of %d.

alternativecatII’s picture

Thank you for providing this information

Open sites\default\settings.php.
Uncomment line with "$cookie_domain =" and set the $cookie_domain variable.

I thought I had edited settings.php, but found out the changes had not been saved.

I was using File Manager provided by BlueHost in C-Panel. I realized I had to change the permissions on the file from 444 to 777 and then change the permissions back to 444 again, for File Manager to save the changes.

That enabled the built in file upload feature for for FCKeditor to work, but I still haven't got IMCE to work. I've just about given up on that for now.

I don't understand what is meant by

Some additional explanation: by adding this line:
require_once "../../../../../filemanager.config.php";

you overwrite those settings: [what are the "Those settings?" Do you mean the ones listed below?]

$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/files/' ;
$Config['UserFilesAbsolutePath'] = '/home/scottwernerrealtor/public_html/files/' ;
so4’s picture

great solution. thanks a lot.

[to find your 'UserFilesAbsolutePath' look in the error_log, it gives you the path.]

jimmb’s picture

Status: Closed (fixed) » Active

Problem still persists for me. As it's slightly unclear above, here's *exactly* what I did:

1. uncommented the $cookie line and changed the domain to match site's domain.
2. changed the permissions after uploading to "444"
3. Logged out and logged back in again.

The result - still:

This file uploader is disabled. Please check the "editor/filemanager/connectors/php/config.php" file

If I'm missing something, I'd love to know and try something else....

Jim

wwalc’s picture

@alternativecatII: [what are the "Those settings?" Do you mean the ones listed below?] - exactly, sorry for my english. When filemanager.config.php is included, it overwrites the variables that I listed there.

@jimbb: did you follow all other steps (adding require_once statement in config.php, assigning "allow fckeditor file uploads" permission)? Can you paste your config.php file here (or just a couple of lines where "require_once" is used)?

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)
jimmb’s picture

Thanks for the follow-up. I did add the require_once snippet to congif.php, but the error still occurs. Here is a part of that file (my addition is at the bottom):

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

// 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 ;

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

Also, I have granted admin permission to allow file uploads.

Jim

jvieille’s picture

FileSize
112.16 KB

Same problem: I can't get the image browser working.

I made all the requested changes in settings.php:
$cookie_domain = 'controlchaingroup.com';

and config.php:
$Config['Enabled'] = true ; (should not be necessary according readme.txt)
require_once "../../../../../filemanager.config.php";

but no success.
I always get the error:
"The server didn't send back a proper XML response... xml request error: Not Found (404)... (see attached file)

Any idea?
Thanks for help

julipan-1’s picture

Uncomment line with "$cookie_domain =" and set the $cookie_domain variable.

Thanks a lot for your help. Is there a way to have the variable set to several domains?
Specifically, I have domain.org and domain.se pointing to the same site and would like them to both work equally well.
I found out that wildcards doesn't work for $cookie_domain. I also unsuccessfully tried making an array, though I realize it may not be an appropriate (as in workable) thing to do here.

wwalc’s picture

@jimmb - Sorry for late reply... actually I have no idea why it doesn't work for you. It seems that everything is set up properly. If possible, send me a PM with login details to check it, this way I can get more experience in solving similar issues and document it better.

@jvieille - looks like a duplicate of #302435: Apache reports Forbidden Error on File Browse - try installing the latest dev release, remember to follow the upgrade procedure.

@julipan - haven't tried it before, but take a look here: http://drupal.org/node/53705 - I think that creating another settings.php may solve this problem.

pbeakley’s picture

Okay, I've just spent three days working on this and I cannot get the image upload to work.

In settings.php:
I've set the $cookie_domain to the site's domain

In filemanager.config.php:
I've set the $fck_user_files_path to a directory with 755 privileges
The absolute path is currently blank , but I have experimented with posting the absolute path and leaving the user_files_path blank

In config.php:
I've set the $Config['UserFilesPath'] to the same 755 directory as in filemanager.config.php
The absolute path is currently blank; tried the same experiment as in filemanager.config.php
$Config['Enabled'] = false;
I added require_once "../../../../../filemanager.config.php";

I've set my "allow fckeditor file uploads" permission in the Admin panel.

I think I've done absolutely everything described in this thread. I've used sessions and cookies on other sites deployed at this domain (and various subdirectories), and phpinfo.php says everything's good. But still I can't get the uploader to work. :-(

p.

wwalc’s picture

@pbeakley - try using the latest 6.x-2.x dev, it contains more tips in the FCKeditor module to solve possible issues with setting the file browser.

pbeakley’s picture

My solution was to install the IMCE module, which works perfectly well. No idea why or how it's different, but that was my solution.

p.

wwalc’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Great, IMCE is a really nice module to handle file uploading. I'm closing this ticket if no one has any more questions.

geerlingguy’s picture

Just a note, to those who were scratching their heads throughout this thread...

I just added the following line as line 41 in the config.php file (in the fckeditor>fckeditor>editor>filemanager>connectors>php folder):

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

And it all works happily now.

Mindy Block’s picture

Thank You - works for me just fine!

steven07’s picture

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

jasperguy’s picture

Steven7
Follow #6 and #18 and you will get it working.

chomod 777 settings.php so you can un-comment and save file
chomod back 444 after you are done

amralsayed’s picture

I think wwalc is right

Shadow-Hawk’s picture

Disregard this comment- I found the fix-the domain is corrected to show:
$cookie_domain = 'mycompassioncenter.com/member';

Now it all works- thanks.

I think I may be having an issue with the $cookie_domain = 'www.member.mycompassioncenter.com'; line

my site is in a subdomain- and I set this as shown above and my site logged me out, now my system won't let me log in through the site login.

If I comment it out, of the settings.php then I can signin, but my upload link doesn't work.

What am I doing wrong here?

phengnhou’s picture

This worked for me

This connector is disabled.
Please check the "sites/all/libraries/fckeditor/editor/filemanager/connectors/php/config.php" file
Enabling the connector
To enable the connector simply open the file "editor/filemanager/connectors/php/config.php" under your FCKEditor root and locate the following line:

$Config['Enabled'] = false ;
Change it to this:

$Config['Enabled'] = true ;
Save the file and now you will be able to browse the server.

Summit’s picture

Hi,
Latest #37 worked for me! Thanks for telling.
Greetings, Martijn