Author Topic: download uncomplete  (Read 23518 times)

Offline leo

download uncomplete
« on: July 18, 2007, 12:51:22 pm »
I have some users who brought some items on my shop.. but when they used item it's only 20% or halfway finish.. They were unable to finish download from the shop.. When I test it out it works fine.. Anyone can help w/this.. thanks guys

Offline feeble

Re: download uncomplete
« Reply #1 on: July 19, 2007, 02:44:07 pm »
Hey leo,

from the sounds of it your using the filedownload item that comes with SMFShop?

and also the files that your users are trying to download are pretty big?

have you tried using v2 of the downloader thats designed for larger files?
http://www.dansoftaustralia.net/smfshop_wiki/Items:Download_File_v2

Offline leo

Re: download uncomplete
« Reply #2 on: July 19, 2007, 03:56:05 pm »
yes big file but i try tha it gave me the same error.. i duno what to do now.. thanks for helping Feebles.. I'll c u on pm..

-leo

Offline feeble

Re: download uncomplete
« Reply #3 on: July 19, 2007, 07:14:54 pm »
I don't have a solution for you atm, but ill try and work something out.

Offline leo

Re: download uncomplete
« Reply #4 on: July 20, 2007, 10:13:12 am »
okay feeble, once again thanks

Offline Daniel15

Re: download uncomplete
« Reply #5 on: July 21, 2007, 01:03:56 pm »
How big are the files you're using, and what type of files are they?

Offline leo

Re: download uncomplete
« Reply #6 on: July 22, 2007, 08:26:16 am »
about 50-70mb under winrar and winzip..

Offline leo

Re: download uncomplete
« Reply #7 on: July 28, 2007, 09:43:23 am »
Daniel15 plz help.. i really need this..or anyone..

Offline Dark_Zero

Re: download uncomplete
« Reply #8 on: July 31, 2007, 06:59:40 am »
there might be a problem w/ your host. see their restrictions on downloading files from your site.

Offline leo

Re: download uncomplete
« Reply #9 on: August 01, 2007, 04:06:23 pm »
I can download fine.. but just my users cant...

SiliconViper

  • Guest
Re: download uncomplete
« Reply #10 on: September 06, 2007, 02:26:20 pm »
  • Does this happen to all users, or just some?
  • Do the downloads always stall at the same point, or does it vary?
  • Does the problem occur with all downloads, or just ones over a certain size?
« Last Edit: September 06, 2007, 02:28:29 pm by SiliconViper »

Offline leo

Re: download uncomplete
« Reply #11 on: September 08, 2007, 10:19:39 am »
I reconvert to a smaller pack like around 40 to 30mb and it's working fine but only in firefox..

  • Does this happen to all users, or just some?
  • Do the downloads always stall at the same point, or does it vary?
  • Does the problem occur with all downloads, or just ones over a certain size?

it happen to all the users.. but it's okay for me..
it stall in diff points..
it's all sized

since i de size the quailty of the mp3 package under winzip/winrar it works but only under firefox..

Offline Daniel15

Re: download uncomplete
« Reply #12 on: September 08, 2007, 11:37:43 am »
It sounds like PHP may be hitting its time limit, which would cause the download to stop suddenly. This would probably happen with larger files, especially on slower Internet connections. What the timeout is set to depends on your host, although it's commenly 90 seconds.
We can try to fix this by setting an infinite time limit. At the top of the download item code, please put this:
Code: [Select]
set_time_limit(0);
And see if that fixes it. :)

Offline leo

Re: download uncomplete
« Reply #13 on: September 11, 2007, 01:24:08 pm »
Quote
function readfile_chunked($filename,$retbytes=true) {
   set_time_limit(0);
   $chunksize = 1*(1024*1024); // how many bytes per chunk
   $buffer = '';
   $cnt =0;

like that right?

Offline Daniel15

Re: download uncomplete
« Reply #14 on: September 21, 2007, 10:44:43 am »
At the very top of the file, I meant. Right underneath the <?php
:)