I have a customer using zen cart 1.3.7.1 to provide downloadable pdf's. Currently the downloads aren't working properly, they are producing what appears at first glance to be a corrupt file.
Further investigation shows that the content of the file has been replaced with the text "test".
This happens regardless of whether the file is one of the pdf's that the customer has uploaded or the test.zip file provided with zencart. In all cases the file downloaded has the correct file name, but is an ASCII text file with the word test in it.
To troubleshoot this one I've setup a test download product following one of the zencart tutrials. I've also verified that the files in the download folder are valid (removed the .htaccess file and downloaded them directly).
I've tried disabling download by redirect with the same result, I've also tried enabling download by streaming with redirect disabled, again with the same result.
The server is running apache 2.2 and the site is using php 5.2.5. The pub and download folders are both 755, the site itself is in a chrooted environment so php can read and write to 755 folders. I have tried changing the pub folder to 777 but that hasn't made any difference.
The configure.php has correct paths for download and pub folders and the Admin page has a green dot next to the downloadable files.
The fact that the files are being overwritten with a text file containing test suggests that this is some kind test mode in zencart. But I haven't been able to find any thing that would enable / disable that in zencart, nor in any of the setup downloadable product tutorials.
Customer was testing with the Credit Card payment module and have also tried with PayPal IPN.
Bookmarks