A.M. wrote:The best course of action is to take guessing out of this exercise. Look at the server logs and see what actual URLs are being submitted. One thing I will note is that when you specify a domain name, you have to make sure http:// is in front. Otherwise, it will result in a request for something like this: "/mywebsite.com/fckeditor/..."
In general, the logic is like this:
/path/file.ext - absolute file path (relative to web root); current file path is ignored path/file.ext - relative path, appended to the current file path http://domain/path/file.ext - fully-qualified URL; current file path is ignored
I am looking at a 404 error right now and it is trying to include /editor/fckeditor.html all the way from the ROOT and since I am not on dedicated servers it is like /home/username/blalbah/mysite/fckeditor/editor/fckeditor.html which it shouldn't be so, I am assuming since the file is there but there is a 404 error.
Do I need to change some settings in the fckconfig.js file maybe? How can I get it to link to the correct address?
It looks like /home/username/blalbah/mysite/ is your web root. Make sure that's the case (e.g. copy a file to the web root and request it with the browser). Then look at the log file and find those 404's. Concatenate web root and the path reported in the log and you will see the broken path.
@andreahalsey - Based on your description, the correct value for BasePath is '/fckeditor/', which means that FCKeditor is installed in the "fckeditor" directory in the root of your web site.
The BaseHref setting has nothing to do with it. Just ignore it for now.
A.M. wrote:It looks like /home/username/blalbah/mysite/ is your web root. Make sure that's the case (e.g. copy a file to the web root and request it with the browser). Then look at the log file and find those 404's. Concatenate web root and the path reported in the log and you will see the broken path.
andreahalsey wrote:I am using cwdir() in php all over the page to check for what the directory is that I am currently working which I assume is doing the same thing you are describing.
andreahalsey wrote:Here is the 404 error I am getting: The requested URL /home/*username*/public_html/*mysite*/fckeditor/editor/fckeditor.html was not found on this server.
andreahalsey wrote:The 404 error is posted above. *sigh* I'm so lost here about these darn folders, I'm ready to move on
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
http://domain/path/file.ext
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
Do I need to change some settings in the fckconfig.js file maybe? How can I get it to link to the correct address?
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
The BaseHref setting has nothing to do with it. Just ignore it for now.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: I need help, my editor is not working.
http://www.mysite.com/fckeditor/fckeditor.html
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
Re: I need help, my editor is not working.
http://www.mywebsite.com/blog/