Inserting Images in fckeditor
HI all,
I am really hoping somebody can help me as I have spent that last few days scouring the web, forums, etc trying to get this to work. I have installed fckeditor and it appears to be working well, with the exception of one function. I cannot insert images using the Image button provided on the menu.
When I select that button, a window opens the Image Properties window as expected. If i then hit the Browse Server button, it shows opens the broswer window and shows an empty directory (as one would expect). However this is where the fun starts. If I try to create a new directory, it gives me the error select that is supposed to show the images, etc. If I try to upload an image, it just hangs ... if I try to create a new folder, it gives me a "You have no permissions to create folder" error. If I try to upload a file, it will allow me to select a file (from my PC running the browser, not the system hosting the site), but then when I select upload, it says uploading and just hangs there.
Here is some support information that I hope will help:
I have installed Drupal in a subdirectory (/house) and believe I have all the correct configuration files set for this.
When I open the open the Image dialog box, I noticed I get the following in the apache2 access log:
192.168.1.1 - - [05/Mar/2005:17:22:57 -0500] "GET /modules/fckeditor/lib//editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
Note the double "//" after lib in the path. I have been chassing this problem all over the freakin place and have prevented them from showing up in many places, but am still not there (obviously).
I don't know if this is what is causing the problem or not. I actually suspect there are at least two problems here and that I need to peel through a few more layers of the onion before I crack this one. Any support from the group would be mcuh appreciated.
Cheers ...

Inserting Images in fckeditor Solved
I managed to get this working (after much pain and agony).
First of all, the line that suggest I re-direct to /ssip/connector.php, I just couldn't get working (I found it in a number of posts). Try as I might, I just couldn't get is sorted and so am using the version pointed to in my note above ("connectors/php/connector.php").
To get rid of the extra "/" in the path, I had to go in and modify fckeditor.module file. It appears that there was an extra slash included when the paths are built. I removed them and this problem was resolved.
Finally, the permission issue was around where it wants to store the uploaded image files. connector.php adds /UserFiles/ to the path so in my case with a subdirectory, it is expecting a directory /house/UserFiles/Image where it will store the uploaded files. It took a while to find this one, but finally there and it seems to solve all the problems.
Thanks all and hopefully this post is able to help somebody else
Cheers ...
Working without modify the source
Hi Seasnark
at the begin I habe the same problems as you. After reading your lines I start to ask me the right questions and get it working without modify the source.
At first:
"First of all, the line that suggest I re-direct to /ssip/connector.php, I just couldn't get working (I found it in a number of posts). Try as I might, I just couldn't get is sorted and so am using the version pointed to in my note above ("connectors/php/connector.php")."
You have to modify this in the modules/fckeditor/lib/fckconfig.js There you have to enter change following entry:
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"
It's also writen in the README of the module.
The second problem we had, was with the extra "/". This problem apear of wrong configuration in modules/fckeditor/ssip/connector.php.
You have to change the parameter $properties['path_separator'] = '\\';
to $properties['path_separator'] = '/';
(I'm sure you are using unix also)
Well that's all.
Hope it help
Weirder in a different way
Hi - I have had a lot of trouble trying all sorts of things as well.
My drupal is under /var/www/drupal-4.6.0 http://host/drupal
Eventually:
I left the lines in fckconfig.js as original - eg
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ; and
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
In the properties.inc I left the contect path as /drupal and changed the path seperator as /
$properties['path_separator'] = '/';
$properties['context_path'] = '/drupal';
i.e - afteer messing with it for too long, I re copied all the files and it worked better than I could get it to work following the instructions.
But the editor seem wanted to upload images to /var/www/drup/UserFiles/Image/
(drup??!!)
and crates links to /var/www/UserFiles/Images
so I have crated links from /var/www/drup to /var/www/drupal-4.6.0 and from /var/www/html/Userfiles to /var/www/drupal-4.6.0/UserFiles
I am still getting the // in the http log files but is seems to be working.
I have been messing with this for days - it works so I am leaving it. Not optimal I know.
I find it weird that there seems to be two places where the path is built, perhaps 3 - that all give different results. And where the 'drup' comes from is a mystery.
Don
hello, desire to know
hello, desire to know because the this chain when using fckeditor is not added/in, EXAMPLE modules/fckeditor/lib/editor/modules/fckeditor/libeditor/skins/default/images/toolbar.end.gif IN THIS libeditor SECTION MUST GO lib/editor THE / DOES NOT APPEAR
---------------------------------------------
IF SOMEBODY HAS The READY ANSWER Or I MODULATE SINGLE TO SETTLE Or A MAS WAY SIMPLE TO BE ABLE TO INSTALL I THANK FOR IT MUCH And THEY CONTACTED To ME SO THAT MY Email PASSES ME IS GERMAN_REYNA@MAIL2WORLD.COM, EXCUSE IF THEY ARE NOT UNDERSTOOD VERY OR SINCE I TRANSLATED THIS IN GOOGLE, THANKS
PD-- IF THEY KNOW HOW OF MANUAL TO CREATE MODULES IN DRUPAL INTEREST MUCH KNOWLEDGE To ME WHERE TO LOWER IT TO STUDY IT.
Modify Fckeditor.module
this line
* Return the configuration string
*/
function fckeditor_config_string() {
$base_path = variable_get("fckeditor_base_path", '/modules');
$skin = variable_get("fckeditor_skin", 'default');
$start = variable_get('fckeditor_toolbar_start_expanded', 'true');
$output = '&DefaultLanguage=en&AutoDetectLanguage=true';
$output .= '&SkinPath=' . $base_path . "/fckeditor/lib/editor/skins/$skin/";
$output .= '&ToolbarStartExpanded=' . $start;
return $output;
}
?>
fckeditor problem
Hi All
i am using fckeditor in a web application.
when i hope browsing the server to insert image or make a link i hav got this error message :
XML request error : Unknown (12031)
can someone help me to resolve this problem
thinks.
Testing Image Browser.. Old and New now Works!!
Hi, I'm happy to annunce that I'm starting to understand how to Test fckeditor on specific server to Found right setup.
All that readme don't say..
First of all go to try simple Image Browser with the page for testing:
http://www.site.it/modules/fckeditor/lib/editor/filemanager/browser/defa...
Set Connector = PHP (enabled in config.php)
and Resource Type = Image (insert exaple images via FTP)
Use comand => Get Folders and Files
If all ok you see your images
If not you get on video Path and URL tested and according with this you can retray anoter path in config.php to found right setup.
5mins for me.
And..
With same tip I'm startup new browser system that use icons for images and new comands:
http://www.site.it/modules/fckeditor/lib/editor/filemanager/browser/defa...
I get and copy file Test.html from default/connectors/test.html dir
This setup is more complex but go right.
All this tests are in textmode but now all work and I can see in:
http://www.site.it/modules/fckeditor/lib/editor/filemanager/browser/defa...
and
http://www.site.it/modules/fckeditor/lib/editor/filemanager/browser/mcpu...
This links is the same called by fckeditor dialog.
Now I'm starting to test/connecting fck with drupal.
FiX of www.fixweb.it
What is the solution?
Hello,
I am having the same issue as the orignal poster, where I am unable to complete the upload/embedding of images into the FCKeditor with Image Assist (the add image button below the text fields). I am seeing a javscript error, but I'm not sure about all that paths with extra slahes stuff.
Does anyone know of the solution to this, or which files & lines I need to edit to make this work?
Thanks a billion,
Jen :)
Support in Spanish
Soporte en español en este pagina creada con drupal, ya solucione ese problema, gracias
My Site in Spanish reggnetwork.net
Les puedo pasar el modulo
Les puedo pasar el modulo corregido para drupal 4.6.x del fckeditor si lo piden aqui http://www.reggnetwork.net/
German Reyna - www.reggnetwork.net
Helpful forums
BSB
fck editor - image upload problems - solutions for newbie
hi all
let me add my very frustrated voice to the chorus
i have just managed to install fckeditor and love all the things that it does except (as everyone is saying) the image upload function...i simply hit a proverbial brick wall...i see lots of code solutions in the responses that addle my brain...is there anything anyone can do to simplify all this code stuff for a drupal newbie or do i just have to admit defeat and have a site without images (something i cannot really countenance)
has anyone posted a video that would help some of us new kids on the block and help ensure we dont go in and do some serious damage to the code?
cheers
toul@
1 am using drupal 6.1 - would upgrading solve this problem?