Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Nov 2006 at 05:39 UTC
Updated:
11 Dec 2006 at 07:30 UTC
i have found that images are uploaded to a directory higher than the drupal install. I previously raised this here - http://drupal.org/node/97694
For example, for a site installed at:
http://sandbox.mysite.com/drupal
the files/images folder should be:
http://sandbox.mysite.com/drupal/files/images
What actually happens is FCKeditory loads the files here:
http://sandbox.mysite.com/files/images
I have also tried this locally using MAMP (where i first detected the problem, then tried in as a sandbox site)...
Indicative of the problem, images uploaded with IMCE are in the correct directory and through FCKeditor you cannot access these as it goes to the higher directory...
Comments
Comment #1
Wouter Van den Bosch commentedI'd like to confirm this.
I was trying to figure out why I couldn't upload images through FCKEditor with IMCE installed. I could upload images through the My Account tab, without problems, but via FCKEditor I kept getting error messages stating that there were insufficient access rights for the given folder.
Following this bug report, I made a directory higher than my drupal install, named files/Image; gave it full rights and FCKEditor allowed for uploads this time, upping them to the wrong directory alas.
Cheers,
Wouter
Comment #2
ontwerpwerk commentedSome questions about your configuration:
..modules\fckeditor\lib\editor\filemanager\browser\default\connectors\php\config.phpas specified in the readmenew FCKeditor)Comment #3
Wouter Van den Bosch commented1. My files directory is just 'files' within my drupal directory (set to 777) and regular uploads pose no problems. I am also perfectly able to upload images through the IMCE interface unde 'My Account'.
2. Yes.
3. how does the fckeditor code look in the page itself :
When I experiment with changing "...&ServerPath=/files" into "...&ServerPath=/idtv/files" on all three lines in the module (idtv is my drupal directory), it does post the images into the correct folder. Sadly enough I still don't get the IMCE interface, but that might be related to another issue I take it.
Cheers,
Wouter
Comment #4
ontwerpwerk commentedIf you change the following:
to
will it work then?
Comment #5
ontwerpwerk commentedI looked into it a bit more.. and it should work that way, I'll update the module soon.
The following lines must be changed a little too (the leading slash before ServerPath must be removed)
Comment #6
ontwerpwerk commentedthese changes are committed to the latest 5.x and 4.7.x versions of the module
Comment #7
avolve commentedi just wanted to say thanks!
[and sorry for not looking back on this sooner and testing your suggestions...]
Comment #8
Permanently Undecided commentedHello! This problem is still occurring for me. I downloaded the most recent cvs version:
// $Id: fckeditor.module,v 1.19 2006/11/13 19:21:39 ontwerpwerk Exp $and the files still get loaded one directory higher. The lines that you mentioned needing changing are still the same, too. It's like the commit you mentioned on #6 didn't happen?
Comment #9
ontwerpwerk commentedfor drupal 5.x the version that includes this fix is the following or greater
( http://drupal.org/files/projects/fckeditor-5.x-1.1.tar.gz )
and for drupal 4.7.x it is
( http://drupal.org/files/projects/fckeditor-4.7.x-1.1.tar.gz )
please recheck your downloads
Comment #10
Permanently Undecided commentedThanks for the link, ontwerpwerk. I generally download head code directly from cvs and this page:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/fckeditor/
still shows the old version (revision 1.19 dated 13 days ago). I didn't know there was a place with more updated code than that. Thanks and sorry for the confusion.
Comment #11
Permanently Undecided commentedAddendum: and I now see where the problem is! If one does a cvs checkout of the directory, one downloads, for reasons beyond my understanding:
instead of downloading the latest version, which is called:
I have no idea why the cvs checkout doesn't download 1.19.2.1 as it should. Sorry again, ontwerpwerk.
Comment #12
ontwerpwerk commentedsince the new release system is in place you will need to download the dev version of one of the branches.
Comment #13
(not verified) commented