Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    2
    Plugin Contributions
    0

    cart error [Done v1.3.9c] Downloads not completing properly in v1.3.9a/b

    I am using the latest version of Zencart. (v1.3.9b) Yesterday the downloads were working. Today each download is 4kb when I attempt to download any of them and are corrupt. I spoke with the host. They had let me know that nothing has been changed or updated

    In the log file I am getting the following error

    PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /zencart_dir/download/myfile.zip in /zencart_dir/includes/templates/template_default/templates/tpl_modules_downloads.php on line 41, referer: /zencart_dir/index.php?main_page=checkout_confirmation

    Any help would be much appreciated.

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

    Default Re: Download corrupt

    Quote Originally Posted by Z3Nguy54321 View Post
    In the log file I am getting the following error

    PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /zencart_dir/download/myfile.zip in /zencart_dir/includes/templates/template_default/templates/tpl_modules_downloads.php on line 41, referer: /zencart_dir/index.php?main_page=checkout_confirmation
    That message is telling you that your server's configuration is preventing PHP from accessing file properties, namely the file size.
    What are your /download/ folder's permissions set to? Ask your hosting company what the correct setting is based on your server's PHP configuration.
    .

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

    Default Re: Downloads not completing properly in v1.3.9a/b

    Quote Originally Posted by Z3Nguy54321 View Post
    I am using the latest version of Zencart. (v1.3.9b). Each download is 4kb when I attempt to download any of them and are corrupt.
    Try making the following coding change:

    /includes/modules/pages/download/header_php.php
    change line 115 from this:
    Code:
    $downloadFilesize = filesize(DIR_FS_DOWNLOAD . $originFilename);
    to this:
    Code:
    $downloadFilesize = filesize(DIR_FS_DOWNLOAD . $origin_filename);
    Then try your download again by accessing it from your My Account area.
    .

    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.

  4. #4
    Join Date
    May 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Downloads not completing properly in v1.3.9a/b

    That change on line 115 worked thanks!

 

 

Similar Threads

  1. v151 Captcha not working, tried uninstalling, still not completing.
    By neophyteuk in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 18 Dec 2014, 05:08 PM
  2. Unlimited Stock and How to Properly Set Up Digital Goods with Downloads?
    By Andrew2 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 8 Jun 2009, 06:33 PM
  3. Downloads not working properly, out of stock, Nope!
    By southernlady in forum General Questions
    Replies: 26
    Last Post: 27 Dec 2008, 03:26 AM
  4. Not completing checkout
    By Erica in forum Managing Customers and Orders
    Replies: 2
    Last Post: 21 Jan 2007, 06:32 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