If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Downloadable files download with 0 bytes

Downloadable files download with 0 bytes

Locked

Started by kopperhead on 5 Jul 2007, 1:30 AM · Views: 13,863

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Jul 2007, 1:30 AM
#1
kopperhead avatar

kopperhead

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

Downloadable files download with 0 bytes

I bought the manual and have read it cover to cover. It was a big help on setting up the downloadable files (attributes and options). Everything seems to work until downloading any file I have available for download. They all download with 0 bytes.

I created the files using WinZip. I tried both regular .zip files and self-extracting .exe files. I uploaded to server via WS_FTPpro into the directory /downloads. I set up all attributes and do have a green dot indicating the file is valid. I checked both the files on server and compared sizes wtih the uploaded sizes, and they all match When the download is presented to the customer, it has the correct size listed in the download list, but when it is download, it is ZERO.

I am no expert at any of this, and would not even have attempted setting this up if there had not been a book available, and at this point I don't know whether I am doing something wrong with WinZip, or if I should contact my host, or if I have something incorrect in ZenCart.

Also, I have Redirect Downloads set to False (I tried True after reading another thread here, but that only caused a 404).

My site is www.DragonflyDigitals.com/shop, and I do have some freebie downloads available. (Not a plug, I really need some help.)

thanks in advance
kopperhead

5 Jul 2007, 1:35 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Downloadable files download with 0 bytes

How large are your files? Try a tiny file, does it work? If so this could be a limit imposed by your hosting site and you need to speak to them ...

unix or windows server? windows servers cannot use Redirect ON, even though this is a much safer method of managing downloads ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Jul 2007, 1:46 AM
#3
kopperhead avatar

kopperhead

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

I have files ranging from 4.88MB to approximately 35MB. The small files do this also. At first I thought file size might be a problem, so I re-zipped some larger files into smaller files, but same thing, downloaded at 0 bytes, empty .zips.

It is a Windows server. Apache. I am going to give them a call right now and see if there is something I am doing incorrectly with the files.

I only tried the redirect ON from sheer desparation; the manual explains that part very nicely--I LOVE THE MANUAL.

Thanks so much, and if you think of anything else, I'd love to hear!
kopperhead

5 Jul 2007, 3:09 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Downloadable files download with 0 bytes

To rule out the WinZip issue (which is not likely the problem), try putting up a PDF or one of the test.zip files that came with Zen Cart, and attach that to a test product ...just to see.

Also, did you try choosing Download By Streaming = True ?

What browser are you using?
What happens if you try a different browser?

Did you try clearing your browser's cache? If it accidentally downloaded a bad version of the file "once", and that bad copy is cached, some browsers will just use the bad cached copy and deliver it to you as the completed download ... rather than grabbing the updated version from the server. Clearing the browsers cache, closing all browser windows, and re-attempting the download will usually clear that up.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Apr 2009, 11:11 PM
#5
burt avatar

burt

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

Just in case somebody comes across the same problem. This article explains the problem:
https://www.zen-cart.com/tutorials/index.php?article=292

Admin->Configuration->Attribute Settings:
Download by Redirect = false

works ok for me. I didn't even need to set
Download by Streaming = on
although my files are some 100 MBytes.

If you do need this streaming option, check the value of max_execution_time in your server's php.ini file.

8 Oct 2009, 4:22 PM
#6
daniwani avatar

daniwani

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

Hi all,

I managed to install and tweak zencart to my liking so far. Until this morning when I found that all my products (virtual downloadable zip files) resulted in 0kb files once the download actually started.

In the shopping cart where the download link is displayed it has the right name and right file size shown. None of my zips are actaully empty. All lights are set to green in the attributes controller (the files are really there and named right)

I am running the latest version, have about 40 virtual products (some for sale some for free - both types have the same problem) all in my zencart/downloads folder ranging from 200kb to 29MB in file size.

Could I have too many files in there? Is there is file size limit?

I am lost and appreciate any help :)

Thanks

Dani!

http://silentranksproductions.com/zencart

8 Oct 2009, 4:32 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,903
Plugin Contributions:
23

Re: Downloadable files download with 0 bytes

tried checking out a freebie and got the > Sorry, we are not accepting payments from your region at this time.

Please contact us for alternate arrangements.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

8 Oct 2009, 4:38 PM
#8
daniwani avatar

daniwani

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

dbltoe:

tried checking out a freebie and got the

OK, I changed it to the free charge card option :)

Thanks

Dani!

8 Oct 2009, 4:57 PM
#9
daniwani avatar

daniwani

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

daniwani:

OK, I changed it to the free charge card option :)

Thanks

Dani!

PS. The problem of 0kb files remains :no:

8 Oct 2009, 6:09 PM
#10
daniwani avatar

daniwani

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

burt:

Just in case somebody comes across the same problem. This article explains the problem:
https://www.zen-cart.com/tutorials/index.php?article=292

Admin->Configuration->Attribute Settings:
Download by Redirect = false

works ok for me. I didn't even need to set
Download by Streaming = on
although my files are some 100 MBytes.

If you do need this streaming option, check the value of max_execution_time in your server's php.ini file.

:clap: THANK YOU SOOOOOOO MUCH for this!!!

4 Apr 2010, 7:21 AM
#11
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

Re: Downloadable files download with 0 bytes

ISSUE FIXED!!!

ONE OF THE REASON FOR THIS ISSUE

htdocs/includes/configure.php

Find the line

 define('DIR_FS_DOWNLOAD'

I had a default apache directory download path...

changed that and put the desired download path

:clap::clap::clap: