FCKEditor Resource Browser doesn't work
-
noname
FCKEditor Resource Browser doesn't work
The problem is that I installed the "Savusavu" version on a FreeBSD server running Apache2 and PHP5 and everything is working properly but the FCKEditor's Resource Browser (FCKEditor -> Insert/Edit New Image -> Browse Server). It opens up correctly and frames are loaded but the frame where all the image files should be listed is totally empty.
If I upload a new image from Resource Browser, it goes to the right directory (uploads/images/) just the way excepted. But the problem doesn't go away: not a single file is shown in Resource Browser. CMSMS configuration file is correct, there's no question about it. And when I installed CMSMS on a different server with PHP4, it worked just fine. Reinstallation of this problem maker one didn't help.
I keep getting two Javascript related error messages when opening Resource Browser. It's the same error from both lines 120 and 121: "Object missing".
Any suggestions what should I do?
EDIT: Forgot to tell the filename for those JS errors. It's modules/FCKEditorX/FCKEditor/editor/filemanager/browser/default/frmsourceslist.html
If I upload a new image from Resource Browser, it goes to the right directory (uploads/images/) just the way excepted. But the problem doesn't go away: not a single file is shown in Resource Browser. CMSMS configuration file is correct, there's no question about it. And when I installed CMSMS on a different server with PHP4, it worked just fine. Reinstallation of this problem maker one didn't help.
I keep getting two Javascript related error messages when opening Resource Browser. It's the same error from both lines 120 and 121: "Object missing".
Any suggestions what should I do?
EDIT: Forgot to tell the filename for those JS errors. It's modules/FCKEditorX/FCKEditor/editor/filemanager/browser/default/frmsourceslist.html
Last edited by noname on Thu Mar 30, 2006 9:08 am, edited 1 time in total.
Re: FCKEditor Resource Browser doesn't work
I don't really want to encourage anyone to jump ship on the FCKEditor, but I had a similar problem a little while ago, and tried using TinyMCE. Haven't had any image problems since.
If you just need to get some images into your posts, you could download that module and install it change your User Preferences and see if you have better success!?!
Of course if you have some time for it you can get into the code and see what's going on
If you just need to get some images into your posts, you could download that module and install it change your User Preferences and see if you have better success!?!
Of course if you have some time for it you can get into the code and see what's going on
-
PrettyWolfie
Re: FCKEditor Resource Browser doesn't work
Having the same problem. Javascript error when trying to browse server. The weird thing is: sometimes it works! 
FCK is faster and have more resources than Tiny MCE. I rather stick with FCK...
FCK is faster and have more resources than Tiny MCE. I rather stick with FCK...
-
cyberman
Re: FCKEditor Resource Browser doesn't work
Don't know which server you are using but one of the main reasons I switch to current TinyMCE module was it's much faster than FCK (not only cause it can use gzip compression for loading editor)PrettyWolfie wrote: FCK is faster
-
PrettyWolfie
Re: FCKEditor Resource Browser doesn't work
For once, using FCK was much simpler, and at the same time, the image uploading facilities (ok, when that works
) was better. You have no image upload on the Tiny MCE.
Re: FCKEditor Resource Browser doesn't work
I have the same javascript error here (0.13 on Apache, too).
I have started digging in fckeditor, but no success so far.
C'mon, please stop playing with this childish "TinyMCE is better than fckeditor", "Lindows is better than Winux", "mine is bigger than yours"... we're all just looking for solutions.
I have started digging in fckeditor, but no success so far.
Re: FCKEditor Resource Browser doesn't work
OK, the first problem is in modules/FCKeditorX/FCKeditor/fckconfig.js : one must have
(was "asp").
So it now uses correct code, and
no more js error.
So I created a new folder "mytest", went to ftp, and found it under [root]"/myfiles/File/mytest" (I'm not using the standard "uploads" directory, but some "myfiles" folder.).
--> it's rather good, because it reads & uses cmsms config
--> but I (so far) can't find why & where it adds this /File/ directory between ?
[Edited] : it's under /File , not /Files (no final s).
Code: Select all
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | phpSo it now uses correct code, and
So I created a new folder "mytest", went to ftp, and found it under [root]"/myfiles/File/mytest" (I'm not using the standard "uploads" directory, but some "myfiles" folder.).
--> it's rather good, because it reads & uses cmsms config
--> but I (so far) can't find why & where it adds this /File/ directory between ?
[Edited] : it's under /File , not /Files (no final s).
Last edited by fredt on Thu Jun 29, 2006 10:55 am, edited 1 time in total.
Re: FCKEditor Resource Browser doesn't work
... then we have to dig into modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php :
It says:
So: the /File directory comes from the File Type selection in upper left Resource Browser window: it creates File, Image, Flash... subdirs according to the type you select.
This code has probably been edited by megabob3, who authored the module - so type Image leads to /images/ directory (hard coded
), so we can get our images from fckeditor.
Has anybody an idea about how to go on hacking this - I think it would be nice to have all types starting from the uploads root, not subdirs - except Images ?
It says:
Code: Select all
/////////////////////////////////////
/////////////////////////////////////
if (strcmp($sResourceType,"Image")==0)
$sResourceType = "images";
// Check if it is an allowed type.
// if ( !in_array( $sResourceType, array('File','Image','Flash','Media') ) )
if ( !in_array( $sResourceType, array('File','images','Flash','Media') ) )
return ;
/////////////////////////////////////
/////////////////////////////////////This code has probably been edited by megabob3, who authored the module - so type Image leads to /images/ directory (hard coded
Has anybody an idea about how to go on hacking this - I think it would be nice to have all types starting from the uploads root, not subdirs - except Images ?
-
iNSiPiD
Re: FCKEditor Resource Browser doesn't work
This problem is insane. Sometimes it works, and sometimes it doesn't.
I just had it working in a page edit for one link and then I came back after making a coffee to do th enext link and got this error. Never had it before.
Applying the changes to the page and then trying again seemed to solve it. I wonder if this is just a memory issue.
Odd that it's only raised its ugly head recently though. Never seen it before the 0.13 upgrade.
I just had it working in a page edit for one link and then I came back after making a coffee to do th enext link and got this error. Never had it before.
Applying the changes to the page and then trying again seemed to solve it. I wonder if this is just a memory issue.
Odd that it's only raised its ugly head recently though. Never seen it before the 0.13 upgrade.
-
PrettyWolfie
Re: FCKEditor Resource Browser doesn't work
I tried the asp sugestion, and there was no diference... Out of anything better to do I just deleted the temporary internet files. TA-DAAAH! ;D Began to work again just fine.fredt wrote:
Has anybody an idea about how to go on hacking this - I think it would be nice to have all types starting from the uploads root, not subdirs - except Images ?
Just in case I better make them an offer of fruit and flowers...
-
cyberman
Re: FCKEditor Resource Browser doesn't work
Please check current TinyMCE module once again - it has the FCK ressource browser insidePrettyWolfie wrote: You have no image upload on the Tiny MCE.
-
PrettyWolfie
Re: FCKEditor Resource Browser doesn't work
I actually just found out there was a new release on FCK so I am trying that for now. If it keeps bugging me I will change... 
Re: FCKEditor Resource Browser doesn't work
In version 1.0 of FCKeditor with CMSMS 1.0-svn (revision 2997)
In modules\FCKeditorX\FCKeditorXcfg.js.php
Took out 4 junk characters at the beginning of the file
Uncommented lines 15-17
Commented lines 20-22
In modules\FCKeditorX\fckstyles.xml.php
Took out 4 junk characters at the beginning of the file
Commented out lines 66-73
The javascripts are gone and the Toolbar definition in the FCKeditor configuration now works.
The editor seems to be working ok with these changes but I haven't done any extensive testing.
In modules\FCKeditorX\FCKeditorXcfg.js.php
Took out 4 junk characters at the beginning of the file
Uncommented lines 15-17
Commented lines 20-22
In modules\FCKeditorX\fckstyles.xml.php
Took out 4 junk characters at the beginning of the file
Commented out lines 66-73
The javascripts are gone and the Toolbar definition in the FCKeditor configuration now works.
The editor seems to be working ok with these changes but I haven't done any extensive testing.
Greg
-
PrettyWolfie
FCKEditor Resource Browser Bug
Ok... I found out WHEN the files don't get listed... I will try to explain...
The Resource Browser do not work if the browser was opened in another window previously to the window where the FCK editor is running.

No... I don't know why. But if I I don't close all the other windows opened previously, the resource browser does not let me see the files list when I click on the Browser server button, just upload images (or flash or whatever other resource).
It seems the windows opened after cause no problem. So the simple solution is just to open your adminstration window and later open the other windows. Or just in case close all browser windows and use the first one for the page editing.
Now... why?
Have no idea!
The Resource Browser do not work if the browser was opened in another window previously to the window where the FCK editor is running.
No... I don't know why. But if I I don't close all the other windows opened previously, the resource browser does not let me see the files list when I click on the Browser server button, just upload images (or flash or whatever other resource).
It seems the windows opened after cause no problem. So the simple solution is just to open your adminstration window and later open the other windows. Or just in case close all browser windows and use the first one for the page editing.
Now... why?
-
iNSiPiD
Re: FCKEditor Resource Browser doesn't work
Yeah, I had a similar revelation.
I tried the ASP thing, I tried clearing temp files, I tried closing other browser windows and applications.
At the end of the day it seems to be a memory issue. If you edit a large page and make lots of changes without Applying as you go, the problem occurs. If you Apply changes more regularly to the page and then try the resource browser again, you will find that it lists files as expected.
This would definitely seem to be a temp memory related issue.
I tried the ASP thing, I tried clearing temp files, I tried closing other browser windows and applications.
At the end of the day it seems to be a memory issue. If you edit a large page and make lots of changes without Applying as you go, the problem occurs. If you Apply changes more regularly to the page and then try the resource browser again, you will find that it lists files as expected.
This would definitely seem to be a temp memory related issue.

