Welcome Guest Search | Active Topics | Members

"Error Response Received" - timeout on Upload script execution ? Options
paul
Posted: Sunday, March 21, 2004 3:02:00 AM
Rank: Member
Groups: Member

Joined: 12/17/2003
Posts: 13
Points: 0
Hello Andrew and all the other guys from Aurigma !

After testing and testing Image Uploader v1.8.2.7, I found out a strange behaviour :

First of all, I modified the Upload.php script on the server side to fit my needs. It creates
Thumbnails, backup original files and creates some other stuff.

When uploading a lot of files (25 MB per total), the Upload script takes some time
to finish all the tasks. Ater more or less 30 seconds, I got an error message :
"Error Response Received" : http://paul.manesco.free.fr/snapshot_Aurigma.gif

BUT, everything is fine on the server, all the uploaded images are there and all
the tasks from Upload.php script are completed.

It looks like a timeout problem.

I did several tests. Below 25 seconds or so, no error message. After 25 seconds, error message.


Some ideas ?

Thank you and have a nice day.
Paul

Andrew
Posted: Sunday, March 21, 2004 10:07:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
There can be several reasons:


  1. Max upload size limit specified in server settings is exceeded.
  2. Timeout specified in server settings expired.
  3. Timeout specified by expired (unlikely).


So first of all, check upload limitations in php settings. This problem was already discussed here:

View post

Please post a message here if you resolve this problem.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Andrew
Posted: Sunday, March 21, 2004 10:11:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
Oh, I just realized that you was an author of that post. :) So it is likely the problem is not in exceeding of max upload size.

But anyway, try to search for execution timeout settings for scripts in php settings. At least ASP and ASP.NET provide ones.

Sincerely yours,
Andrew Simontsev from Aurigma Team
paul
Posted: Monday, March 22, 2004 1:29:00 AM
Rank: Member
Groups: Member

Joined: 12/17/2003
Posts: 13
Points: 0
Andrew,

problem solved :)

It was unlikely but it was the (30 seconds)
I changed that to (10 minutes) and it works.

Previously, I checked the max upload size and the php timeout settings.
For Linux users, the PHP timetout settings can be changed in :

/etc/php.ini file :
safe_mode = Off
max_execution_time = 600; Maximum execution time of each script, in seconds (default 30)

You can also manually specify the timeout for each script, calling the next procedure inside
the script :
set_time_limit(600); //in seconds

Regards,
Paul
tush
Posted: Wednesday, April 21, 2004 4:13:00 AM
Rank: Member
Groups: Member

Joined: 4/21/2004
Posts: 3
Points: 0
Hello PHP Masters

i am not a big time programmer, was trying to work out some PHP code and got with a problem, have a site which is used to upload heavy files arround 10mb - 20 mb more or less ... most of the time people get time out error i went arround and checked the php.ini that says

Code:
file_uploads = On

register_globals = On

upload_max_filesize = 20M

post_max_size = 20M

max_execution_time = 120

memory_limit = 16M




what should i do to get the time out not appear next time and people able to upload heavy files without any problem, hopefully not effecting rest ofthe site .. which have login and forms ...


please let me know what i need to do

thanks in advances



Tushar

www.tushargarg.com




Andrew
Posted: Friday, April 23, 2004 8:34:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
Did you try to increase Timeout property of Image Uploader (like Paul did)?

Sincerely yours,
Andrew Simontsev from Aurigma Team
tush
Posted: Tuesday, April 27, 2004 12:02:00 AM
Rank: Member
Groups: Member

Joined: 4/21/2004
Posts: 3
Points: 0
hi Andrew
i did the below changes and then tried uploading a 10 mb file but still it didn't happned can u suggest me why ... after some time it said me action canceled

Code:
file_uploads = On

register_globals = On

upload_max_filesize = 80M

post_max_size = 80M

max_execution_time = 6000

memory_limit = 32M



thanks .. Tushar
Andrew
Posted: Tuesday, April 27, 2004 9:09:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
Hi Tushar,

I meant not timeout in PHP settings, but timeout of the Image Uploader control. I.e. you should insert this string:



along with other properties of Image Uploader (in index.htm).

Sincerely yours,
Andrew Simontsev from Aurigma Team
tush
Posted: Tuesday, April 27, 2004 10:40:00 PM
Rank: Member
Groups: Member

Joined: 4/21/2004
Posts: 3
Points: 0
hi where can i find Image Uploader control .. it is not there in the html page..... from where i upload files

:(


... Tushar
Andrew
Posted: Tuesday, April 27, 2004 11:33:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
If you use our PHP samples, index.htm (for example in the BasicSample folder or some other one) should contain the following:

Code:
<object type="application/x-oleobject" classid="clsid:FD18DD5E-B398-452A-B22A-B54636BA9F0D" width="770" height="500"
CodeBase="../ImageUploader2.cab" id="ImageUploader" name="ImageUploader" VIEWASTEXT>

    <param name="Layout" value="TwoPanes">
    <param name="Action" value="Upload.php">

         ...


</object>


This <object> tag includes Image Uploader control to the page. Insert the param I described above among other params.

Please let me know if you still have any problems.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Fedor
Posted: Wednesday, February 13, 2008 11:32:29 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
========================================================
02/14/2008, Fedor
This topic is out of date.

See PHP Samples topic for actual PHP configuration info.
========================================================


Best regards,
Fedor Skvortsov
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.