Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download Problem #2


jamescalvin

Recommended Posts

When a customer downloads a file from their account, the download is successfull to their computer but they get an error saying the file is invalid when they try to access it. However, if I try to access the file directly mysite.com/catalog/download/file.zip then it downloads and opens with no problems.

 

1st off, why is their an error when the customer downloads the zip file

2nd why am I allowed to access the file by going to the direct path.

 

This is literally all I need fixed before I can launch this site so please please help me. Thanks

Web Development, 365... 366 in a leap year.

Link to comment
Share on other sites

Check the file contents that the customer has downloaded using a normal editor. I have seen where server error messages are placed in the download when a problems has occurred. One of those messages was that "safe_mode" was turned on in php.ini and download re-direct in oscommerce/admin was set to true. Try setting re-direct to false (or true if it was false) and see if that helps.

 

Tom

Link to comment
Share on other sites

99 times out of 100 it's customer error, not unzipping the files correctly - point them to free programs like WinRAR or WinZip :)

 

Hi everyone, thanks for the responses. I know for sure it's not the customer because when I test it myself I get the same problem. Also, I have my download redirect set to "false". I'll try tweaking with that to see if that does anything for me.

Web Development, 365... 366 in a leap year.

Link to comment
Share on other sites

Hi everyone, thanks for the responses.  I know for sure it's not the customer because when I test it myself I get the same problem.  Also, I have my download redirect set to "false".  I'll try tweaking with that to see if that does anything for me.

 

When I set my downlaod redirect to true, I get a 404 page cannot be displayed message. So at this point neither way is working for me.

Web Development, 365... 366 in a leap year.

Link to comment
Share on other sites

Check the file contents that the customer has downloaded using a normal editor. I have seen where server error messages are placed in the download when a problems has occurred. One of those messages was that "safe_mode" was turned on in php.ini and download re-direct in oscommerce/admin was set to true. Try setting re-direct to false (or true if it was false) and see if that helps.

 

Tom

 

Hi Tom, where can I find that PHP.ini file?? I'll see if I can do a thing or two with that.

Web Development, 365... 366 in a leap year.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...