Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Review my Config


HLT

Recommended Posts

When we try to add to cart before logging in, we receive the message "You have nothing in your Cart!" Are all our config settings correct?

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.hairlosstalk.com'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://www.hairlosstalk.com'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/progs/shop/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'filtered'); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', 'filtered');

define('DB_SERVER_PASSWORD', 'tfiltered');

define('DB_DATABASE', 'filtered');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

 

Try adding to cart:

http://www.hairlosstalk.com/progs/productc...r/shop/catalog/

 

HLT

.

www.hairlosstalk.com

Consumer Hair Loss Information & Support

Link to comment
Share on other sites

Try this, backup the original as I do no know if this will fix it, but it might.

 

// Define the webserver and path parameters 

// * DIR_FS_* = Filesystem directories (local/physical) 

// * DIR_WS_* = Webserver directories (virtual/URL) 

define('HTTP_SERVER', 'http://www.hairlosstalk.com'); // eg, http://localhost - should not be NULL for productive servers 

define('HTTPS_SERVER', 'https://www.hairlosstalk.com'); // eg, https://localhost - should not be NULL for productive servers 

define('ENABLE_SSL', true); // secure webserver for checkout procedure? 

define('DIR_WS_CATALOG', '/progs/shop/catalog/'); // absolute path required 

define('DIR_WS_IMAGES', 'images/'); 

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 

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_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) 

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); 

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); 



// define our database connection 

define('DB_SERVER', 'filtered'); // eg, localhost - should not be NULL for productive servers 

define('DB_SERVER_USERNAME', 'filtered'); 

define('DB_SERVER_PASSWORD', 'filtered'); 

define('DB_DATABASE', 'filtered'); 

define('USE_PCONNECT', 'true'); // use persistent connections? 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' 

?>

 

Or This

 

// Define the webserver and path parameters 

// * DIR_FS_* = Filesystem directories (local/physical) 

// * DIR_WS_* = Webserver directories (virtual/URL) 

define('HTTP_SERVER', 'http://www.hairlosstalk.com'); // eg, http://localhost - should not be NULL for productive servers 

define('HTTPS_SERVER', 'https://www.hairlosstalk.com'); // eg, https://localhost - should not be NULL for productive servers 

define('ENABLE_SSL', true); // secure webserver for checkout procedure? 

define('DIR_WS_CATALOG', '/progs/shop/catalog/'); // absolute path required 

define('DIR_WS_IMAGES', 'images/'); 

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 

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_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) 

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); 

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); 



// define our database connection 

define('DB_SERVER', 'filtered'); // eg, localhost - should not be NULL for productive servers 

define('DB_SERVER_USERNAME', 'filtered'); 

define('DB_SERVER_PASSWORD', 'filtered'); 

define('DB_DATABASE', 'filtered'); 

define('USE_PCONNECT', 'true'); // use persistent connections? 

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' 

?>

 

Hope that helps. The last 2 define lines are what I changes. Be sure to change any of those passwords too.

Link to comment
Share on other sites

Thanks, could you specify what you feel might be the problem, and what you changed?

 

HLT

.

www.hairlosstalk.com

Consumer Hair Loss Information & Support

Link to comment
Share on other sites

In the first one I changed USE persistant connections to TRUE, and store sessions to mysql instead of leaving it blank. Since the problem has something to do with sessions I am guessing that might fix it.

 

In the second example I only changed use persisitant connections to true.

 

Please let me know if that solves the problem, and keep in mind you may have to change the config file in the admin area as well as the catalog area.

Link to comment
Share on other sites

PS.. agt I appreciate all your comments and efforts ... but I started this new thread hoping someone else might give some input since most of your suggestions in the other thread were admittedly just random guesses.

 

Anyone who considers themself a guru please reply here. Don't want this just to be me and agt going back and forth with guesses.

 

HLT

.

www.hairlosstalk.com

Consumer Hair Loss Information & Support

Link to comment
Share on other sites

Sorry just trying to help... Your honestly not going to find too many helpful people here. I seriously doubt that there is anything wrong with the script. Most likely whoever is hosting your site has something setup incorrectly.

Link to comment
Share on other sites

I'll tell you this.

 

I have tried to help you and I will admit that I do not exactly know what the problem is, but if you are truly loosing money daily why not post a new topic offering some $ to the first person the fixes it. I'm sure shelling out a little cash would be worth more than the money you are losing.

 

Just a thought, that fixed a few of my problems pretty quickly.

Link to comment
Share on other sites

Regarding the money, I did offer that but it got lost in a lake of other posts between us :) Thats also why i started a new thread.

 

People see 20 replies and don't bother to reply because its too much to read and they assume its been addressed.

.

www.hairlosstalk.com

Consumer Hair Loss Information & Support

Link to comment
Share on other sites

Try changing the $DOCUMENT_ROOT in:

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

To your real path.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...