Hi,

I'm trying fckeditor with D6 since there's no cck for D6 yet (I would have used image field to do this work)
fck is working however I can't upload images. The error I got is "the file uploader is disabled. Check file fckeditor/editor/filemanager/connectors/php"
Attached you can find the file.
Can anybody help?

CommentFileSizeAuthor
config.php_.txt7.2 KBsuoko
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

suoko’s picture

One more thing:
I don't really need file upload.
It would be enough to upload files manually under /files directory and the link to them, HOWEVER when I put image path in fckeditor, "files/image.jpg" is not enough. I have to put the complete path like "http://localhost/.../image.jpg"
This is not good when you have to move your drupal installation...

UPDATE:
I also tried internal paths like %d%b%f/ and %b%f/ with no success.

zilla’s picture

for d6, i'm about to try fckeditor - but i'm also already using img (img_filter) and it works very well - as opposed to just simple 'default options' for users (upload 1 or more images, put above text/below text, on right floating, etc) it also allows specific 'within body' placement so if, for example, you were writing a sw review with multiple screenshots, you'd do paragraph 1, insert simple tag [img:1] and so on...also autogenerates thumbnails and works with lightbox2 and all of that...

my plan is to actually remove the image option from fck editor and leave only text formatting and that way users will be driven into proper formatting of images and thumbnails will reduce page load times - plus nobody can do that crap where tehy try to insert an image that's five miles wide ;)

link is here: http://drupal.org/project/image - seems like a good match to fckeditor...

droshani’s picture

Hi I had same problem. I solved it via enameling the Config first by setting $Config['Enabled'] = TRUE , then make sure you define a folder at root by $Config['UserFilesPath'] = '/images/content/', then it will work. what I do not understand is when I upload images I can not see them when I browser to the location by FTP but I can see then in FCKEditor and when I add images to post I can see them in editing view but not when I save the post. WHY IS THAT?

$Config['Enabled'] = false ;

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

sankar_jeya’s picture

hi i too have the problem i get error msg in new window

err->The server didn't send back a proper XML response.
plz some one help me

wwalc’s picture

@suoko - be sure that you have read README.txt, especially the "How to enable the file browser" section.

@koyauni - $Config['Enabled'] is set to false by default to prevent your site against hackers. Setting this simply to true is generally a bad idea. Include the filemanager.config.php according to the instructions instead.

@sankar_jeya - could you provide more information to help you resolve this issue? Do you get only this error "The server didn't send back a proper XML response" or maybe anything more? Please try the latest FCKeditor 2.6 Beta (http://www.fckeditor.net/download).
- Did you check your error logs?
- Maybe you have an error in config.php file?

droshani’s picture

Sorry how am I suppose to define these in filemanager.config.php

$fck_user_files_path = "";
$fck_user_files_absolute_path = "";

I do not remember where that $Config['Enabled'] was, I can not find it :(

Thanks

lil-1’s picture

Hi!
I had the same "The server didn't send back a proper XML response" error with FCKeditor 2.6 Beta. Together with that it reported something like "no filemanager.config.php file in the directory: mysite/modules/fckeditor/filemanager.config.php", showing the exact directory the file is.
In some time it just stoped pop-upping the error and doesn't execute anything at all
Can it be the server?

(Everything but this works perfect!).
(Logs don't report errors, FCKeditor is 2.5.1. )

lil-1’s picture

koyauni, Hi,

the
$Config['Enabled']
is almost at the very top of config.php which is in /fckeditor/editor/filemanager/connectors/php/

ansorg’s picture

hi,

I do have the same issue: drupal-6.1, fck module 6.x-1.1-beta2, fck-2.5.1

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

- module and fckeditor uploaded, module enabled, permissions for the editor and the upload granted.

following the readme I did
1. added the require_once "../../../../../filemanager.config.php"; in the right place
2. set $cookie_domain variable to the appropiate domain (x-plane.ansorg-web.de)
3. grant permissions to the "editor" user role

now, what about
4. Lastly, adjust the File browser settings for each profile.
? could an error in that settings cause the failure?

Otherwise I have followed the readme without success :(

Jens

ansorg’s picture

taking a closer look it seems that

filemanager.config.php does get included but

1.) the authentication does not work (also, after opening the filemanager I see a second session created for the domain, why?)

If I overwrite that and set it manually to true, I get

2.) "Error creating folder SERVERROOT_PLACEHOLDER/drupal-6.1/sites/x-plane.ansorg-web.de/sites/x-plane.ansorg-web.de/files/image/"
you see, the UserFiles(Absolute?)Path is totally wrong

So I hardcoded the two paths also in filemanager.config.php

but still there is an issue: the filemanager looks for a folder "image" but I have "images" defined in the "image module". And I cannot find the place in filemanager to change "image" to "images"

Jorrit’s picture

Status: Active » Closed (fixed)

The per-filetype directories are defined in the config.php of the php connector. I'm closing the bug because it is old and many things have changed in the meantime. Please reopen if you still experience problems.

ghowie’s picture

Title: can't upload images through fckeditor (D6+fck-dev) » Readme Needs Clarification
Status: Closed (fixed) » Active

According to the readme, it sounds like i am supposed to modify config.php to include the following:

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

Even after I did all the readme suggests, the File Manager didn't work. Such a shame cause it looks like a great looking fileman. After following the instructions, I no longer got the error msg that Jens gets... instead the fields were just blank and I can't upload, and can't create folders.. I think this may be a combo of permission issues & other things... I'll be back at it over the weekend. I like fckEditor SO MUCH BETTER than Tiny, because there aren't any pesky width problems!

Gavin

rashied’s picture

OK I am a total noob to drupal, have always used joomla , but now i am kinda liking drupal . i have succesfully installed 6.X ( dont know how to find out what version I have) and have now installed fckeditor succesfully , it all works fine but I am getting the image error when I am trying to browse server "This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file"
as mentioned in the readme
i have amended my config.php file to look like

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

but am still prompted with the same error , has anybody made any progress ?

what i did notice is that in the start of the config file it states

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 ;

could it be that this needs to be set to true , I have already been stung a couple of times in joomla whereby my site was hacked, therefore do not want to take this risk if it will leave my site open to the world.

Heck I thought i be daring and have just tried to enable the above to true, but it did not make any difference . let me quickly set it to false.

can anybody help on this please , or is there another editor program I can use ?

Jorrit’s picture

$Config['Enabled'] is being modified in the included file. Have you modified your settings.php file.

asfahaan’s picture

Seriously such a mission!

:( Does someone have a proper solution for this?

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)

@asfahaan: everything is explained in README.txt, if you follow all the steps, it should work.
If you're having problems with the file browser and none of these posts didn't solve your problem, then the only thing I can suggest you is to create a test account with all necessary permissions to test this issue and send me a PM with a link to such site (need at least the following permissions: "create page content" and all fckeditor.* permissions).
I need also to know how does your config.php look like ("editor/filemanager/connectors/php/config.php").

If I manage to solve your issue, I will be able to understand how can I improve the documentation (or improve detection of possible misconfiguration).

jamesczar’s picture

I followed the README.txt to the letter, and after setting $cookie_domain variable to the appropiate domain, the file browser worked.

This was the one step I was missing.

However, setting the $cookie_domain variable properly cause something very peculiar: when my site is in off-line mode, and then I log out, once logging back in it still displays the Offline Message page no matter what internal page I go to (except for /user). No matter what user account I use, this happens. The only way to get the site back in on-line mode is to edit the settings.php file again and comment out the $cookie_domain line. Then I can log in and get to the off-line admin settings page to put the site back in on-line mode.

Has anyone else experienced this? It's happened only on my site that's installed in a subdirectory. My other site that's installed at the root of a different URL - it works fine. Thoughts?

wwalc’s picture

@jamesczar: I didn't try to eproduce it, but it seems it could be a bug in Drupal. Create a test installation with no third party modules installed, set the $cookie_domain variable and try reproducing this issue. If you can reproduce it, then create a new bug report in Drupal issue tracker.

cmgui’s picture

This how I fixed the problem:

cd sites/default
vi settings.php

$cookie_domain = 'yourdomainname.com';

this is in the README.txt file
2. As of Drupal 5.2, additional step is required: 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 uncomment that line). If you not do this, FCKeditor will
claim that file browser is disabled

NO need to do this in sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
$Config['Enabled'] = true ;

FCKeditor is quite a good WYSIWYG editor.

Regards

cmgui

Jorrit’s picture

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

Closed because of inactivity.