Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

IO Error when I upload files
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=3439
Page 1 of 2

Author:  Kopczyk [ 24. Oct 2012, 00:53 ]
Post subject:  IO Error when I upload files

Hi.
Why I get IO error when I uplad files? This is not permissions problem because I can create folders. PHP variables (memory limit, post size, execution time, file upload size) are ok.
The problem appered afer I changed server hosting. Previously worked fine.

I use:
Joomla 1.5
JFU version: 2.16

Please help.

K.

Author:  TinyWebGallery [ 24. Oct 2012, 10:37 ]
Post subject:  Re: IO Error when I upload files

Have you read the FAQ 1?

http://www.tinywebgallery.com/en/tfu/tfu_faq_1.php

Best, Michael

Author:  Kopczyk [ 5. Nov 2012, 01:48 ]
Post subject:  Re: IO Error when I upload files

I've read the FAQ1. I have no idea whats is wrong. I can upload file by standard upload form, by media component of joomla administration site. In JFU still I get io error message. Sometimes I have flash crash. Logs (JFU and system) are empty. I upgreaded JFU to 2.17 version too. I disabled mod_rewrite in Apache. The same error is on Chrome, Opera, Firefox web browser (i didn't checked on IE).
Is there are any processes before file is upload to server?

Thanks,
K.

Author:  Kopczyk [ 5. Nov 2012, 01:52 ]
Post subject:  Re: IO Error when I upload files

mistake...not "mod_rewrite" - I've disabled mod_security

Author:  TinyWebGallery [ 5. Nov 2012, 01:57 ]
Post subject:  Re: IO Error when I upload files

Have you enabled the upload debug?

Best,
Michael

Author:  Kopczyk [ 5. Nov 2012, 21:42 ]
Post subject:  Re: IO Error when I upload files

Yes. I have enabled upload debug but is empty. Logs are working because when I have enabled enhanced debug i've got this:

Request: /services/p86/administrator/components/com_jfuploader/tfu/tfu_file.php?action=dir&changedir=true&dir=&index=1&ts=1352144227833&tfu_rn=1355742220422469750512148652843&tfu_is_flash_10=1&TFUSESSID=g3up8nbvuem1vbi4t3tb8s3db7
Stack: tfu_file.php:52:tfu_debug:Action:dir; Directory: ./../../../../tmp
Current memory usage: 2601 KB

...every time I change remote directory.

Regards,
Tomasz

Author:  TinyWebGallery [ 5. Nov 2012, 21:56 ]
Post subject:  Re: IO Error when I upload files

o.k. - Then the tfu_upload.php is not even called.

You can first check on the access.log of the server if the request comes to the server at all or if it is blocked before.
Than you can look in the server error file where you should normally than find a more detailed reason.

Does this happen with all files? All sizes?

Best,
Michael

Author:  Kopczyk [ 5. Nov 2012, 23:59 ]
Post subject:  Re: IO Error when I upload files

Yes. All files, all sizes.

Author:  TinyWebGallery [ 6. Nov 2012, 00:14 ]
Post subject:  Re: IO Error when I upload files

have you checked the logs I wrote?

Best, Michael

Author:  Kopczyk [ 6. Nov 2012, 00:45 ]
Post subject:  Re: IO Error when I upload files

Yes. I have got this when I use JFU and try to upload file:

- - [06/Nov/2012:01:39:02 +0300] "GET /services/p86/administrator/index.php?option=com_jfuploader&act=upload HTTP/1.1" 200 5893 "https://www.domainname.com/services/p86/administrator/index.php?option=com_jfuploader&act=upload" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:02 +0300] "GET /services/p86/administrator/components/com_jfuploader/tfu/tfu_217.swf?joomla=true&lang=pl&session_id=45b3ni9ptr44ctooquchq2fne4&base=components/com_jfuploader/tfu&relative_dir=/services/p86/administrator/&show_size=false& HTTP/1.1" 304 293 "https://www.domainname.com/services/p86/administrator/index.php?option=com_jfuploader&act=upload" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:03 +0300] "POST /services/p86/administrator/components/com_jfuploader/tfu/tfu_login.php?ts=1352155142607&TFUSESSID=45b3ni9ptr44ctooquchq2fne4 HTTP/1.1" 200 3508 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:03 +0300] "POST /services/p86/administrator/components/com_jfuploader/tfu/tfu_file.php?action=dir&dir=&ts=1352155143123&tfu_rn=1352788849514219118162152740987&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=45b3ni9ptr44ctooquchq2fne4 HTTP/1.1" 200 1284 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:11 +0300] "POST /services/p86/administrator/components/com_jfuploader/tfu/tfu_file.php?action=dir&changedir=true&dir=&index=14&ts=1352155151095&tfu_rn=1352788849514219118162152740987&tfu_is_flash_10=1&TFUSESSID=45b3ni9ptr44ctooquchq2fne4 HTTP/1.1" 200 948 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:13 +0300] "POST /services/p86/administrator/components/com_jfuploader/tfu/tfu_file.php?action=dir&changedir=true&dir=&index=1&ts=1352155152863&tfu_rn=1352788849514219118162152740987&tfu_is_flash_10=1&TFUSESSID=45b3ni9ptr44ctooquchq2fne4 HTTP/1.1" 200 948 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
- - [06/Nov/2012:01:39:17 +0300] "GET /services/p86/administrator/index.php HTTP/1.1" 200 6500 "https://www.domainname.com/services/p86/administrator/index.php?option=com_jfuploader&act=upload" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"



...any information about tfu_upload.php
In error.log I don't have any information about this operations.

Regards,
Tomasz

Author:  TinyWebGallery [ 6. Nov 2012, 10:46 ]
Post subject:  Re: IO Error when I upload files

This is not good. This means that the call to the tfu_upload.php is blocked before somewhere.

have you tried to use the .htaccess to disable mod_security?

Unfortunately the upload request is not visible in any browser extension like firebug, http headers so the log files on the server are the only place to look at.

Are you maybe using https with a self signed certificate?

I also found a very interesting article here:
http://www.catalysts.cc/wissenswertes/f ... c-clients/

"after further investigation of the network traffic we finally found the problem! It turned out to indeed be a Mac player bug that only arises with certain webserver configurations. More specifically, our webserver had some redirection rules in place that aimed to correct broken links, enforce https, and such. The problematic rule was the one that appended a slash to all requests that addressed a directory but ommited the trailing slash, and the upload request turned out to be such a request. While the Windows version of the Flash player understood that redirect and re-uploaded the file to the new location the Mac player just dropped the connection and bailed out with that ominous i/o error."

so do you have any redirection rules?

And can you please also test on my demo if the upload fails for you?
http://www.tinywebgallery.com/en/tfu/web_demo1.php

Best,
Michael

Author:  Kopczyk [ 6. Nov 2012, 17:28 ]
Post subject:  Re: IO Error when I upload files

I found problem.
There is a problem with SSL. When I call page via SSL there is io: error. No SSL, no error, but I don't use self signed certificate.
I can't use JFU with SSL page?

Regards,
Tomasz

Author:  TinyWebGallery [ 6. Nov 2012, 18:34 ]
Post subject:  Re: IO Error when I upload files

Do you have a valid certificate? because without it does not work.

Best,
Michael

Author:  Kopczyk [ 6. Nov 2012, 21:16 ]
Post subject:  Re: IO Error when I upload files

What do You mean "valid certificate"? I have verified certificate by GeoTrust Inc. for this domain.

Author:  TinyWebGallery [ 7. Nov 2012, 10:26 ]
Post subject:  Re: IO Error when I upload files

You need a certificate your browser does accept without any feedback from you.

But if you don't have one upload with Firefox under Windows should fail as well.

I can try to add the / at the end like they wrote in this forum.
But you would have to test different solutions for me then.

Best, Michael

Page 1 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/