Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Large Download Problems? Read this!!

    I just came across this problem myself. I could download any file under 6 MB in size, but it would time out and blow up for anything larger.

    I found another thread, in which Ajeh told the poster to call their host and have them check for download size limitations.

    However, there is another possible reason for this problem to occur.

    As I stated, I had this problem as well, this very morning!! I also have free downloads on my site as well, and those files have no problems download, and at least one of those is larger than 12 MB.

    I am on an IIS server, have Streaming set to true, redirect to false, and have my download folder outside my web root directory for security reasons.

    So, I called my host and I explained the problem as fully as I could. He had me read off to him the URL from one of my problematic downloads, and it sparked something.

    The URL for the download, when you click the download button, does not link to the file directly. Instead, it goes through the cart software. This means that it also goes through the PHP processor.

    My host increased my PHP Maximum Execution Time in the PHP settings on the server, and I can now download my largest electronic file (48 MB) without any problems.

    So, if you are having problems with downloads over a certain size, this could very well be a possible cause for that problem.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Large Download Problems? Read this!!

    Yes, that's an easily-overlooked issue.

    It's important to note that Zen Cart already tries to set it to unlimited for just that download instance. If the host is blocking the ability to override that setting via PHP commands, then you're left to getting the host to change the server configuration.

    It's also worth noting that not all hosts will be willing to change that setting.

    FAQ updated: https://www.zen-cart.com/tutorials/i...hp?article=292
    .

    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. #3
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Large Download Problems? Read this!!

    And if you do not know what the maximum execution time is for your server, there is a very simple way to find out.

    While in the admin section of Zen Cart, go to Tools and then to Server/Version Info.

    Scroll down until you find the section called:

    Configuration
    PHP Core


    About half-way down that block you will find the max_execution_time entry. The number on the right is the Master value.

    600 seconds is what mine is set for, thanks to my host. And that is plenty long enough for me to download a 48 MB file.

 

 

Similar Threads

  1. my download is faulty - Missing files! Please read...
    By mjmindustrial in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 29 Jul 2011, 10:26 AM
  2. Split large download files?
    By ErwinL in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Dec 2010, 05:52 PM
  3. Download product problems - Download Streaming vs. Redirect
    By Veraxus in forum Basic Configuration
    Replies: 3
    Last Post: 2 Jan 2009, 07:35 PM
  4. configure.php read/write problems.
    By Intrinzik in forum Installing on a Windows Server
    Replies: 4
    Last Post: 8 Feb 2007, 05:14 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