Hi,
With Firefox 6.0.2 and Chrome 14.0.835.186, on windows 7 64bits, I've got an IO Error #2038 when I upload a file.
It works fine with Internet Explorer 8.
CKFinder is running on a Debian 6, with PHP 5.3 and Apache 2 on SSL.
Someone has already found this bug ?
It seems to be very mysterous...
When I use Fiddler with Firefox, to debug the HTTPS request, upload works fine.
Adobe is so amazing...
Wed, 09/28/2011 - 17:12
#1
Re: Error #2038 when uploading
I've got the exact same problem. I've increased upload_max_filesize and post_max_size. My files are actually uploading, but I get this error at the end of the upload:
Processing...HTTP Error: status code 500. I/O Error: Error #2038.
Also. No thumbnail is created and the file does not show up in the display of the folder contents until I re-launch "Browse Server."
Re: Error #2038 when uploading
can you send me some screenshot with this bug ?
Please check in Firebug console (Firefox add-on ) if there are any errors. Please also check in Firebug Net tab if all request are correct.
This problem occurs with all images/files or only with some kind of it ?
Re: Error #2038 when uploading
Attachments:
Re: Error #2038 when uploading
2038 - looks like a flash error and not CKFinder error. Could you try to remove flash upload plugin - http://docs.cksource.com/ckfinder_2.x_a ... ovePlugins - and see if you still get this error? If not than maybe one of those links will help depending on what you have in your application:
http://www.judahfrangipane.com/blog/200 ... -io-error/
http://www.uploadify.com/forums/discuss ... or-2038/p1
http://board.flashkit.com/board/showthread.php?t=742315
http://www.macewan.org/2008/08/21/error ... -io-error/
Re: Error #2038 when uploading
Re: Error #2038 when uploading
I have only asked to switch of flash plugin to check if this is the source of the problem. Now that you have confirmed it would be nice to find a solution.
The problem is that none of our colleagues has this bug so we are unable to reproduce it and give you any advice. We can only suspect that this has something to do with your server/application configuration.
Re: Error #2038 when uploading
I've got two Server configuration:
1. w2k3 with asp.net 4.0
2. w2k8 with asp.net 3.5
It is not working on both of this servers. Strange enough with IE8 it is no problem, with Firefox 7.01 and Safari 5.0.5 its not working.
The exact error description i get is:
Processing...HTTP Error: status code 302. I/O Error: Error #2038.
Which means something like "temporary redirect". Maybe there is a file missing?
Re: Error #2038 when uploading
Use the PHP session with session_start() and CheckAuthentication() which check a session var to return privilege.
I changed the config paths (I use an absolute URL as $baseUrl and not the default upload directory). After that, some chmod 775 on the upload dir.
Re: Error #2038 when uploading
Re: Error #2038 when uploading
1. adminaspx/ckfinder/config.aspx
public override bool CheckAuthentication()
{ return (Request.IsAuthenticated);
}
2. Web.config
<location path="adminASPX">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
<customErrors mode="Off"/>
</system.web>
</location>
«Request.IsAuthenticated» does'nt give back true in case of uploading wit Firefox, otherwise it is giving back true.
Wrong settings on the server or mistake in the CKfinder code? Keep looking...
Re: Error #2038 when uploading
Maybe your session cookie is lost ? Can you check this ? There was always problem with Flash and Cookies...
Re: Error #2038 when uploading
Re: Error #2038 when uploading
On my server everything was working fine
Some time ago file upload ended to work
I was using version 2.0.2 of ckfinder, I upgraded yesterday to the last version, same problem
safe_mode is on on this server (I don't know if it was like this before, when everything worked)
I am using ckfinder as Drupal module
I can send the result of phpinfo() if you need
I tested on Firefox 5.0 (Linux), Opera (Linux) and Internet Explorer 8 (Windows XP) with and without flash uploader.
Thanks
Re: Error #2038 when uploading
EDIT:
@florinn Please send me your phpinfo() results.
Re: Error #2038 when uploading
In my case, using suhosin and secure http only cookies I had to go by useragent and write access per useragent.
The useragent "Shockwave Flash" gets its very own set of filters. Where as the non-flash useragent gets full session filters.
Flash in my case, was incapable of recognizing my session data causing #2038 errors. May be different in your case...
Re: Error #2038 when uploading
However it it solved now, the hosting company helped me:
The php function flock() was desactivated
They activated it and now the upload is working (with flash uploader)
Re: Error #2038 when uploading
Note: I am using java version of ckFinder 2.1.
-Amit
Re: Error #2038 when uploading
this error is related with flash uploader and server configuration. It can be related with some settings of server. Please read and try what others do. To this moment I can't reproduce this issue.
Re: Error #2038 when uploading
In .NET land I fixed this 302 error by adding this into the root of my ckfinder folder:
[file name web.config]
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>
And the flash uploader worked absolutely fine. Basically you are getting a 302 redirect because the user is logged in, but the flash has it's own "context" as it is calling URLs outside of the logged in user. How to programmatically get round that so there isn't a gaping hole? Not sure. Am tempted to remove the .NET built in usermanagement stuff as it is bloated and convoluted for my needs.
Oh I also added HttpContext.Current.Request.UserAgent == "Shockwave Flash" to the CheckAuthentication().
Re: Error #2038 when uploading
@colinwiseman
The web.config as a start is agood idea, was trying something similair in the web.config in the root of the application. But your workaround is nicer.
What I didn't get is where dit you exactly ad the
«HttpContext.Current.Request.UserAgent == "Shockwave Flash" to the CheckAuthentication()»?
@mkesicki
With .net i don't think it is a problem of cookies because i don't check them my function looks like this:
public override bool CheckAuthentication()
{
return (Request.IsAuthenticated);
}
But maybe that works with sessions in the background as well...
Re: Error #2038 when uploading
IE only works because it disables the Flash plug ins, which as someone points out, means that you can't upload multiple files. But it didn't disable anyway in either Chrome or Firefox.
All browsers on autoupdate so they should be current versions
Hope you can help and make this work!
PHP 5, Drupal 7, CKeditor whatever is the current version, CKfinder also the current version
Attachments:
Re: Error #2038 when uploading
if (Request.UserAgent == "Shockwave Flash")
{
FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(string.Concat(Request.Form.GetValues("ckfcookie_.AuthCookie")));
return !authTicket.Expired;
}
else
{
return Request.IsAuthenticated;
}
to the CheckAuthentication() method in config.ascx. If the form can decrypt the AuthCookie it must be the authenticated request and not an imposter. Anyone see any problems with this?
Re: Error #2038 when uploading
On further testing it seems you sometimes have to get the AuthCode from here instead:
Request.Params.GetValues(".AuthCookie");
Re: Error #2038 when uploading
How about php,
How can I fix it?
Pleaseeeeeeeeeeee
Re: Error #2038 when uploading
Request.UserAgent == ("Adobe Flash Player 10")
Re: Error #2038 when uploading
Hi all,
I also came across this bug on v2.1 for PHP.
It occurs also if you use a self signed certificate for your https session. Flash doesn't like self signed or invalid certificates.
Just add this to your config.js to disable flash upload, and everything should be fine:
Re: Error #2038 when uploading
I used my website hosting control panel to change the file permissions to allow deletion and then it was OK.
if you want to see if you have the same problem try the following steps.....
In the CKEditor window click on the 'Image' icon then select 'Browse Server'. Click on one of the images using the right-mouse button and select delete. If it bring up an error message saying there's a file permission problem then there's your answer!
n.b. I am using the ASP versions of CKEditor & CKFinder and have not disabled Flash.
Re: Error #2038 when uploading
So, is this a known issue with the Flash uploader? In particular that it doesn't seem to work in Safari or Chrome? I am on linux Debian with an Apache httpd server. I can workaround this by using the "config.removePlugins = 'flashupload';" workaround, but I don't know if there is something else I should be trying to do?
Re: Error #2038 when uploading
Hey folks! Think I solved this without realising. I posted a bit back for .NET users to add in a web.config in to the CKFinder folder so that the Flash uploader would be allowed through FormsAuthentication. Turns out to be a slightly different issue and a nicer solution.
Basically as it is a Flash upload it creates it's own environment of cookies, and all browsers except IE (annoyingly) don't inform the Flash of security cookies, so Flash would get blocked going through any authentication walls etc etc.
So the solution is this:
http://docs.cksource.com/CKFinder_2.x/D ... leshooting
(and sorry it's for .NET users, but this might help others understand and find a solution). It basically says to add a HTTP module declaration in your web.config that passes the cookie information to the Flash uploader i.e. if you have been verified, then the Flash uploader will also be verified.
The 302 error you get before this is a security thing - as it's been redirect to a form to be logged in. So with this, no redirect and everything is hunky dory!
Hopefully this works for everyone
Re: Error #2038 when uploading
Perhaps it will help someone else to.