Log in or register to post comments
Last post
chameleon's picture
Joined: 09/02/2008
Posts: 14
CKFFinder integration with FCKEditor - Extremely slow
Hi

I have just bought the corporate vresion of CKFinder to use with FCKEcitor 2.6.3.

As far as I can see I have configured all OK but the actual browser window takes over a minute to appear (when I click Browse Server) and then each image takes over a minute to be displayed.

The base url is /UserFiles/ and I have edited the default folder names to those as in FCK, Image, Flash, File

Within FCk I am using my own custom config file for settings and this is what I have entered.

Please advise ASAP as this is on a live site.

Thanks, James

/*
* Custom html editor for this site
*/
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
FCKConfig.FontFormats = 'h1;h2' ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;


FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = '/ckfinder/ckfinder.html' ;
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%

FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = '/ckfinder/ckfinder.html?type=Images' ;
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;

FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = '/ckfinder/ckfinder.html?type=Flash' ;
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;

FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = '/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Files' ;
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one

FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = '/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Images' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one

FCKConfig.FlashUpload = true ;
FCKConfig.FlashUploadURL = '/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
alfonsoml's picture
Joined: 31/12/2006
Posts: 3750
Re: CKFFinder integration with FCKEditor - Extremely slow
Can you test the standalone samples so we can get FCKeditor out and just focus on CKFinder?
How many images do you have?
and how big are they?
Are the thumbnails created properly (that's it: only once and really a small file) ?

This looks like a thread for the CKFinder forum, not a general issue with FCKeditor, so it should be moved there.
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
Hi

The sample files run just as slow, please see

http://jetwash.chameleon-web.co.uk/ckfi ... editor.asp

Thanks, James
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
Please can I have an update on this issue, I have paid in advance for the software and it isnt working correctly. Thanks, James
alfonsoml's picture
Joined: 31/12/2006
Posts: 3750
Re: CKFFinder integration with FCKEditor - Extremely slow
I'm trying to figure out why it could have such incredible slow reaction.

Can you try to disable the thumbnails?
in the config.asp file change
   Images.Add "component", "Auto"

with
   Images.Add "component", "None"


That can help to rule out some part of the code, but I think that in order to really find the problem I would need to be able to do changes in those files, so please, contact Wiktor so we can arrange a way to do the tests.
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
Ok Ive done that and yes now it is fast, hope that hels us, please advise, james
alfonsoml's picture
Joined: 31/12/2006
Posts: 3750
Re: CKFFinder integration with FCKEditor - Extremely slow
At least it seems that we can narrow the code that it's affecting.
Now set this:
Images.Add "component", "Asp.Net"

And try again.

If it works, then try to upload an image, I guess that it should go back to a very slow creation of the new thumbnail, but at least it's quite better and we know the code that we should test.
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
ok will try that but i'm not using asp.net ??? Should I try that anywy? Thanks, James
alfonsoml's picture
Joined: 31/12/2006
Posts: 3750
Re: CKFFinder integration with FCKEditor - Extremely slow
In order to generate the thumbnails the Asp version needs some code to create them. If you don't have one of the ActiveX components bought and installed in your server, you should be using automatically the asp.net code that it's included in CKFinder for Asp, and by stating that you want to use that version we avoid the check every time that the code related to images is run.

On the other side, if you have one of the components and you want to use it, then change the "Asp.Net" string for the identifier for the component that it's installed, it will also help by skipping the automatic detection. I just was trying to guess the element that it's generating the thumbnails in your installation.
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
Hi

Ok I changed to asp.net and it seems to work ok now, its fast and I can see the thumbnails, please can you take a look and see that everything else looks ok, thanks, James
chameleon's picture
Joined: 09/02/2008
Posts: 14
Re: CKFFinder integration with FCKEditor - Extremely slow
PS I have aspjpeg from persits installed on the server.....
kellygraingerdotcom's picture
Joined: 27/04/2012
Posts: 1
Re: CKFFinder integration with FCKEditor - Extremely slow
I just finished a ckfinder + ckeditor integration for http://www.creologic.ca and had the same issue. The ckfinder took forever to load and was extremely slow. As soon as I changed the line of code below the issue was resolved:

Images.Add "component", "Auto"

Changed to:

Images.Add "component", "Persits.Jpeg"

By default, "Auto" is used. We have Persits components on the server and ckfinder supports Persits Jpeg, so I changed it up and ckfinder now loads incredibly fast.

Hope this helps :)

Kelly.
alfonsoml's picture
Joined: 31/12/2006
Posts: 3750
Re: CKFFinder integration with FCKEditor - Extremely slow
If you leave the component as auto, the script tries to find continuously which one can used, so the proper options are shown. If you specify which one is the good one then it can skip those tests and use it only when required.
That's why one of the suggestions of the setup wizard is to replace auto with the detected value