Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Jul 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.

  5. #5
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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/i...hp?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.

  6. #6
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Empty Zip Files as Downloads?

    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

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Empty Zip Files as Downloads?

    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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Empty Zip Files as Downloads?

    Quote Originally Posted by dbltoe View Post
    tried checking out a freebie and got the
    OK, I changed it to the free charge card option :)

    Thanks

    Dani!
    Last edited by daniwani; 8 Oct 2009 at 05:43 PM.

  9. #9
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Empty Zip Files as Downloads?

    Quote Originally Posted by daniwani View Post
    OK, I changed it to the free charge card option :)

    Thanks

    Dani!
    PS. The problem of 0kb files remains

  10. #10
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Downloadable files download with 0 bytes

    Quote Originally Posted by burt View Post
    Just in case somebody comes across the same problem. This article explains the problem:
    https://www.zen-cart.com/tutorials/i...hp?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.
    THANK YOU SOOOOOOO MUCH for this!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can the digital download be set to download multiple MP3 or other files?
    By Donn in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Dec 2014, 10:47 PM
  2. Trouble with downloadable PDF files
    By jgold723 in forum General Questions
    Replies: 1
    Last Post: 15 Sep 2011, 03:57 AM
  3. No download link after checkout for my downloadable files
    By dryaquaman in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 4 Jan 2011, 09:12 PM
  4. Need help all files after download are saying invalid files
    By CHSNAC in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 3 Aug 2010, 07:23 AM
  5. File size: 0 bytes and download button not visble
    By arunkarthik in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Apr 2010, 04:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg