Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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") ;
Comment | File | Size | Author |
---|---|---|---|
#24 | fckeditorbrowsererror.jpg | 112.16 KB | jvieille |
Comments
Comment #1
wwalc CreditAttribution: wwalc commentedI confirm that there is a problem with authenticating, I'm working on this right now.
Comment #2
wwalc CreditAttribution: wwalc commentedComment #3
wwalc CreditAttribution: wwalc commentedOk, 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:
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.
Comment #4
jerwilkins CreditAttribution: jerwilkins commentedwwalc, you are fantastic!
I was certain I'd changed that line earlier, but I must have reinstalled afterwards.
This fixed it for me :)
Comment #5
emanherz CreditAttribution: emanherz commentedI'm having the same problem but my settings.php doesn't have the cookie-domain line in it.
Comment #6
wwalc CreditAttribution: wwalc commentedWhat version of Drupal are you using?
Try adding this manually then (in sites\default\settings.php):
change the name of the domain of course.
Comment #7
azim CreditAttribution: azim commentedAm 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;
I get the following when I Browse Server for file from the 'Image Info' tab;
My config.php;
Azim
Comment #8
wwalc CreditAttribution: wwalc commentedazim: what about the $cookie_domain setting?
in sites\default\settings.php, did you uncomment it?
Comment #9
azim CreditAttribution: azim commentedHaha. 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.
Comment #10
wwalc CreditAttribution: wwalc commentedazim:
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)
Comment #11
azim CreditAttribution: azim commented239552 was the solution. Thanks.
Comment #12
wwalc CreditAttribution: wwalc commentedComment #13
milis CreditAttribution: milis commentedHey,
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
Comment #14
milis CreditAttribution: milis commentedComment #15
wwalc CreditAttribution: wwalc commentedDid you set the "allow fckeditor file uploads" permissions? Is it possible that fckeditor module resides in a symlink directory?
Comment #16
wwalc CreditAttribution: wwalc commentedComment #17
barobba CreditAttribution: barobba commentedHere 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.
Comment #18
alternativecatII CreditAttribution: alternativecatII commentedThank you for providing this information
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
Comment #19
so4 CreditAttribution: so4 commentedgreat solution. thanks a lot.
[to find your 'UserFilesAbsolutePath' look in the error_log, it gives you the path.]
Comment #20
jimmb CreditAttribution: jimmb commentedProblem 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
Comment #21
wwalc CreditAttribution: wwalc commented@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)?
Comment #22
wwalc CreditAttribution: wwalc commentedComment #23
jimmb CreditAttribution: jimmb commentedThanks 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):
Also, I have granted admin permission to allow file uploads.
Jim
Comment #24
jvieille CreditAttribution: jvieille commentedSame 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
Comment #25
julipan-1 CreditAttribution: julipan-1 commentedThanks 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.
Comment #26
wwalc CreditAttribution: wwalc commented@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.
Comment #27
pbeakley CreditAttribution: pbeakley commentedOkay, 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.
Comment #28
wwalc CreditAttribution: wwalc commented@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.
Comment #29
pbeakley CreditAttribution: pbeakley commentedMy 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.
Comment #30
wwalc CreditAttribution: wwalc commentedGreat, IMCE is a really nice module to handle file uploading. I'm closing this ticket if no one has any more questions.
Comment #31
geerlingguy CreditAttribution: geerlingguy commentedJust 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.
Comment #32
Mindy Block CreditAttribution: Mindy Block commentedThank You - works for me just fine!
Comment #33
steven07 CreditAttribution: steven07 commentedI'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
Comment #34
jasperguy CreditAttribution: jasperguy commentedSteven7
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
Comment #35
amralsayed CreditAttribution: amralsayed commentedI think wwalc is right
Comment #36
Shadow-Hawk CreditAttribution: Shadow-Hawk commentedDisregard 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?
Comment #37
phengnhou CreditAttribution: phengnhou commentedThis 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.
Comment #38
Summit CreditAttribution: Summit commentedHi,
Latest #37 worked for me! Thanks for telling.
Greetings, Martijn