Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Corrupt downloads - html appended

    On some products (e.g. multi-attribute), the downloaded .exe files are being corrupted with additional html content being added. Other .exe downloads are fine. This WAS working, but was being administered by a contractor and his gurus who have now deserted the scene. So now we are picking up the pieces.
    Downloading the file via ftp works fine. Have reproduced with single attribute product. Not afraid to get into the databases to provide diagnostics.

    Using ZC 1.3.6 with "Download by Redirect" off, as otherwise, top and bottom of file have extra html.

    All help appreciated.
    Cheers from NZ

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Corrupt downloads - html appended

    Please describe the "extra html" that is on the files.
    Have you tried enabling Download by streaming ?
    .

    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
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Corrupt downloads - html appended

    Thanks for the response. Download by streaming set to true doesn't work either. Some of the downloads that work are 12Mb, which is 5MB larger than those that are failing.
    HTML is attached txt file also.

    Cheers,

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
    <head>
    <title>Your Download ...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Software Gift Certificates Your Download ..." />
    <meta name="description" content="Your Download ... - Software Gift Certificates " />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="Sprite Mobile Ltd" />
    <meta name="robots" content="noindex, nofollow" />

    <base href="http://www.spritesoftware.com/store/" />

    <link rel="stylesheet" type="text/css" href="includes/templates/Sprite_template/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/Sprite_template/css/stylesheet_css_buttons.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/Sprite_template/css/
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Corrupt downloads - html appended

    You said you're using Zen Cart v1.3.6.
    What addons/contributions have been installed?
    What kinds of customizations have been done to the site?

    I'd be inclined to do a complete comparison of your site's files vs the master/original files to see what might be causing this. Something akin to this procedure:
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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. #5
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Corrupt downloads - html appended

    Might be easier if someone could tell me where the code for the download button usually sits and we'll start debugging. I don't know all the customizations that happened - external contractors set up the cart for us and comparing source code seems like a blunt instrument given that we wouldn't recognize what changes were previously made as part af the customization, and what changes are related to the download problem scenario. Given that it works fine on some product downloads and not others, I would have thought that would help identify the cause of the problem....
    How about low memory conditions ?
    Thanks,

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

    Default Re: Corrupt downloads - html appended

    download-by-streaming handles the low-memory situation.


    Compare this file as a start:
    /includes/modules/pages/download/header_php.php

    However, that file might be perfectly fine, but the problem stems from somewhere else.
    Technically if that file is operating properly, then all the template-related content that's getting into your files should *never* get there, because the template *never* triggers if this file's code is running normally.
    .

    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. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Corrupt downloads - html appended

    Do you have some sort of SEFU/SEO Url module installed that could be interrupting the normal load process?
    .

    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.

  8. #8
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Corrupt downloads - html appended

    Thanks. Will see what I can find today.

 

 

Similar Threads

  1. corrupt files (downloads)
    By Faith516 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 21 May 2011, 11:48 PM
  2. Customers either can't download files or downloads are corrupt,
    By bearlymakinit in forum General Questions
    Replies: 3
    Last Post: 9 Mar 2011, 01:57 AM
  3. Corrupt downloads - .zip only v1.3.7
    By Debbiekipt in forum General Questions
    Replies: 8
    Last Post: 30 May 2010, 03:27 PM
  4. Downloads working, but corrupt...sometimes
    By bugfreek1 in forum General Questions
    Replies: 8
    Last Post: 1 Nov 2007, 02:36 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