mik_ie Posted April 7, 2005 Posted April 7, 2005 If anyone can help please do. I'm going totally mad here and can't see what the problem is! When a customer goes to purchace a downloadable product all is well until they click on the download here button after payment. The browser tries to download a file with a long string of characters filename and then fails. I've no idea whats gonig on. Please help!!
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 If anyone can help please do. I'm going totally mad here and can't see what the problem is! When a customer goes to purchace a downloadable product all is well until they click on the download here button after payment. The browser tries to download a file with a long string of characters filename and then fails. I've no idea whats gonig on. Please help!! <{POST_SNAPBACK}> Set up a dummy example (product with 0 price) for us to test - or give us a screen print Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
mik_ie Posted April 7, 2005 Author Posted April 7, 2005 Hey charles, heres whats coming up: any ideas? thanks mick
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 Hey charles, heres whats coming up: any ideas? thanks mick <{POST_SNAPBACK}> Have you set the permissions of your pub dir to 777 ? Also what is the path for DIR_FS_DOWNLOAD in your configure.php files ? Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
mik_ie Posted April 7, 2005 Author Posted April 7, 2005 pub is set to 777 the dir_fs_download is DIR_FS_CATALOG . '/download/ it's seeing the files in the downloads dir cause if you change the filenames the link on the download page becomes defunct. download.php is also creating ..yskgkduuhqrzklsvfmus and similar dir's in the pub folder. the link itself just wont go to the file intended?! thanks...
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 pub is set to 777the dir_fs_download is? DIR_FS_CATALOG . '/download/ it's seeing the files in the downloads dir cause if you change the filenames the link on the download page becomes defunct. download.php is also creating ..yskgkduuhqrzklsvfmus and similar dir's in the pub folder. the link itself just wont go to the file intended?! thanks... <{POST_SNAPBACK}> These are my 2 defines for the download and pub - no leading slash define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); The browser seems to be trying to open a file but in the wrong place - try this Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
gastongr Posted April 7, 2005 Posted April 7, 2005 I have no idea if it's related but maybe it's. Is browser redirection enabled from the admin cp?
mik_ie Posted April 7, 2005 Author Posted April 7, 2005 These are my 2 defines for the download and pub - no leading slash define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); The browser seems to be trying to open a file but in the wrong place - try this Charles <{POST_SNAPBACK}> tried that already, if i change the slashes it can't find the downloads directory and gives an error. the pub one is right too i think as its making the hidden directories in there. I have no idea if it's related but maybe it's.Is browser redirection enabled from the admin cp? <{POST_SNAPBACK}> yeah, browser redirection is on. the file its pointing to is: https://72.10.47.60/oscommerce/download.php...a87a585401dc9f5
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 tried that already, if i change the slashes it can't find the downloads directory and gives an error. the pub one is right too i think as its making the hidden directories in there. yeah, browser redirection is on. the file its pointing to is: https://72.10.47.60/oscommerce/download.php...a87a585401dc9f5 <{POST_SNAPBACK}> Post the rest of your configure.php files (both of them) without your connection strings Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
mik_ie Posted April 7, 2005 Author Posted April 7, 2005 first is - <?php define('HTTP_SERVER', 'https://72.10.47.60'); define('HTTPS_SERVER', 'https://72.10.47.60'); define('ENABLE_SSL', 'true'); define('HTTP_COOKIE_DOMAIN', '72.10.47.60'); define('HTTPS_COOKIE_DOMAIN', '72.10.47.60'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> and admin is - <?php define('HTTP_SERVER', 'https://72.10.47.60'); define('HTTP_CATALOG_SERVER', 'https://72.10.47.60'); define('HTTPS_CATALOG_SERVER', 'https://72.10.47.60'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs'); define('DIR_WS_ADMIN', '/oscommerce/admin/'); define('DIR_FS_ADMIN', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/admin'); define('DIR_WS_CATALOG', '/oscommerce/'); define('DIR_FS_CATALOG', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', ); define('DB_SERVER_USERNAME', ); define('DB_SERVER_PASSWORD', ); define('DB_DATABASE', ); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 first is - <?php define('HTTP_SERVER', 'https://72.10.47.60'); define('HTTPS_SERVER', 'https://72.10.47.60'); define('ENABLE_SSL', 'true'); define('HTTP_COOKIE_DOMAIN', '72.10.47.60'); define('HTTPS_COOKIE_DOMAIN', '72.10.47.60'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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', 'pub/'); ? ? ?define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> and admin is - <?php define('HTTP_SERVER', 'https://72.10.47.60'); define('HTTP_CATALOG_SERVER', 'https://72.10.47.60'); define('HTTPS_CATALOG_SERVER', 'https://72.10.47.60'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs'); define('DIR_WS_ADMIN', '/oscommerce/admin/'); define('DIR_FS_ADMIN', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/admin'); define('DIR_WS_CATALOG', '/oscommerce/'); define('DIR_FS_CATALOG', '/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', ); define('DB_SERVER_USERNAME', ); define('DB_SERVER_PASSWORD', ); define('DB_DATABASE', ); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> <{POST_SNAPBACK}> What does this dirname ($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/') resolve to ? Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
mik_ie Posted April 7, 2005 Author Posted April 7, 2005 What does this dirname ($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/') resolve to ? /home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/ mick
Simplyeasier Posted April 7, 2005 Posted April 7, 2005 /home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/ mick <{POST_SNAPBACK}> OK most of this checks out but your screenprint shows ..... cannot download from 72.10.47.60 - now in your configures you have BOTH the http and https paths the same (not sure why) - so do you have all your files including download and pb replicated in the httpsdocs ? Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"
gastongr Posted April 7, 2005 Posted April 7, 2005 this is how my download links look http://mysite.com/download.php?order=3&id=3 You have an extra session id in the link, try using the syntaxis of my link to download your file, just to see if it's a problem with the file or configuration.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.