If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Strange Download Product Error

Strange Download Product Error

Locked

Started by eugenebarnes on 31 Aug 2006, 7:08 PM · Views: 1,384

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
31 Aug 2006, 7:08 PM
#1
eugenebarnes avatar

eugenebarnes

New Zenner

Join Date:
Jan 2005
Posts:
15
Plugin Contributions:
0

Strange Download Product Error

I just moved a Zen Cart store to a new server, changed all the config settings accordingly, and migrated the database. Everything works fine except...

When downloading a purchased download file, I click on the download button... and I get a 404 error because the path is incorrect. I'm on a shared server with server-wide SSL certificate, so the online store path is like this:

://server.hosting.com/~account/onlinestore/

The URL for a download should be:

//server.hosting.com/~account/onlinestore/pub/.randomfoldername/product.zip

But it is leaving out the "~account/" from the path which naturally results in the 404 error.

Manually type the missing "~account/" back into the URL in address bar of the browser and the download works fine.

So it has to be in my configure.php file, right? Yet I've been over it again and again and I don't see the error...

// Define the webserver and path parameters
  // Main webserver: eg, http://localhost - should not be empty for productive servers
  define('HTTP_SERVER', 'http://circe.hmdnsgroup.com/~drtrance');
  // Secure webserver: eg, https://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://circe.hmdnsgroup.com/~drtrance');
  // secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/onlinestore/');
  define('DIR_WS_HTTPS_CATALOG', '/onlinestore/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/drtrance/public_html/onlinestore/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

I've been all over the forums searching for the answer, but to no avail.

I hope this is a very simple thing I'm overlooking...

Eugene Barnes
Website Design & Services