Forums / Installing on a Linux/Unix Server / Log in and Log out from main page

Log in and Log out from main page

Locked

Started by gardengate on 6 Sep 2006, 6:38 PM · Views: 2,649

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Sep 2006, 6:38 PM
#1
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Log in and Log out from main page

I do not know if this is a true bug but it happen to me consistently with 2 different computers and connections (At work Win NT 2000 and T1 line hook up) at home (Win XP - Cable modem).
If I log In or out from the main page using the** top links **or log out I get an error *HTTP 404 this page cannot be dysplayed *(It will load Okay if I refresh or hit back).
This does not happen if I was loging in while I added a product to cart (with session) Thank god!
You can test it on my site https://www.findaflorist.org/sendflowers create whatever Account and try to duplicate it.
Thanks

6 Sep 2006, 8:01 PM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Log in and Log out from main page

I just made an account. It instantly happened upon attempted log out.

You have the double store in the URL issue, SSL configuration problem. Maybe this will help;
http://www.zen-cart.com/forum/showthread.php?t=42266

My email for the test account was [email protected], my password is "tester"... safe to delete.

No bug. :)

6 Sep 2006, 8:59 PM
#3
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Log in and Log out from main page

That's it you are ssmart I had the /cart Direct/ define at the top level for https and not for http that I defined it at the Directory level I did them both at the top level and I no longer see error. You guys are GENIUS

Example If anyone has similar problem:
Old wrong way
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
** define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'https://www.mysite.com/store);**

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
** define('DIR_WS_CATALOG', '/store');
define('DIR_WS_HTTPS_CATALOG', '/');**

Corrected to:
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
** define('HTTP_SERVER', 'http://www.mysite.com/store');
define('HTTPS_SERVER', 'https://www.mysite.com/store');**

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
** define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');**

Thanks for your help.

7 Sep 2006, 12:09 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Log in and Log out from main page

Be a better idea to set these correctly:

define('HTTP_SERVER', 'http://www.mysite.com/store');
define('HTTPS_SERVER', 'https://www.mysite.com/store');

Change to:

define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'https://www.mysite.com');

Then change:

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

To read:

define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Sep 2006, 2:43 PM
#5
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Log in and Log out from main page

Thanks I corrected the config.php at root/include
Do I need to do the same for the admin/include
currently it is
define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'https://www.mysite.com/store');
define('HTTP_CATALOG_SERVER', 'http://www.mysite.org');
define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com/store');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/mysite.com/admin/');
define('DIR_WS_CATALOG', '/mysite.com/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

7 Sep 2006, 5:07 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Log in and Log out from main page

Yes - follow similar logic for the admin file

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.