Hi,
I'm using version 2.0b2 and I'm getting the following initial errors when I try to open the insert image dialog:
Error: dialogArguments.Editor is null or not an object
File: fckeditor/editor/fckdialog.html
Line: 28
Error: Permission denied
File: fckeditor/editor/dialog/fck_image.html
Line: 22
Error: Access denied
File: fckeditor/editor/fckdialog.html
Line: 42
The first error results in a dialog being opened with "undefined" in the top left corner. The other errors result in the dialog being incomplete, i.e., missing tabs, OK button, etc. I get similar errors when trying to open the insert table dialog. I'm using Internet Explorer 6.0 running on Windows XP. The code I use to display the editor is at the end of this message.
The weird thing is that it only seems to happen when the page is served off a Redhat Linux machine. The page that the editor is embedded in is part of a Java web application running on Tomcat 4.1.18. When I run it locally on my Windows dev machine, I don't get any errors. However when I run the same files on a Linux machine, I get one of the above errors.
I thought it might have something to do with case-sensitive file names, but looking at the access logs from Tomcat on Linux, there are no 404 errors to indicate that this is the case.
The only time it doesn't seem to happen from Linux is when I put a TCP trace proxy between the client and the server. The proxy prints out the traffic to a log file before forwarding it on. It does not modify any of the content or headers, and the only effect the program has on the traffic is that it slows it down a lot. (I was running it through the proxy to see if there were any weird characters going through).
I have searched this forum and found a couple of threads relating to the "undefined" message in the dialog, but I can't see anything that directly relates to the behaviour I am observing. Can anyone suggest something I could try next?
Cheers,
Kris.
The following code reproduces the problem:
I'm using version 2.0b2 and I'm getting the following initial errors when I try to open the insert image dialog:
Error: dialogArguments.Editor is null or not an object
File: fckeditor/editor/fckdialog.html
Line: 28
Error: Permission denied
File: fckeditor/editor/dialog/fck_image.html
Line: 22
Error: Access denied
File: fckeditor/editor/fckdialog.html
Line: 42
The first error results in a dialog being opened with "undefined" in the top left corner. The other errors result in the dialog being incomplete, i.e., missing tabs, OK button, etc. I get similar errors when trying to open the insert table dialog. I'm using Internet Explorer 6.0 running on Windows XP. The code I use to display the editor is at the end of this message.
The weird thing is that it only seems to happen when the page is served off a Redhat Linux machine. The page that the editor is embedded in is part of a Java web application running on Tomcat 4.1.18. When I run it locally on my Windows dev machine, I don't get any errors. However when I run the same files on a Linux machine, I get one of the above errors.
I thought it might have something to do with case-sensitive file names, but looking at the access logs from Tomcat on Linux, there are no 404 errors to indicate that this is the case.
The only time it doesn't seem to happen from Linux is when I put a TCP trace proxy between the client and the server. The proxy prints out the traffic to a log file before forwarding it on. It does not modify any of the content or headers, and the only effect the program has on the traffic is that it slows it down a lot. (I was running it through the proxy to see if there were any weird characters going through).
I have searched this forum and found a couple of threads relating to the "undefined" message in the dialog, but I can't see anything that directly relates to the behaviour I am observing. Can anyone suggest something I could try next?
Cheers,
Kris.
The following code reproduces the problem:
<html> <head> <script type="text/javascript" src="js/fckeditor/fckeditor.js"></script> <script language="JavaScript"> var oFCKeditor = new FCKeditor("description"); oFCKeditor.BasePath = "/app/js/fckeditor/"; oFCKeditor.Height = "300"; oFCKeditor.Value = "Initial value"; </script> </head> <body> <script type="text/javascript"> oFCKeditor.Create() ; </script> </body> </html>
RE: Error when opening dialogs
RE: Error when opening dialogs
Ok, now I'm getting somewhere that makes a little bit more sense.
The problem occurs when you access the page off a server with a fully qualified name. So it works for http://machinename/app, but when I try http://machinename.domain.name/app, the errors occur. It just so happened that I was accessing the Linux box using its fully qualified name, which is why it was failing from Linux and working from Windows.
So I can now reproduce the problem on my local Windows dev box if I access the page using the machine's fully qualified domain name. Still only on IE6 running on Windows XP.
Are there any ideas on a fix? Should I submit a bug report?
Cheers,
Kris.
RE: Error when opening dialogs
I tried using version 1.5 of the editor, and get a similar problem, however with 1.5, the errors are intermittent.
Something else to note is that the page is being deployed onto an intranet where the domain name ends with ".corp". I tried changing my hosts file and added entries for ".com", ".net" and ".fred", all pointing to the same IP address. When I access the server through these addresses, or directly using its IP address, the problem seems to disappear. I also added an entry for the ".corp" address in the hosts file, and that still doesn't work.
We do have a proxy server here, but the problem is present when I turn all the proxy settings off.
Can anyone suggest any other network settings I could change that might give more information?
Cheers,
Kris.