Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty Cart and Unable Set Cookie in any Browser.


Guest

Recommended Posts

Posted

First off I tried to fix this myself http://www.oscommerce.com/forums/index.php?sho...p;hl=Empty+Cart

 

I even overwrote some pages with my Backup CDRW.

 

I am now on a SSL Server and just re-did my includes/config file to reflect the changes.

 

I cannot get a product into my cart in any Broswer (Safari, IE, FF, Opera, Netscape) on either Platform Mac or Windoze.

 

I see the Cookie Usage page when you click on adding to cart or My Account but, I cannot get a Cokkie pop-up to say I want to accept a Cookie.

 

The Host says to never use the actual SSl Server address but to use https://yourdomain instead.

 

Is this correct?

 

What about includes/application_top file? Does this affect anything?

 

Below is my config file.

 

My Site is www.american-RC.com

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://medomain/');

define('HTTPS_SERVER', 'https://medomain/');

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

define('HTTP_COOKIE_DOMAIN', 'www.medomain/');

define('HTTPS_COOKIE_DOMAIN', 'https://medomain/');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '/shoppe/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/land/public_html/shoppe/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', 'yadayada');

define('DB_SERVER_PASSWORD', 'yadayada');

define('DB_DATABASE', 'yadayada');

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

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

?>

 

Thanks in advance.

Posted

is this the actual configuration file in use? Or it's an example? Because it's totally wrong.

Posted
is this the actual configuration file in use? Or it's an example? Because it's totally wrong.

 

 

Really?

 

LOL

 

Yeah, it is in use. Wholly Gotham Batman.

 

I just skewed the domain names to protect the innocent.

Posted

that's what I asked you skewed the domain names so no idea, you need to post the original one without the database sensitive info.

Posted

Here it is: the SSL Server is https://ssl02.ipowerweb.com

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'https://american-rc.com');

define('HTTPS_SERVER', 'https://american-rc.com');

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

define('HTTP_COOKIE_DOMAIN', 'american-rc.com');

define('HTTPS_COOKIE_DOMAIN', 'american-rc.com/~american');

define('HTTP_COOKIE_PATH', '/~american/shoppe/catalog/');

define('HTTPS_COOKIE_PATH', '/~american/shoppe/catalog/');

define('DIR_WS_HTTP_CATALOG', '/~american/shoppe/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/~american/shoppe/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/american/public_html/shoppe/catalog/');

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

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

 

 

I went ahead and installs os in another folder to get the correct config files and then changed the folder to reflect the current folder. Since I am already on a secure server do I need the SSL on?

 

Thanks in advance.

Posted

this is not right

 

define('HTTPS_COOKIE_DOMAIN', 'american-rc.com/~american');

 

should be

 

define('HTTPS_COOKIE_DOMAIN', 'american-rc.com');

 

Because the path is added to the domain so you were ending up with the incorrect cookie settings. Why you always want to be on a secure connection? It is much slower. You should only have the pages that carry sensitive customer info in SSL. To simplify the process I enable SSL once the customer logs-in till he logs-out. That's in addition of customer forms like contact us. Otherwise until they log-in keep the connection non-ssl.

Posted
this is not right

 

define('HTTPS_COOKIE_DOMAIN', 'american-rc.com/~american');

 

should be

 

define('HTTPS_COOKIE_DOMAIN', 'american-rc.com');

 

Because the path is added to the domain so you were ending up with the incorrect cookie settings. Why you always want to be on a secure connection? It is much slower. You should only have the pages that carry sensitive customer info in SSL. To simplify the process I enable SSL once the customer logs-in till he logs-out. That's in addition of customer forms like contact us. Otherwise until they log-in keep the connection non-ssl.

 

 

When buying an SSL from my Host they move you to a secure server.

 

Thanks.

 

Now I have a major ERROR 1030 - Got error 127 from table handler

 

Does this mean some records just crashed?

 

I did a DB check and a whos online error came up. The Repair function took care of it but if you try to click on any product you get the 1030 ERROR.

 

Can You help with this? I have a copy of the DB and it expands into a folder of files. Just upload the affected pages?

Archived

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

×
×
  • Create New...