Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Jan 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: Downloads corrupted? v1.3.6

    Sorry.... it was me. Must have been tired

    I have tried the patch for 1.3.7, but when I try to click on the download link, an empty page appear

    Very big problem I have here , but thanks for all your time :)

    Best Regards :)

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

    Default Re: Downloads corrupted? v1.3.6

    Blank pages are often a result of a PHP error or a conflict between code versions.
    A tool to help you diagnose such errors can be seen here:
    https://www.zen-cart.com/tutorials/index.php?article=82 - esp step 2a
    .

    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. #23
    Join Date
    Jan 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: Downloads corrupted? v1.3.6

    Have tried that now, and it show some warnings and so on at front pages. But when clicking download no error messages at all apears. Just an empty white page while trying to reach this link:
    http://www.domain.com/index.php?main...rder=146&id=84

    Hope you still have the time and ideas of what to do :)

    Thank you so much for you time

    Kind Regards :)

  4. #24
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Downloads corrupted? v1.3.6

    Nothing shows in the logs when you get that blank page?
    .

    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. #25
    Join Date
    Jan 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: Downloads corrupted? v1.3.6

    No only a blank page as if it cant find the link

  6. #26
    Join Date
    Jan 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: Downloads corrupted? v1.3.6

    It seems like the problem is here:

    if (DOWNLOAD_BY_REDIRECT != 'true' or $link_create_status==false ) {
    // not downloading by redirect; instead, we stream it to the browser. This happens if the symlink couldn't happen, or if set as default in Admin
    if (DOWNLOAD_IN_CHUNKS != 'true') {
    // This will work on all systems, but will need considerable resources
    header("Content-Length: " . $zv_filesize);
    $zco_notifier->notify('NOTIFY_DOWNLOAD_WITHOUT_REDIRECT___COMPLETED');
    readfile(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename']);
    } else {
    // loop with fread($fp, xxxx) to allow streaming in chunk sizes below the PHP memory_limit
    header("Content-Length: " . $zv_filesize);
    $handle = fopen(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename'], "rb");
    while (!feof($handle)) {
    echo(fread($handle, 4096));
    flush();
    }
    fclose($handle);
    $zco_notifier->notify('NOTIFY_DOWNLOAD_WITHOUT_REDIRECT_VIA_CHUNKS___COMPLETED');
    }
    }


    If I try to remove this the file i damaged and cant be opened at all. If I copy the code from the other file (the one from your link) it is damaged too.
    I I let the code be as it is I got the same problem as described in the beginning.

    Download by redirect is set to false
    Download by streaming is set to false

    I hope you have the time to help, and thank you for all the time you have used to help me.

    Kind Regards :)

  7. #27
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Downloads corrupted? v1.3.6

    What programs are you using to edit these files?
    And what FTP program do you use for transferring files?
    .

    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 3 of 3 FirstFirst 123

Similar Threads

  1. Flo2Cash corrupted
    By gh0st in forum Addon Payment Modules
    Replies: 3
    Last Post: 13 Mar 2009, 07:12 AM
  2. Images Corrupted
    By callansdad in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 22 Dec 2007, 06:53 AM
  3. Code Corrupted??
    By QueenKat in forum General Questions
    Replies: 2
    Last Post: 29 Jun 2007, 08:23 AM
  4. Corrupted Header
    By Dinnages in forum General Questions
    Replies: 6
    Last Post: 14 May 2007, 07:58 AM

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