Apologies for posting on this topic which has been wokred over but I'm unable to Upload Images using FCKeditor. I started with the latest version (2.2?) and have now started from scratch with v2.0
Filesystem
Drupal is located in the root of my site, not a subfolder
/files (777)
/files/images (777)
/files/flash (777)
/files/media (777)
I updated fckconfig.js by disabling the default ASP and setting like so (straight from the readme)
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php"
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php"My properties.inc
*/
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;
}
?>FCK loads fine and I can edit content, but when I try to insert an image the image browser shows a drop down for " / " with no subfolders available, and no contents (current files) displayed.
The error log from the SSIP folder says the directories don't exist.
[11-Dec-2005 14:26:17] PHP Warning: opendir(/files/images/): failed to open dir: No such file or directory in /home/northbro/public_html/modules/fckeditor/ssip/core.inc on line 116
[11-Dec-2005 14:26:17] PHP Warning: readdir(): supplied argument is not a valid Directory resource in /home/northbro/public_html/modules/fckeditor/ssip/core.inc on line 117and finally when I use the FCK connector test page, ALL scripting types (ASP, CFM...) except PHP gladly return a text file when click "get folders" or "get folders and files". PHP returns this error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
−
<Connector>
<Error number="1" text="This connector is disabled. Please check the "editor/filemanager/browser/default/connectors/php/config.php" file"/>
</Connector>
So I went in and edited two lines in: editor/filemanager/browser/default/connectors/php/config.php
Changed False to True in anable and changed the file Path to /files/ from /userfiles/. Whats funky is all other script languages have the same default settings but work fine.
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true;
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/files/' ;This failed also... and led to a new error from the FCK test link
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Connector command="GetFolders" resourceType="File">
<CurrentFolder path="/" url="/files/File/"/>
<Folders/>
</Connector>
At which point I gave up......
Comments
the same problem
Hello,
I've got exactly the same problem, but with a bit newer version.
I use the built in browser instead, since I haven't found the answer.
Good luck anyway
Michael