Log in or register to post comments
Last post
1 2 > >>
CKFinder popup issue
When i click a link first time ckFinder is getting open in the popup. but after closing the popup if i click the link again then second time it is opening popup but it is just empty popup(don't see ckFinder in it.). This behavior in happening in the IE and Chrome browsers it is working fine in the Firefox though.

Here is my the sample code to open ckFinder in the popup.
$('a.link').click(function(e) {
var finder = new CKFinder();
finder.popup();
return false;
});


Please advise.

Thanks,
Amit
Re: CKFinder popup issue
Which CKFinder version do you use? If it's not the latest one, can you upgrade to CKFinder 2.1 and see if you can reproduce this issue?

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

Re: CKFinder popup issue
This is happening in the CKFinder 2.1 java version too.
Re: CKFinder popup issue
I have checked your code and it seems to work. CKFinder was always opened in popup.

You said that it is happening in Chrome and IE. Do you see any errors messages in console tabs of those browsers development tools?
Re: CKFinder popup issue
Hi, this is also happening to me, whats the solution to this problem? I'm using ckfinder 2.0 and chrome 14. I don't get any errors in the console. The first time I click on the button it shows the ckfinder but on the succeeding click, it just shows a blank popup.

I copied the code below from the sample popup.html of ckfinder and the button calls the browseServer().
Any help would be appreciated. Thanks.
function BrowseServer()
{
var finder = new CKFinder();
finder.basePath = '../../'; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = SetFileField;
finder.popup();
}

function SetFileField( fileUrl )
{
document.getElementById( 'xFilePath' ).value = fileUrl;
}
Re: CKFinder popup issue
I'm getting a javascript error on the popup window.

Uncaught TypeError: Cannot call method 'bD' of undefined
Re: CKFinder popup issue
@amitpatel - as I have written before. I have tried your code but didn't get any errors. My question is are you getting any errors in browser logs? Anything I could grab on to?

@icesnake - First, please try downloading and using the latest version of CKFinder (http://ckfinder.com/download). Second - you say that you have copied code from popup.html site. This code works well there, which shows that you have made something wrong when writing your code.
Error - Uncaught TypeError: Cannot call method 'bD' of undefined - may indicate that you haven't perhaps declared all scripts on your page or perhaps mixed up the paths. Could I ask you to double-check it?
Re: CKFinder popup issue
Hi, may I ask what are the other js scripts I need to declare besides the ckfinder.js? Thanks.

Like amitpatel, I'm having the issue on chrome 14 and IE 8 but working fine with firefox. Haven't tried using the ckfinder 2.1 though. Will try it and post the result. Thanks.
Re: CKFinder popup issue
I actually meant ckfinder.js - sorry :)

@icesnake - could you tell me how is CKEditor used on your page? Perhaps it is loaded with JQuery/Ajax or something like that? The more information you provide the better.
Perhaps you could provide reduced code that is causing this error?
Re: CKFinder popup issue
I don't have ckeditor (just need the ckfinder). It seems that the popup.html in the samples folder has also this issue (shows only on the first popup). The changes on my config.ascx are: (just followed the quick start documentation)
public override bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
// return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs on your system.

return true;
}
....
LicenseName = "XXXXXXXXXXXXXXXXXX";
LicenseKey = "XXXX-XXXX-XXXX-XXXX";
// The base URL used to reach files in CKFinder through the browser.
//BaseUrl = "/ckfinder/userfiles/";
BaseUrl = "/engine/";

// The phisical directory in the server where the file will end up. If
// blank, CKFinder attempts to resolve BaseUrl.
BaseDir = "";
....
type = ResourceType.Add("PSMC Organization Logos");
type.Url = BaseUrl + "imgs/";
type.Dir = BaseDir == "" ? "" : BaseDir + "imgs/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
type.DeniedExtensions = new string[] { };
-------------------------------------------

What are the other configuration that I need to do to make the samples work? I'm having a hard time following the documentation, is there a faq section besides the forums/discussions?
Re: CKFinder popup issue
I also added the ckfinder.dll in the bin of my project. It seems all my configurations are correct since I can upload and select files during the first popup or in using mozilla firefox. Just have to figure out why there's nothing showing during the succeeding popup events? Thanks.
Re: CKFinder popup issue
No, I don't see any error in the log or error console.

-Amit
Re: CKFinder popup issue
amit, does the popup.html from _samples folder work in your machine?
Re: CKFinder popup issue
@icesnake, amitpatel - any chance for a PM with a link where this issue could be observed?
Alternatively, could you attach a simplified HTML sample where this issue can be reproduced?

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder popup issue
@icesnake - the popup.html from _samples folder works in my machine.
The popup issue is only happening in my project.
Re: CKFinder popup issue
Did you try accessing the popup.html in a client machine and not locally in the server? is it working? and you don't have an error in the console of the popup window (not the console of the main window)?
Re: CKFinder popup issue
I solve my problem by downloading CKFinder 2.1 and copying my config.ascx and ckfinder.js from the older version.
Re: CKFinder popup issue
did anyone find a solution for this ?

im having this same issue also in Version 2.1. also in IE 8 / Chrome. Ckfinder opens the first time but the second time only a grey screen.

im following the js example from the demo (my site is also using drupal) but with a link, not a form button

<a href="javascript:void(0)" onclick="var finder = new CKFinder();
finder.basePath = Drupal.settings.basePath + Drupal.settings.ckfinderPath + '/';
finder.popup();return false;">('browse for file')</a>

i noticed in the Chrome Dev tools an error

/sites/all/modules/ckeditor/ckfinder/ckfinder.js?ly9ici:6
Uncaught TypeError: Cannot read property 'plugins' of undefined
Re: CKFinder popup issue
I'm same error on chrome 14 and IE 8 but working fine with firefox. Ckfinder opens the first time but the second time only a grey screen. I using Ckfinder 2.1.1 and asp.net 3.5.
Re: CKFinder popup issue
Hello,

I am having the same problem. Popup version works fine with Firefox but fails to load the popup in Chrome. You can test it yourself here:

http://www.autorally.ro/ckfinder/_samples/popup.html

You will notice the popup it opens and very fast is minimize in the windows applications bar and you cannot access it. Still, if you are using Windows 7 you can put the mouse over the Chrome icon in the application bar, let the thumbs opens and then on the chrome thumbnail with the popup right click and choose "Show as tab...". This will open the ckfinder in a new tab and seems to be ok, even if the URL will show you "about:blank" text. I don't know if you actually understood anything, you better try it yourself using the link above.

Thank you.
Re: CKFinder popup issue
Thank you for reporting it. Indeed there is a problem. Marking as high priority issue.

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder popup issue
Thanks wiktor! Please, reply to this post when you have a patch or something. I have subscribed and I will get notified by email when it's fixed :) You guys are doing an extraordinary job!
Re: CKFinder popup issue
Ops, I wrote too fast. I was actually checking this issue in Chrome 18.0.1025.33 beta-m. We have filled a bug report for Chrome (Using JS's resizeTo hides a popup, feel free to vote for it).

We have tried to reproduce issues reported for IE8 and everything worked perfectly. Can anyone provide more details (e.g. send me a PM with a link to a website where it can be reproduced)?

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder popup issue
I am also having this issue, any update?
Re: CKFinder popup issue
Hi there

We experience the same problem now, the problem is also now on your demo http://ckeditor.com/demo, try doubleclick the demo picture in the write area and click browse. I am using Chrome version 18.0.1025.142 m

Thanks

Reino
Re: CKFinder popup issue
CKFinder 2.2.1 is now available: viewtopic.php?f=8&t=25156

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

Re: CKFinder popup issue
As Anna wrote we have just released CKFinder 2.2.1 where the popup issue is gone in Chrome 18, when CKFinder.popup() is used to launch CKFinder.

Note: in CKEditor the "Browse Server" button will not work even with CKFinder 2.2.1, because CKEditor contains the same piece of code that fails in Chrome 18. We will release soon CKEditor 3.6.3 where the issue will be gone (should happen next week).

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder popup issue
Great, thanks for the update!
Re: CKFinder popup issue
Thanks a lot for quick update, good service :)
Re: CKFinder popup issue
Would someone be filling to post the fixed .js file somewhere I can download it? I'm not able to get the hang of the svn thing at all :cry: That's assuming it's just the one file that's been changed?
Re: CKFinder popup issue
If you can't wait till 3.6.3, use the nightly build. At the moment of writing this message, there are no regressions in it.

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

1 2 > >>