Page 1 of 2
FCKEditor Resource Browser doesn't work
Posted: Thu Mar 30, 2006 9:04 am
by noname
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
Re: FCKEditor Resource Browser doesn't work
Posted: Fri Mar 31, 2006 5:36 pm
by jeffunk
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

Re: FCKEditor Resource Browser doesn't work
Posted: Wed Jun 28, 2006 8:13 am
by PrettyWolfie
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...
Re: FCKEditor Resource Browser doesn't work
Posted: Wed Jun 28, 2006 8:49 am
by cyberman
PrettyWolfie wrote:
FCK is faster
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)

.
Re: FCKEditor Resource Browser doesn't work
Posted: Wed Jun 28, 2006 3:12 pm
by PrettyWolfie
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
Posted: Thu Jun 29, 2006 8:33 am
by fredt
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.
Re: FCKEditor Resource Browser doesn't work
Posted: Thu Jun 29, 2006 8:59 am
by fredt
OK, the first problem is in modules/FCKeditorX/FCKeditor/fckconfig.js : one must have
Code: Select all
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
(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).
Re: FCKEditor Resource Browser doesn't work
Posted: Thu Jun 29, 2006 11:03 am
by fredt
... then we have to dig into modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php :
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 ;
/////////////////////////////////////
/////////////////////////////////////
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 ?
Re: FCKEditor Resource Browser doesn't work
Posted: Mon Jul 03, 2006 1:26 am
by iNSiPiD
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.
Re: FCKEditor Resource Browser doesn't work
Posted: Mon Jul 03, 2006 8:38 am
by PrettyWolfie
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 ?
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.

Why, oh Why? I don't know... But since it did I won't complain much for I don't want to upset the Php Divinities.
Just in case I better make them an offer of fruit and flowers...

Re: FCKEditor Resource Browser doesn't work
Posted: Mon Jul 03, 2006 9:43 am
by cyberman
PrettyWolfie wrote:
You have no image upload on the Tiny MCE.
Please check current TinyMCE module once again - it has the FCK ressource browser inside

...
Re: FCKEditor Resource Browser doesn't work
Posted: Mon Jul 03, 2006 11:15 am
by PrettyWolfie
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
Posted: Mon Jul 03, 2006 1:22 pm
by Greg
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.
FCKEditor Resource Browser Bug
Posted: Wed Jul 05, 2006 3:34 pm
by PrettyWolfie
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!
Re: FCKEditor Resource Browser doesn't work
Posted: Thu Jul 06, 2006 1:18 am
by iNSiPiD
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.