delia:
Everything is working fine with the downloads except that the zip file shows up with nothing in it.Do you mean it's zero bytes? Or that it's got content that cannot be unzipped?
delia:
Everything
I do have downloads by redirect turned on and what I have discovered is that there is nothing in the pub directory for those redirects. as the documentation says there should be. There is one folder named .ulcwvnoxjdtmrhrirl but it is empty.
This is a linux server, the folder permissions were set to 777 (and actually 755 should work as well). These zip files are very small.
This started happening after changing servers but don't know what to tell tech support - what server setting would create this problem?
With download-by-redirect, Zen Cart does the following very simple process:
a) generates a random foldername under /pub/
b) calls the PHP function to generate a symlink from the file in the /download/ folder to that new folder under /pub/ ... thus becoming /pub/.abcwhatever/filename_to_download.zip
c) and then redirects the customer's browser to that file under the pub folder, leaving it entirely up to apache (webserver engine) to do the download/delivery of the file entirely independent of PHP
So, if the server doesn't support symlinks, step b won't work. Some older PHP versions didn't support it because of filesystem/OS limitations, especially on windoze servers. If permissions prevent the creation of the folder or the generation of the symlink stub, then of course you've got a problem. If your filesystem can't handle symlinks, then you've got a dud hosting service, and will have to use an alternate delivery method - Zen Cart has 3 modes, each with varying security implications and server resource (CPU/RAM) demands.
.
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.