Hi all,
I'm doing a bit of triage on a website and I'm trying to fix the FCKEditor. The version installed is 2.6.3 and I'm getting a bunch of JS errors in Firebug when I load pages that use the editor. These are the errors:
I initially thought if I upgrade the editor to 2.6.4 it might help. I overwrote the files in the /Editor/ folder with the latest release and no dice, I still get the same errors. I can always revert back to the old version via SVN so I'm not worried about that. Has anyone experienced this before and/or know how to solve this issue? I'm new to this editor so I'm lost. I'm really trying to avoid actually going into the code for the FCKEditor itself and tinkering around to fix this error. I feel like there's something else I'm missing here.
Any tips/ideas are much appreciated. Thanks in advance!
I'm doing a bit of triage on a website and I'm trying to fix the FCKEditor. The version installed is 2.6.3 and I'm getting a bunch of JS errors in Firebug when I load pages that use the editor. These are the errors:
FCKConfig is undefined FCKConfig.ProcessHiddenField(); fckedito...r=Default (line 154) FCKConfig is undefined FCKConfig.ProcessHiddenField() ; fckedito...r=Default (line 154) FCKConfig is undefined var FCKConfig=FCK.Config={};if (document... A.className+=' '+FCKConfig.BodyClass;}; fckedito..._gecko.js (line 33) FCKTools is undefined var FCK_InternalCSS = FCKTools.FixCssU...und-image:url(images/block_h6.png)}' ) ; fckedito...r=Default (line 176) FCKLang is not defined FCK.ContextMenu={};FCK.ContextMenu.Liste...Command(A.Name).Execute(A.CustomData);}; fckedito..._gecko.js (line 105) FCKLang is not defined window.document.dir = FCKLang.Dir ; fckedito...r=Default (line 203) FCKConfig is undefined function FCKToolbarSet_Create(A){var B;v...0;i<B.length;i++) B[i].RefreshState();}; fckedito..._gecko.js (line 99) FCKConfig is undefined var FCKConfig=FCK.Config={};if (document... A.className+=' '+FCKConfig.BodyClass;};
I initially thought if I upgrade the editor to 2.6.4 it might help. I overwrote the files in the /Editor/ folder with the latest release and no dice, I still get the same errors. I can always revert back to the old version via SVN so I'm not worried about that. Has anyone experienced this before and/or know how to solve this issue? I'm new to this editor so I'm lost. I'm really trying to avoid actually going into the code for the FCKEditor itself and tinkering around to fix this error. I feel like there's something else I'm missing here.
Any tips/ideas are much appreciated. Thanks in advance!
Re: Lots of "undefined" or "not defined" err
I have the same problem! Not only with FF but also with IE 7.
This used to work when I implemented it but since last weekend it stopped. I know that there are delays with FireBug in FF that can cause the problem and that is why I tried it on IE. I liked what I saw with FCKeditor and developed my own file browser with thumbnail display and database storage of the pictures, but I about to give up to advance in my development and for that I am looking at TinyMCE, although I prefer the PHP integration to the javascript one.
I would appreciate any help someone can provide.
Cheers...
RD
I have this sample at http://rene.dalle.ca/EcoTourismePerou/T ... editor.php.
Re: Lots of "undefined" or "not defined" err
Re: Lots of "undefined" or "not defined" err
Looking at the FireBug console, effectively, all the files return a 404!
I don't! And it is true that, a week ago, I eliminated from the server the sources, along with the samples and connectors I am not using. But to be sure that I am using the proper files, just now, I re-installed v2.6.4 and with Dreamweaver I synchronized the server, cloaking "_sources", "_samples" and the connectors except PHP in "filemanager" and get the same results...
I am not knowledgeable enough in javascript to go into the editor code to change anything. But what can I do, short of uploading the source files, to eliminate these errors?
Here are the files on my system:
and on the server:
Re: Lots of "undefined" or "not defined" err
You can check that the file that your server sends doesn't match the original one. Compare http://rene.dalle.ca/EcoTourismePerou/A ... e_gecko.js and http://www.fckeditor.net/fckeditor/2.6. ... e_gecko.js
If you haven't modified those files, I would suggest you to use a ftp program that doesn't change the content of what's being sent, as those changes are breaking the functionality.
Re: Lots of "undefined" or "not defined" err
I just did more.... I cleared the caches and every possible temporary sub-directory and now the compressed files are loading correctly! BUT I still get errors, this time telling me that "FCKLang" is undefined although the parameter "DefaultLanguage=es" is passed in the "FCKeditor___Config" tag.
Now, of course since the files are compressed, I cannot see in the code where the error are... Here are the errors from FireBug:
Re: Lots of "undefined" or "not defined" err
That file is still broken. You can search there and you'll find some "../../../../fckeditor/editor" that doesn't exist in the original version.
Re: Lots of "undefined" or "not defined" err
It's fully functional again! We have to be careful with the transfer of compressed files, to ensure that it is done in binary mode!
RD
Re: Lots of "undefined" or "not defined" err
And my upload was using FTP in binary mode:
I am really at a loss... Same thing is happening with IE7....
RD
Re: Lots of "undefined" or "not defined" err
All is well now...
RD