Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    help question Downloads timing out

    Hi all,

    My site consists of downloadable files only of which some are 200 megs in size. The downloads seem to be timing out at about 15 to 20 megs or 60 seconds . If I buy-pass the store and url directly to the file, it downloads just fine.

    I have the latest version of Zencart and it is a fresh install on ipower.com.

    I believe I have all my ducks in a row with the file attributes etc. I do have a green dot on the attributes box.

    Any ideas?

    Thanks
    Michael

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Downloads timing out

    The downloads seem to be timing out at about 15 to 20 megs or 60 seconds
    Go to admin > tools > server ver info > and search the resulting page for "max_execution_time" and you will most likely see "60"

    If your host allows you to have your own php.ini file then you can add & alter this with a reasonable but higher value:
    Code:
    max_execution_time = 60     ; Maximum execution time of each script, in seconds
    Might be against the terms of service on a shared host using the resources for extended times??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    Ok, I seem to have found that in the PHP core. Do you know where to find that file? Thanks tons, I've been working on this forever.....;-)

  4. #4
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    OK, I found the script editor for the PHP.ini file on my server, however after changing the max execution time.....then go back and look at the server info in Zen.....the local time remained 60 but the Master value changed to what I wanted. When testing, I still have the interupted download at the time of the local.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Downloads timing out

    Using FTP, check to see if you have a php.ini file at the root of your ZenCart install or any in your account area. As you have a differing local value you must.
    It is in this file you will need to alter these settings.
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    Nothing in the root. By accounts, would that be IN the zen cart somewhere?

  7. #7
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    OK, it seems I was able to get both local and master values to 1200 seconds on max_execution_time, unfortunatly, I still get my downloads timing out. ughhhh

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

    Default Re: Downloads timing out

    The PHP max_execution_time setting has no impact whatsoever unless you have "download by streaming" enabled and "download by redirect" disabled. Those are not the default settings. The only time PHP actually serves the downloads byte-by-byte is when streaming mode is enabled. The rest of the time it's handled by apache.

    Historically, download timeouts are almost always a server-side problem. Sometimes turning off GZip compression via your Admin->Configuration menu has provided some relief.

    Download Delivery Methods Explained:
    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.

  9. #9
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    This is great I am learning so much. My next question would be, why can I download without interuptions if I URL directly to this file and not download succesfully going through the cart?

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

    Default Re: Downloads timing out

    Likely a permissions problem with the redirect or a GZip problem conflicting with your server config.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Timing Out
    By autoace in forum Installing on a Linux/Unix Server
    Replies: 22
    Last Post: 16 Feb 2010, 09:24 PM
  2. Checkout is timing out.
    By voltage in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 11 Oct 2007, 06:31 PM
  3. Server Timing Out
    By brooklyn in forum General Questions
    Replies: 8
    Last Post: 22 May 2007, 07:26 PM
  4. Session Timing out
    By magicpants in forum General Questions
    Replies: 1
    Last Post: 9 Jan 2007, 05:04 PM
  5. timing out
    By patchcables in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2006, 08:01 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