Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Downloads timing out

    Perhaps you might enlighten us on how you've got it set 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.

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

    Default Re: Downloads timing out

    However, I am not redirecting (false) and I am not compressing (false)

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

    Default Re: Downloads timing out

    Well, I turned off Gzip and redirect, turned on streaming and the problem still exists.....ugh

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

    help question Re: Downloads timing out

    Here is what my isp (ipower.com) sent back after troubleshooting this issue.

    To overcome this, please use header() function to redirect the request to the browser, to download the file. Currently, you are getting an pop-up download box which shows the progress bar. This is of Windows. You can have a progress bar built incorporated in the site itself, to show the progress. This way you can stop the download from timing out as this script will be refreshing the same. Please take the help of your web master.

    If anyone knows what he is talking about, I would be indebted forever.

    Michael

  5. #15
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Downloads timing out

    Here is the code from download.php

    // Now send the file with even more header() magic;-)
    // Date in the past
    header("Expires: Mon, 26 Nov 1962 00:00:00 GMT");
    // always modified
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    // HTTP/1.1
    header("Cache-Control: private, no-store, must-revalidate, max-age=0");
    header("Cache-Control: post-check=0, pre-check=0", false); // false=don't overwrite but add header
    // HTTP/1.0

    // Content stuff
    header("Content-Length: " . filesize(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']));
    header("Content-Type: application/octet-stream");
    header("Content-Disposition: attachment; filename=\"" . $downloads['orders_products_filename'] . "\"");

    if (DOWNLOAD_BY_REDIRECT == 'true') {
    // This will work only on Unix/Linux hosts
    tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);
    $tempdir = tep_random_name();
    umask(0000);
    mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777);
    symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);
    if (file_exists(DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename'])) {
    tep_redirect(tep_href_link(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']));
    }
    }

    // Fallback to readfile() delivery method. This will work on all systems, but will need considerable resources
    readfile(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']);
    ?>

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

    Default Re: Downloads timing out

    Zen Cart already uses header() commands to do the redirected downloads.
    .

    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.

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

    Default Re: Downloads timing out

    Quote Originally Posted by dancemad View Post
    Here is the code from download.php

    ...
    if (DOWNLOAD_BY_REDIRECT == 'true') {
    // This will work only on Unix/Linux hosts
    tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);
    $tempdir = tep_random_name();
    umask(0000);
    mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777);
    symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);
    if (file_exists(DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename'])) {
    tep_redirect(tep_href_link(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']));
    }
    }

    // Fallback to readfile() delivery method. This will work on all systems, but will need considerable resources
    readfile(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']);
    ?>
    Um ... you have osCommerce code in there instead of Zen Cart code.
    Zen Cart does not have or use any "tep_xxxxxx()" functions.

    Perhaps you've installed incompatible addons?
    Or attempted to hack code from different software?

    Please contact whoever made the customizations on/for your site for support.
    .

    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 2 of 2 FirstFirst 12

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