Hi,
I have tried to integrate ckfinder into ckeditor. And it works almost.
The only problem I have is that I get an empty error when I press 'Upload selected File'.
So, I get an alert box, with this content:
Information
Error:
But the weird thing is that the upload succeeds properly. The file is uploaded. But I have to hit the refresh button on the page to see it. So that's why I think it might be a bug.
So I have tried it out in other browsers, I had some unrelated problems with internet explorer, so I couldn't test it there. But as far as I know, the error only occurs in Firefox 4 beta 12. I tried Chrome and Safari, but the didn't show an error.
So could someone confirm if this error only occurs in Firefox 4 beta (12)? Or if it's a problem at my end?
I will try to do some more tests on other browsers as well. (Will try to test it in IE)
I hope that someone can help me out.. because it's quite annoying.
Re: Empty error when uploading image (possible bug?)
i also got these error messages in ff 4.0b12 with ckfinder 2.02, even if the FileUpload was ok and fine.
What version did you use and how did you call the OnUploadCompleted function?
I am told to use it this way:
I think it's a bug. (maby associated with ff?)
I will test with IE ...
Re: Empty error when uploading image (possible bug?)
folder content (GetFiles) after FileUpload (successfully) is done is also missing.
Re: Empty error when uploading image (possible bug?)
tested with FF3.6.13 : same behaviour as FF4.0b12, empty error-message and no auto refresh after successful fileupload.
It seems to me that something is broken in ckfinder's FileUpload/OnUploadCompleted-callback-function.
Maby someone from support can have a look at this?
Re: Empty error when uploading image (possible bug?)
@Milagro - as we are already discussing via PM about your custom server connector, I have send you a PM with more instructions.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Empty error when uploading image (possible bug?)
it's an issue of linebreaks in the response.
Please remove all of them and the OnUploadCompleted-callback should work fine.
Even in ff4.0b12 and other browser/versions i mentioned
@wiktor: Many Thanks for you help!
Re: Empty error when uploading image (possible bug?)
Where should I remove the whitespace? I am not calling the OnUploadCompleted method myself. I also haven't modified anything in the code of ckfinder.
Could you tell me in which file I should remove the whitespace? Is it in the files of Ckfinder? Because I didn't modify anything in there (except for the configuration file)
Thanks..
I know that. I recently upgraded to Firefox 4 RC 1, and the error still occurs. Also, the error is shown in the Ckfinder UI, in an html alert, it's not shown in the browser, it's shown in the ckfinder application. That's why I reported it over here
Maybe you can report this bug to Mozilla? Because I do not have enough knowledge to find out what's causing this bug.
But I hope that Milagro can tell me where to remove whitespace in order to fix it.
Re: Empty error when uploading image (possible bug?)
I solved that issue via removing the linebreaks in the OnUploadComplete response.
What server-side-language did you use?
I would first suggest updating ckeditor and ckfinder to the latest version if you already don't have.
If you use php try changing FileUpload.php in ckfinders /core/connector/php/php<x>/ErrorHandler.
Try puting the OnUploadComplete(...) output with the start- and end-script-tags in a single echo command.
Re: Empty error when uploading image (possible bug?)
I have just checked a fresh copy of CKFinder for PHP 2.0.2 on Firefox 4 RC1 and the issue seems to be gone.
I have confirmed it as well on the demo page (uploads are possible in the "Public Folder").
Could you confirm that the issue is gone on your side?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
intégration ckfinder dans fckeditor
Re: Empty error when uploading image (possible bug?)
I have uploaded an image to the demo page, and i didn't get the error.
But the error still occurs at my application. I am using firefox 4.0 RC1.
I will try to update Ckfinder. I'm not sure which version I use, because I can't find it in the code. The changelog shows ### Version 2.0.1 as newest, so i guess that's the version i'm using. So I will try and update to 2.0.2 and will post an update later.
Thanks for you help so far..
Re: Empty error when uploading image (possible bug?)
Do you have any other ideas?
Re: Empty error when uploading image (possible bug?)
Or maybe just an idea as to where this error is generated, so I can look into the code myself.
I'm out of options ..
Thanks anyway..
Re: Empty error when uploading image (possible bug?)
Please make sure to update Firefox to the stable release (Firefox 4.0 final).
If CKFinder works on our demo page, please try the following: download CKFinder 2.0.2 from our page and unpack it somewhere on your server (do not integrate it with your application yet). Enable it and launch one of the samples distributed wit CKFinder (e.g. the standalone sample). Let me know if you can upload images there.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Empty error when uploading image (possible bug?)
Hi,
Here:
http://docs.cksource.com/CKFinder_2.x/Developers_Guide/PHP/CKEditor_Integration
is described how to integrate CKEditor with CKFinder. Another simply way to do this is check ckeditor.html sample in "_samples" folder of CKFinder. I think it is the fastest way to start.