Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Won't Add Product To Cart & Can't Log In


Guest

Recommended Posts

I'm pretty sure my store worked fine up until recently but now when you click "Add To Cart", it brings you to the shopping cart and it says "Your shopping cart is empty." Also, when you click log in and put in your log in info and click Continue, it brings you back to the home page but still says GUEST instead of your name.

 

One thing I've noticed is that the links to log yourself in and create an account on the main page have session IDs in the URLs but nothing else does.

 

My store is at http://www.allrecordsonline.com/store and I do not have SSL.

 

Here is my config.php:

 

<?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.allrecordsonline.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://www.allrecordsonline.com');
define('HTTP_CATALOG_SERVER', 'http://www.allrecordsonline.com');
define('HTTPS_CATALOG_SERVER', 'http://www.allrecordsonline.com');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/httpdoc/store/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/httpdoc/store/admin/'); // absolute pate required
define('DIR_WS_CATALOG', 'store/'); // absolute path required
define('DIR_FS_CATALOG', '/httpdoc/store/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_HTTP_CATALOG', '/store/');
 define('DIR_WS_HTTPS_CATALOG', '/store/');
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 . 'backup/');


// define our database connection
 define('DB_SERVER', '****'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '****');
 define('DB_SERVER_PASSWORD', '****');
 define('DB_DATABASE', 'store');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Any help is SUPER appreciated.

Link to comment
Share on other sites

Now I'm getting this error when trying to just view the store.

 

1062 - Duplicate entry 'c1490cfacc653d170aa1feac66dc3657' for key 1

 

insert into sessions values ('c1490cfacc653d170aa1feac66dc3657http://www.allrecordsonline.com/store/index.php?manufacturers_id=11', '1120363312', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"index.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:0:{}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}')

 

[TEP STOP]

Link to comment
Share on other sites

bump, i really need this fixed. i kinda don't wanna replace the whole site cuz i did a lot of editing to make the site fit the parent site. and it worked fine.

Link to comment
Share on other sites

here you go. i got that error to go away but now its still a blank page.

 

<?php
/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://allrecordsonline.com/store'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://allrecordsonline.com/store'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'allrecordsonline.com');
 define('HTTPS_COOKIE_DOMAIN', 'allrecordsonline.com');
 define('HTTP_COOKIE_PATH', 'store/tmp');
 define('HTTPS_COOKIE_PATH', 'store/tmp');
 define('DIR_WS_HTTP_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', 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('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...