Ive tried for 2 whole days, and I still cannot get fckeditor working within drupal. This is the most frustrating thing I've ever had to do in my 4 years of system administration.
The lowdown:
1. downloaded fckeditor module, put it in modules/ folder
2. activated module in admin->modules
Here's where it gets tricky..
If i use "modules/fckeditor/lib/" as fckeditors base path, it just shows a bunch of broken images and uncssed text in the textarea, and the admin overview page shows a bunch of 404's when it tries to goto:
"/modules/fckeditor/lib//editor/modules/fckeditor/lib/editor/skins/silver/toolbar/button.image.gif not found"
so i figrued it was the trailing slash on the base path, so i take it out...
base path is now "modules/fckeditor/lib"
Same exact thing, it shows a bunch of text just floating there with alot of broken images, you take a look at the 404's they now point to:
"modules/fckeditor/lib/editor/modules/fckeditor/libeditor/skins/silver/fck_contextmenu.css"
notice the "libeditor" directory, its supposed to be lib/editor...
It seems that someplaces need the trailing slash, and some other places dont for this to work. I tried multiple CVS versions, and still no dice, no amount of hackery can fix this problem. there are 2 threads on just this subject, but with no definite answer
threads:
http://drupal.org/node/16258
http://drupal.org/node/16535
If someone (maybe jtite?) can please shed some light on this...I'd be forever grateful.
Thank you.
Comments
Add your Drupal subdirectory to fckeditor path
As discussed here, http://drupal.org/node/16341, if you prepend your Drupal subdirectory to the fckeditor base path, it will work (provided you have Drupal in some subdirectory of your web root). Make sure to include both leading and trailing slashes.
It still doesnt work..
Now i get "page not found" where the textarea is supposed to go, i have my drupal installation in a directory called "system", according to your instructions, i set my path to "/system/modules/fckeditor/lib/", admin overview says:
"system/modules/fckeditor/lib//editor/fckeditor.html not found." I took out the trailing slash and i got "system/modules/fckeditor/lib/editor/fckeditor.html not found"
=(
it works for me
/system/modules/fckeditor/lib/
What magical version of
What magical version of fckeditor-module are you using? Did you do anything special?
the same as you
none! you set permissins and all that stuff? what about file attributes? Just tossing out ideas. put the fckeditor directory in modules...
finally got it working!!!
in my debugging fervor, i set up a brand new box with apache/php/mysql and tried a fresh drupal install with just that module that working, and then i realized that i never tried /modules/fckeditor/lib, so i did, and it worked! thanks!
Odd....I have the same (your original) issue
I have the same problem you describe originally. I've tried all the possible pathing described above and went to the extreme of granting full read/write/exectute premissions on the fck dir in modules. Still no change....it is definitely a pathing issue but seems to be an odd one.
/modules/fckeditor/lib
modules/fckeditor/lib
modules/fckeditor/lib/
/modules/fckeditor/lib/
all don't work...two of them produce 404's and the other two give broken images and css function ....it is in the root in this instance
any more thoughts on what might have changed in your reconfig?
Disregard....I have it now
Similar to you I had to create a new site. In my instance, I moved the site to a subdirectory of root, included the sub in the path with slashes on both beginning and end and it works. Now to get the same pathing working in the root....
I have a similar problem,
I have a similar problem, though I have at least been able to get the basic editor to work.
However, the default editor refuses to load and I don't know why. I've posted to the SF forum as well as here, hopefully someone will know what to do!
http://drupal.org/node/16682
http://sourceforge.net/forum/forum.php?thread_id=1223146&forum_id=257180
Document or Modify
I get the same problem with the 404 errors:
modules/fckeditor/lib//editor/modules/fckeditor/libeditor/skins/default/fck_contextmenu.css not found.
So, here's my question: I have read that I'm to "prepend" something with the file location. And, I've looked to see if there's a configuration file where that is to take place. It's not discussed in the README.txt and it's not something I've found in the fckconfig.js. Where am I suppose to set this path correctly?
Mine still doesn't work, obviously.
1) Since obviously this is something easily known, where did you guys find this configuration option?
2) Will someone correctly document this issue and add it to the README.txt or an INSTALL.txt in the distribution please.
Added Info:
I went into the fckeditor.module and changed "/modules/fckeditor/lib/" to both "/modules/fckeditor/lib" and "modules/fckeditor/lib". Neither change seemed to stop the repeating file location. Even with the prepending / left on and the trailing / taken off, which seemed to be the direction I gleaned from this discussion, I still get:
404 error: modules/fckeditor/lib/editor/modules/fckeditor/libeditor/skins/default/images/toolbar.end.gif not found.
Well, part of the issue is that there is no such file as "modules/fckeditor/libeditor/skins/default". So, I can't very well do anything that will make those files show up. Anyone have a clue what the problem may be? I'd love to hear from you if you can give you an easy "Hey, stupid! You just need to X and Y."
-
Jason A. Nunnelley
There is One Truth
Complaint; Then Solution Description
Note: Above, I apparenlty didn't understand the directions. I still have a problem with the instruction given, based on the idea that a prefix of a slash typically means root. But, I understand that in the case of the Drupal code, it means the root of Drupal installation. I just disagree on syntax principals with putting /filename when it isn't necessary or doesn't mean /root of the server. That's a personal taste issue I guess. But, people can become confused as to when this will send the file path to the root of the server and when it will send it to the root of the web directory. As I state below, leaving it without the prefix slash (prepending as said by someone else) is both syntax correct and stable.
Complaint: This topic is plastered all over the place. Please try to keep the discussion in one place, at least one problem in one place on one site/forum.
Solution: The prepending slash probably shouldn't be there at all, ever. "/" means "root" in most any unices or web server. So, /home/userdir is often used when you want very specified file locations, like in file permissions in a webserver configuration. In tools that may be placed any old place, the rule is to NOT have a slash before the file location, or put ./ indicating that is to begin in whatever folder it happens to presently reside. This way, you can move it wherever you want, and the resolution goes to the relative location.
The second trailing slash in the file "fckeditor.module" must be in place. If you remove it, it will blend with the following file names (old school URI rules apply here) and thus create melded file names which are NOT where the files are actually located. Your error may come back with things like a 404 error (file not found) for location "modules/fckeditor/libeditor/skins/...." where "libeditor" in the path should have been "lib/editor". This is why you do not need to remove the trailing slash, or if you have a version where there's none there, add it. It shant break it, typically, to add a trailing slash to a folder location on an URI, unless people have coded things up in a way where it takes the variable literally and elsewhere they have added a prefix slash to the hard code. I personally consider this to be a bug. But, workarounds are obvious if you see this problem arise.
Additionally, some of you are going to have errors because the FCKeditor module doesn't contain all the necessary files. Add the FCKeditor files from the site: http://www.fckeditor.net.
Directions:
1) Install the Drupal module just like it tells you to in the README.txt It's just like all the other modules, where you just download, untar, and copy the files to your modules directory.
2) Edit the modules/fckeditor/fckeditor.module file (using Vi, ViM, EX, Notepad, whatever) to change the "fckeditor_base_path" to 'modules/fckeditor/lib/'. People made a lot of hay about having their Drupal install somewhere other than the root of their web root. It makes no difference, just take off that slash at the beginning of the file location - it's bad syntax to put it there, whether your hacked around it or not. The trailing slash at the end keeps you from mingling folder locations in the URIs. You could even put ./ before the path, to indicate "start in this folder" in linux/bsd (any unices) systems. If this breaks something, there are other bugs in the installation. Do the same to any "fckeditor_base_path" in the file where a specified (override) file location is named. Some are going to be "default", etc. Leave those alone.
3) Download, untar or unzip (expand) the files and move the FCKeditor/ files and folders to the modules/fckeditor/lib directory. You should see something like:
FCKeditor/ (will only see if you unzipped/untar'd the file in this dir)
fckconfig.js
fckeditor.php
FCKeditor_2.0rc2.tar (will only see if you gunzipped the file in this dir)
fckeditor.asp
fckstyles.xml
_docs/
fckeditor.cfc
license.txt
_samples/
fckeditor.cfm
editor/
fckeditor.js
That FCKeditor_2.0rc2.tar file is the one I downloaded, after I gunzipped it. The FCKeditor folder is where all those files and folders were before I moved them. FYI, the command was:
mv -R * ../
That moved all the files and folders up one directory to the modules/fckeditor/lib directory. It's simple. You could also FTP those files there, move them with point and click if you have a file manager, etc. You get the idea.
4) There is a potential for permission issues. The tarball has permissions modified in the untar. If you tar -xvf, you are going to get some errors unless you have permission on the server to modify permissions of files using the tar command (sudo or root can usually override these errors). I've yet to see anyone specifically talk on this topic, so let's just say the easy workaround is to pay attention to your errors when you untar the files. You'll need to manually deal with those permissions when those errors occur or untar the file as root and chown it afterward. If you don't have sudo or root, it's just going to be a chmod tweak here and there.
Feel free to let me know if these directions are useful or useless. If you find other buggers, let me know as well.
-
Jason A. Nunnelley
There is One Truth
Thanks Jason!!!
It works! Like you said, getting rid of the prefix slash in the module file seems to be the key:
Edit the modules/fckeditor/fckeditor.module file to change the "fckeditor_base_path" to 'modules/fckeditor/lib/'.
So I Changed
/modules/fckeditor/lib/
To This
modules/fckeditor/lib/
Also, since I installed Drupal on Mandrake and XAMPP, I had to add the subdirectory in Settings > Fckeditor > Base Path
/Drupal-4.5.2/modules/fckeditor/lib/
And it was smooth sailing!
First, thanks for the
First, thanks for the clarification. Editing fckeditor.module did the trick but not until I fixed one snag.
After doing the edits the editor still didn't render. Then I read another comment here that gave me the hint to change the Base Path setting under Settings/FCKeditor. Before I changed it the setting's value was "modules/fckeditor/lib/" (no / at the beginning). So I followed the hint and added a slash at the beginning changing the Base Path to "/modules/fckeditor/lib/". And now FCKeditor works!
The initial value of Base Path comes from fckeditor.module in the fckeditor_settings function. There fckeditor_base_path is defined as "/modules/fckeditor/lib/" (with the beginning slash) -- I shouldn't have edited that; I should have left it alone.
I hope this adds clarity. If, instead, I've added more confusion then I appologize.
Bill
one little thing
to get the job done.
do as jason says,
and then go to admin->settings->fckeditor
and make sure the path in the first field is absolute to your htdocs (where your web files are) and the drupal installtion.
for example, I'm running apache on winXP, so all my html files are inside a folder called htdocs. in there I created a folder drupal with the setup files. so my path is "/drupal/modules/fckeditor/lib/" and then everything works perfectly.
after picking through all
after picking through all the emails... this is the final solution with out editing any files... lol...
/drupal/modules/fckeditor/lib/
. anyways.. its one solution as mentioned above... with all icons appearing!!
D
Trying, but still failing with FCKeditor
I've installed and enabled FCKeditor, gone through the different changes I think I understand posted here, but I either get this error where there should be the user text input area:
The requested URL /modules/fckeditor/lib/editor/fckeditor.html was not found on this server.
Or it breaks the body input area completely and won't allow anything typed there to be posted.
Now, fckeditor.html is right where it should be, I checked that. I know this is a base path issue. I've tried a lot of different paths, but right now it is: /modules/fckeditor/lib/
and does not work.
I do not have Drupal in the base directory of my site, it is installed in /foruml1 - one folder deep in the main site i.e. public_html/foruml1
I've changed the .modules to add/remove preceeding /'s etc. no good.
Any ideas or things I should try?
Thanks,
-Adam
edit /modules/fckeditor/lib/editor/.htaccess
so it reads as follows :
Options Indexes FollowSymLinks
This solution is if you enabled clean URLS, I used to get a forbidden error on the editor.
If its some other problem. I suggest you look at your error_log file for a more detailed error output.
Nir
finally...thanks jason
It works ..thanks jason.
Cant these instructions be included in the readme.txt file of the module?
So that people don't waste their time anymore?
fckEditor Ok but images upload and insert does not work
In my case with last version of Drupal, fckEditor start to work without problem as editor but I don't get it work with image upload, browse or insert.
I don't understand very well your english posts on "\" yes or not but I have fckEditor working in part.
Please tel me if there is other post where found solution to my problem for images.
I have to insert simple images only in static pages.
There is files to setup as write in readme but in eny case, for me, I got web pages that seem to work but free of files or with fake upload.
PS: I have Drupal in subfolder of FTP linux server.
Please help my adventure.
1000Thancks