Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with oscommerce


yungpot

Recommended Posts

Basically, if your http and https paths for your domain have a trailing slash at the end, then the cookie paths in the file mentioned above should look like this

 

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

 

If your domain name doesn't have a trailing slash at the end, then the cookie path should look like this

 

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

 

Hope this helps - Vger

Link to comment
Share on other sites

Basically, if your http and https paths for your domain have a trailing slash at the end, then the cookie paths in the file mentioned above should look like this

HTTP_SERVER and HTTPS_SERVER paths in the osCommerce should not have trailing slashes :blink:

 

Matti

Link to comment
Share on other sites

Basically, if your http and https paths for your domain have a trailing slash at the end, then the cookie paths in the file mentioned above should look like this

HTTP_SERVER and HTTPS_SERVER paths in the osCommerce should not have trailing slashes :blink:

 

Matti

Whyever not? Especially as they work fine with them, provided that other pathways 'slashes' match. I have sites with http and https with trailing slashes, and sites without them, all work okay. I note that you're a 'Team Member' so if there's a sound reason as to why what I am doing is wrong then I'd like to know. Many Thanks Vger :D

Link to comment
Share on other sites

i'm really sorry. this still isnt working. can you please take a look at my configure.php? thanks a lot!

 

 

 

<?php

/*

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright © 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

  define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

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

  define('HTTP_COOKIE_DOMAIN', 'www.hyperefx.com');

  define('HTTPS_COOKIE_DOMAIN', '');

  define('HTTP_COOKIE_PATH', ' /cart/catalog/ ');

  define('HTTPS_COOKIE_PATH', '');

  define('DIR_WS_HTTP_CATALOG', '/cart/catalog/');

  define('DIR_WS_HTTPS_CATALOG', '');

  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', ' /home/tycscf8/public_html/cart/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', 'localhost'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', ' db_confidential ');

  define('DB_SERVER_PASSWORD', 'db_confidential');

  define('DB_DATABASE', 'db_confidential');

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

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

 

// STS: ADD: Define Simple Template System files

  define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

  define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

  define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

  define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

  define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

  define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

  define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

  define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

// STS: EOADD

 

// STS: ADD: Define Simple Template System files

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

// STS: EOADD

 

 

 

?>

Link to comment
Share on other sites

What version are you running? I see a missing line in the config file if it's 2.2MS2

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Just for the heck of it in configure.php change this line:

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

to:

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

Link to comment
Share on other sites

Take a look at this

 

define('DIR_FS_CATALOG', ' /home/tycscf8/public_html/cart/catalog/ ');

 

Try something like

 

define('DIR_FS_CATALOG', '/var/www/html/cart/catalog/');

 

Really depends on the setup your host provides - ask them for the file pathway, or go to their support section and see if they quote it there.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...