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

    Default Re: Cannot find file for download

    What does DIR_FS_DOWNLOAD point to in your /includes/configure.php file ?
    .

    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
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Cannot find file for download

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

    Default Re: Cannot find file for download

    Okay, that's good.

    What about the permissions settings ?
    .

    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. #14
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Cannot find file for download

    Permissions on both the download anf th pub are 777.

    (configure.php is 644)

  5. #15
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Cannot find file for download

    ccspellboundstamps.zip is 777

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

    Default Re: Cannot find file for download

    Quote Originally Posted by CerysCrow View Post
    I've changed the filename to ccspellboundstamps.zip, changed my settings to streaming true and redirect fale - no luck.

    I get the same message: Sorry. File not found. Please contact the webmaster to report this error.
    c/f: ccspellboundstamps.zip
    and when you changed the filename, you did it both in the product attributes in the admin as well as in your FTP ?
    .

    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
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Cannot find file for download

    yes, I changed both.

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

    Default Re: Cannot find file for download

    Okay ... time to try some debugging.

    1. what's the DIR_FS_CATALOG setting in your configure.php files?

    2. edit your /includes/modules/pages/download/header_php.php file using a clean text editor (ie: Crimson Editor or Notepad++ are good choices)

    around line 57 you'll find this:
    Code:
    // Die if file is not there
    if (!file_exists(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename'])) die('Sorry. File not found. Please contact the webmaster to report this error.<br />c/f: ' . $downloads->fields['orders_products_filename']);
    insert a NEW line ABOVE that code, like this:
    Code:
    echo 'CHECKING FILE: ' . DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename'] . '<br />';
    // Die if file is not there
    if (!file_exists(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename'])) die('Sorry. File not found. Please contact the webmaster to report this error.<br />c/f: ' . $downloads->fields['orders_products_filename']);
    Test the download from your customer account again.
    Hopefully it'll tell us the real path it's looking for.

    Then we'll compare that against the DIR_FS_CATALOG and DIR_FS_DOWNLOAD settings, as well as your FTP path to the /download folder.
    .

    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. #19
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Cannot find file for download

    I've got the download to work! It's amazing what a few hours of sleep will do.

    This morning, I checked the user account I had set up. I noticed that in the section that shows previous orders, the download file was listed and showed the expiry date and downloads left info, but the filename did not display a size.

    This seemed weird, and coupled with the fact that zen cart is saying that the file cannot be found, I decided to check my server through a different FTP program (I generally use Dreamweaver to upload my files.)

    Sure enough, the file was simply not on the server, so I re-uploaded through Cyberduck and now all is well.

    I am not sure why Dreamweaver "appeared" to be uploading files correctly. I will use Cybercuck for all my zen cart uploads, from now on.

    Thanks for all your help.

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

    Default Re: Cannot find file for download

    Yes, sleep can work wonders.

    I use Dreamweaver regularly for editing and file-uploading, but prefer to use a "real" dedicated FTP program for things other than php code files that I'm editing. It can be quirky at times.

    I recommend FileZilla to most people because it's free and I think I've only ever seen one person report a problem using it and I think their host was to blame, not the software. Of course, it's for windows PCs.
    .

    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. Replies: 7
    Last Post: 4 Mar 2010, 03:14 AM
  2. One option for single file download, one option for multiple file download
    By digidiva-kathy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 12 Mar 2008, 06:25 AM
  3. Downloads cannot find file error
    By CCarter in forum General Questions
    Replies: 1
    Last Post: 24 Oct 2007, 05:33 PM
  4. cart can't find download file
    By dstoops in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 15 Feb 2007, 03:07 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