My downloads are empty when using downloads by redirect in Zen Cart!

If the php function of readfile is disabled, then your downloads will not work properly.

You can do one of 2 things:

1) turn on downloads by streaming

2) or add this code to includes/modules/pages/download/header_php.php

Around line 224 of that file you should see this:

  if (DOWNLOAD_IN_CHUNKS != 'true') {

Change it to this:

$disabled_funcs = @ini_get("disable_functions");
  if (DOWNLOAD_IN_CHUNKS != 'true' && !strstr($disabled_funcs,'readfile')) {

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to set up Linkpoint for your credit card processor in Zen Cart

Please see this tutorial at Zen Cart: http://tutorials.zen-cart.com/index.php?article=298...

Uploading Images in the Zen Cart admin for Pages

For security reasons, uploading images willy nilly in admin is a bad idea. One workaround is...

How to get the PayPay Express settings

At the moment the paypal instructions are located at...

Adding Multiple Images on Product Page

Zen Cart has a feature that is a little hard to grasp at first but it's built in and once you get...

Powered by WHMCompleteSolution