Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Log in Problems.


Guest

Recommended Posts

I can not log into my account. I created a dummy account so you can take a look at what I am talking about.

 

http://www.scentfromheavencandles.com/catalog

 

username: test@damato2001.com

password: test1

 

when you log in it just goes back and says welcome guest. Then if you try to add something to the cart it does not show up. It is like a big loop you log in and it just take you back to the beginning. And the same goes for adding a product to the cart it doesnt add it just take you back to the beginning.

 

Hope someone can help.

 

Thanks

Dan

Link to comment
Share on other sites

Here is catalog/includes/configure.php

 

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

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

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('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

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

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

?>

 

And catalog/admin/includes

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

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_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

Thanks hope someone can help

Link to comment
Share on other sites

Ok here they are again:

 

[COLOR=red]catalog/includes/configure.php[/color]

 

<?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.scentfromheavencandles.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure1.hostsave.com/ssl/my account name/'); // eg, https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', 'https://secure1.hostsave.com/ssl/my account name/');

define('HTTP_COOKIE_PATH', '/cookies/');

define('HTTPS_COOKIE_PATH', '/cookies/');

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

define('DIR_WS_HTTPS_CATALOG', '/ssl/my account name/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', '/nfs/cust/3/0/1/my account name/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', 'mysql.scentfromheavencandles.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'my login name');

define('DB_SERVER_PASSWORD', 'my password');

define('DB_DATABASE', 'scentf');

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

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

?>

 

catalog/admin/includes/configure.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.scentfromheavencandles.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.scentfromheavencandles.com');

define('HTTPS_CATALOG_SERVER', 'https://secure1.hostsave.com/ssl/my account name');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/nfs/cust/3/0/1/my account name/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/nfs/cust/3/0/1/my account name/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/nfs/cust/3/0/1/my account name/catalog/'); // absolute path required

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', 'mysql.scentfromheavencandles.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'my account name');

define('DB_SERVER_PASSWORD', 'my password');

define('DB_DATABASE', 'scentf');

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

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

?>

 

 

Thanks alot

Link to comment
Share on other sites

hey dan,

 

i'd try changing these lines in catalog/includes/configure.php:

 

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

define('HTTPS_COOKIE_DOMAIN', 'https://secure1.hostsave.com/ssl/my account name/');

define('HTTP_COOKIE_PATH', '/cookies/');

define('HTTPS_COOKIE_PATH', '/cookies/');

 

to:

 

define('HTTP_COOKIE_DOMAIN', 'scentfromheavencandles.com');

define('HTTPS_COOKIE_DOMAIN', 'secure1.hostsave.com/ssl/my account name/');

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

define('HTTPS_COOKIE_PATH', '/catalog/');

 

pete

Link to comment
Share on other sites

Ok did that and nothing still just doing a big loop. I add a product and it shows up. I go to checkout and it takes me to the login page. When I log in it takes me back to the main page as a guest.

 

:wacko: This has really got me frustrated.

Link to comment
Share on other sites

Try this

 

define('HTTP_SERVER', 'http://www.scentfromheavencandles.com');

define('HTTPS_SERVER', 'https://secure1.hostsave.com/ssl/scentf/');

 

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

 

//DOMAIN not URL

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

define('HTTPS_COOKIE_DOMAIN', 'secure1.hostsave.com');

 

//PATH the directory part after the domain not '/cookies/'

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

define('HTTPS_COOKIE_PATH', '/ssl/scentf/catalog/');

 

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

define('DIR_WS_HTTPS_CATALOG', '/ssl/scentf/catalog/');

Link to comment
Share on other sites

nope just keeps going round and round. Nothing works I can see everything all pages load but after login it just goes back to the main screen as a guest.

 

I am so frustrated now I am just pulling my hair out

Link to comment
Share on other sites

I just made the changes suggested at

http://www.creloaded.com/modules.php?name=...viewtopic&t=627

 

can't tell if it worked yet, i have always been able to go through the entire purchase without a problem. But every 3 out 10 customers are having problems - I'm just glad their letting us know about it.

 

Hope this helps for the both of us ;)

Link to comment
Share on other sites

Hey,

 

I am having the same problem, has anyone figured it out yet. I am not getting the problem when I am doing it myself but when some of my customers are doing it they are getting the same problem.

 

I need to get this sorted asap.

 

I am using db based sessions instead of cookies.

 

 

Cheers,

 

Luke

Link to comment
Share on other sites

Hi,

 

You should not play with configure, but rather change admin settings to:

 

Force Cookie Use - True

Recreate Session - False

 

The problem comes from browser, and its level of privacy settings.

 

I hope it will help.

Rgs.

Link to comment
Share on other sites

I am having a similar problem.

When I login I get a message saying "you are about to be directed to a connection that is not secure"

It takes me back to my none ssl site and with "Error: No match for E-Mail Address and/or Password." BUT it shows I am loged in now.

When I go to checkout it says I am not loged in.

 

It must be a cookie problem

Link to comment
Share on other sites

  • 2 weeks later...

Hi Guys,

I am a newb at this but I have got my shopping site up and running and it all looks sweet, but I am having the exact same problem as first mentioned. When I add something to my cart it takes me to my shopping cart and says Your Shopping Cart is empty! When I register as a customer it accepts registration and I have checked the table in the DB and my details are there, which suggests to me that it is a cookie problem. What makes it worse is I am only setting it up on my local machine (localhost) which should make it easier. I have tried every combination in the includes/configure.php file with no luck. I would be really grateful if someone could help me out. :blink:

 

Thanks in advance

 

Adam

Link to comment
Share on other sites

In your catalog/admin/includes/configure.php and catalog/includes/configure.php(near the bottom) try changing this:

 

 

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

 

 

to this:

 

 

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

 

Jerry

Link to comment
Share on other sites

Having the same issue. SSL is working across the board, no problems with items diaspearing from shopping cart, just this F&*^$ error "Error: No match for E-Mail Address and/or Password." but yet the user gets logged in.

 

Beers are on me for whoever figures this one out!

Link to comment
Share on other sites

:lol:

Fixed It....

 

In the file catalog/includes/classes/message_stack.php

 

look for the line:

 

$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message);

 

and simply comment it out:

 

//$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message);

 

Hope this helps!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...