Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help! Going mad...


mik_ie

Recommended Posts

Posted

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!!

Posted
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!!

 

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!"

Posted
Hey charles,

 

heres whats coming up:

 

untitled2.gif

 

any ideas?

 

thanks

 

mick

 

 

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!"

Posted

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...

Posted
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...

 

 

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!"

Posted
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

 

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?

 

yeah, browser redirection is on.

 

the file its pointing to is:

https://72.10.47.60/oscommerce/download.php...a87a585401dc9f5

Posted
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 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!"

Posted

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');
?>

Posted
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');
?>

 

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!"

Posted
What does this dirname ($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/') resolve to ?

 

/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/

 

mick

Posted
/home/httpd/vhosts/bodytonicmusic.com/httpsdocs/oscommerce/

 

mick

 

 

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!"

Archived

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

×
×
  • Create New...