Hi all!
I have serius problems with fckeditor. I've tried everything but nothing seems to work.

My drupal installation is in the root.
I've installed and activate the module.
I modified fckconfig.js with FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php'
and
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php' ;

I modified the properties.inc file as follow:

function _fck_connector_properties() {
$properties = array();

// The file system path separator (\) windows, (/) unix
$properties['path_separator'] = '/';

// The Context Path property represents a web application, which is run
// within a particular virtual host. If you specify a context path of an
// empty string (''), you are defining the default web application for
// this Host.
// $properties['context_path'] = ' ';
$properties['context_path'] = ' ';

// The default resource types list
$properties['resource_list'] = array('File', 'Image', 'Flash', 'Media');

// resource type paths (absolute path under the context_path)
// These directories must exists in the current file system and have
// read and write permissions
$properties['File'] = '/files';
$properties['Image'] = '/files/images';
$properties['Flash'] = '/files/flash';
$properties['Media'] = '/files/media';

return $properties;
}

folders /files and its subdirectories exists and have 777 permission.

I'm under linux server.

Those are the problems:
when I try to upload the image and go to "image properties->search on server" windows, the name of the folder is "/" and nothing is in it. I cannot select other folders. When I try to create a new folder nothing happens.
If I select an image to upload, it seems to upload it but nothing go on the server.
I made some experiments with $properties['context_path'] = ' '; and $properties['path_separator'] = '/';
Something happens only if I set $properties['path_separator'] = '\\'; browsing with my ftp program I found "something" like "\\files\\images\\testimage.jpg" in fckeditor/ssip/ folder. But This file seem to not exist because I cannot delete or transfer it.

Please give me some ideas....thanks!!!!

Comments

enxox’s picture

must be something related to my hosting because the same settings on another host works...
nobody knows what can be?
Thanx

enxox’s picture

those are my error log file.
Please someone help me with some idea....

[Tue Oct 18 13:33:35 2005] [error] Directory index forbidden by rule:

/web/htdocs/www.persico.it/home/modules/fckeditor/lib/editor/dialog/, referer: http://lnx.apersico.it/modules/fckeditor/lib/editor/dialog/fck_image.html

[Tue Oct 18 13:33:38 2005] [error] PHP Warning: opendir(/files/images/): failed to open dir: No such file or directory in /web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 116, referer:
http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

odules/fckeditor/ssip/connector.php

[Tue Oct 18 13:33:38 2005] [error] PHP Warning: readdir(): supplied argument is not a valid Directory resource in
/web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 117, referer:

http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

odules/fckeditor/ssip/connector.php

[Tue Oct 18 13:33:49 2005] [error] PHP Warning: move_uploaded_file(/files/images/an101.gif): failed to open stream: No such file or directory in /web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 212,

referer: http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

[Tue Oct 18 13:33:49 2005] [error] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpzeDEkz' to

'/files/images/an101.gif' in /web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 212, referer:

http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

[Tue Oct 18 13:33:49 2005] [error] PHP Warning: opendir(/files/images/): failed to open dir: No such file or directory in /web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 116, referer:

http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

odules/fckeditor/ssip/connector.php

[Tue Oct 18 13:33:49 2005] [error] PHP Warning: readdir(): supplied argument is not a valid Directory resource in

/web/htdocs/www.persico.it/home/modules/fckeditor/ssip/core.inc on line 117, referer:

http://lnx.persico.it/modules/fckeditor/lib/editor/filemanager/browser/d...

odules/fckeditor/ssip/connector.php

fixus971’s picture

Hi, I install last drupal version in sub dir of my account in a linux server by FTP.
Settings all as Readme say and all work fine but Images NO!
I can upload but no files goes up.
Image browser don't see files that I upload by FTP
Someone have found a solution? Please tell me yes or no.
Thancks.

enxox’s picture

I've solved at last using the FCKeditor's upload files, and not the drupal's ones.

ivanhalen’s picture

I have the same problem!
Please, can you tell me what did you do exactly?
Thanks!

enxox’s picture

you can try to use the connector.php of fckeditor, and not the one provided with fckeditor.module

in fckconfig.js file set to active (remove the //) the FCKConfig.LinkBrowserURL and FCKConfig.ImageBrowserURL properties that ends with the .php extension

for example this one
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;

probably you will need to set something in connectors/php/connector.php file because it needs to set a variable to "enable"

technigrafa’s picture

In case anyone needs this. I got the image upload to work by changing the "FCKConfig.LinkBrowserURL" line (as well as the image and flash path if you want those) as enxox mentions above and then editing:

/modules/fckeditor/lib/editor/filemanager/browser/default/connectors/php/config.php

and changing:
$Config['Enabled'] = false ;

to:
$Config['Enabled'] = true ;

And then changed:

$Config['UserFilesPath'] = '/UserFiles/' ;

to

$Config['UserFilesPath'] = '/files/' ;

And then changed:
$Config['UserFilesAbsolutePath'] = '' ;

to:

$Config['UserFilesAbsolutePath'] = 'complete_server_path_to_drupal_installation/files/' ;

Of course, change "complete_server_path_to_drupal_installation" to your full server path. You may have to ask your web host for that path.

Anyway, hope that helps!

starding’s picture

In fckeditor/fckeditor/fckconfig.js:
You probably need to change the two variables below to 'php' - defaults to 'asp' :

var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | php

regards,

=======
Søren T
=======

rashmid’s picture

I have tried what you have mentioned above but I am not able to locate where the properties.inc file. Can anybody please tell me the location.

I have tried all the solutions found but still no success in uploading an image.
Anybody has any other solution.

rashmid’s picture

I have tried all the solutions mentioned here in this site but i am not able to upload images. I have tried it on my local machine as well as the server where the site is hosted. But there is no success. I am also trying to find the location of the properties.inc. Can you let me know the location for the file and any other solution.