What does DIR_FS_DOWNLOAD point to in your /includes/configure.php file ?
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.
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
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.
Permissions on both the download anf th pub are 777.
(configure.php is 644)
ccspellboundstamps.zip is 777
.
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.
yes, I changed both.
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:insert a NEW line ABOVE that code, like 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']);Test the download from your customer account again.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']);
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.
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.
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.