Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Problems with Downloads....

    I just installed Zen Cart on my server for the company I work for.

    I put in a couple of test products and tried a PDF download. It worked and I was able to download the file.

    A while later, I did several things including the following:

    1) Moved the download file outside of the root (I have changed this back since then)
    2) Changed templates
    3) Setup Paypal IPN

    Downloads are not working now. That attached image shows that error that I get when I try to download files.

    I am on an IIS 6 server.

    I have streaming marked as true, and redirect marked as false. and I have been trying to sort through all of the different download thread, but none of the suggestions seem to have worked for me.

    I don't know what to try next. Any suggestions would be appreciated.
    Last edited by Rasyr; 1 Feb 2008 at 05:26 PM.

  2. #2
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Problems with Downloads....

    Additional Note:

    I tried zipping the PDFs and then uploading them, and changing the Options/Attribute stuff to use the ZIPs instead of the plain PDFs.

    Now, it will download them, but says that it is an invalid file when I try to open it, even though it shows the right file size when I check the properties.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Problems with Downloads....

    Does the updated file in this thread help?
    http://www.zen-cart.com/forum/showth...190#post439190
    .

    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.

  4. #4
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Problems with Downloads....

    Nope --goes from downloading a corrupt zip file to saying that the file cannot be read, kinda like in the image in my first post.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Problems with Downloads....

    Yet, you said it used to work before you made a number of changes ... ?
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Problems with Downloads....

    I tried it once, right after I first setup the cart (and figured out how to add downloadable files). And it worked.

    Then I changed the template (from the default to the glossy_black).
    Then I added Paypal IPN

    I also made a downloads directory outside of my web root and put the files there (but cannot remember if I did this BEFORE or AFTER I tested the first download). I just figured out a problem that I had been having with the directory being outside my wwwroot folder, so I have it outside there again.

    But in its original directory or the one I created. It seems that installing the Paypal IPN or the template may have been what caused it to break.

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Problems with Downloads....

    1. What happens when you revert back to Classic template?
    2. download folder is named just that..not downloads.
    3. download folder must contain htaccess file
    4. download folder must be situated in zencart install i.e.
    where you can see index.php file
    5. Zencart does not like zip files that contain hyphens,underscores or capitals

  8. #8
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Problems with Downloads....

    Quote Originally Posted by misty View Post
    1. What happens when you revert back to Classic template?
    I reverted back, and no changes.
    I reverted back and removed Paypal IPN and no changes


    Quote Originally Posted by misty View Post
    2. download folder is named just that..not downloads.
    folder is named download, not downloads. Attribute Manager gives me the little green dot (first time I tried to move it outside the wwwroot folder, I missed a spot in the admin configure.php where I had to change the directory path, so things never got the green dot, so put it back -- got it back outsite wwwroot and have the green dot now).

    Quote Originally Posted by misty View Post
    3. download folder must contain htaccess file
    4. download folder must be situated in zencart install i.e.
    where you can see index.php file
    I tried it in the original location. I also currently have moved it to outside the wwwroot folder as explained in this FAQ item -- https://www.zen-cart.com/tutorials/i...hp?article=280

    I am on an IIS server, so I would really prefer to have it located outside my root...

    Now, I didn't have the .htaccess file or the index.php file in the folder outside of my wwwroot, so I just added them, and no luck with that either.

    I have also tried deleting the download folder from the zen cart folder as well. Still no changes in how it it acting.

    Quote Originally Posted by misty View Post
    5. Zencart does not like zip files that contain hyphens,underscores or capitals
    So far, my test files have all been named
    ea1.pdf
    ea2.pdf
    ea3.pdf

    and/or

    ea1.zip
    ea2.zip
    ea3.zip

    And all files have been under 2 MB in size (I have some that will be closer to to 30MB when I am done, but am using small files for testing at the moment).

    Also, I have the cart installed on a sub-domain. so the URL is shop.xxxxxxx.com

    IIS has that sub-domain located in a folder inside my wwwroot folder.

    so that the path to the cart is D:/Domains/xxxxxxxxxx.com/wwwroot/shop/

    I currently have the download folder located at
    D:/Domains/xxxxxxxxxx.com/download

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Problems with Downloads....

    Have never successfully achieved download option in zencart,
    where download folder is offsite or away from zencart install.
    So am afraid cannot help you further myself..hopefully
    Ajeh/Dr Byte,zencart devs, can...

  10. #10
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Problems with Downloads....

    Hey, I can put the folder back in place and we can try to make it work there. :)

    It only takes a few seconds to put it all back.. hehe

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Help! Problems With Setting Up Free Downloads
    By neilbroomfield in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 20 Aug 2008, 04:02 AM
  2. Problems with login, checkout, and downloads
    By freya in forum Managing Customers and Orders
    Replies: 5
    Last Post: 31 May 2008, 08:41 AM
  3. Problems with some downloads
    By phaunt in forum General Questions
    Replies: 6
    Last Post: 18 Oct 2007, 10:37 PM
  4. Problems with setting up Downloads
    By tolefairy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Mar 2007, 09:43 AM
  5. Problems with permissions on OSX and downloads
    By jeffmic in forum General Questions
    Replies: 11
    Last Post: 27 Sep 2006, 01:08 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