Zen Cart Logo
Forums / General Questions / Customer Login and Checkout button not working

Customer Login and Checkout button not working

Locked

Views: 2,413

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Nov 2007, 12:45 AM
#1
fanderwald avatar

fanderwald

New Zenner

Join Date:
Nov 2007
Posts:
6
Plugin Contributions:
0

Customer Login and Checkout button not working

I have a problem where clicking on "log in" or the checkout button takes me to a "404 not found" page. For some reason it wants to look for the pages in cowgirlcookieco.com rather than the cowgirlcookie.com/shop directory where Zen-cart lives. I've looked at my configure.php files but I can't find anything wrong. Here's a sample of my admin/includes/configure.php:

define('HTTP_SERVER', 'http://cowgirlcookieco.com');
define('HTTPS_SERVER', 'https://cowgirlcookieco.com');
define('HTTP_CATALOG_SERVER', 'http://cowgirlcookieco.com');
define('HTTPS_CATALOG_SERVER', 'https://cowgirlcookieco.com');

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

// 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', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

Other links work and I can login to admin just fine. Thanks for your help.

Fabian

30 Nov 2007, 1:12 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Customer Login and Checkout button not working

Please post the includes/configure.php minus your password.

30 Nov 2007, 1:55 AM
#3
fanderwald avatar

fanderwald

New Zenner

Join Date:
Nov 2007
Posts:
6
Plugin Contributions:
0

Re: Customer Login and Checkout button not working

Here it is. Thanks!

<?php /** * dist-configure.php * * @package initSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: dist-configure.php 4271 2006-08-26 01:21:02Z drbyte $ * @private */ // 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://cowgirlcookieco.com'); define('HTTPS_SERVER', 'https://cowgirlcookieco.com/shop'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // 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', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/3037/domains/cowgirlcookieco.com/html/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'cart1_'); define('DB_SERVER', $_ENV{DATABASE_SERVER}); define('DB_SERVER_USERNAME', 'db3037'); define('DB_SERVER_PASSWORD', 'xxxxx'); define('DB_DATABASE', 'db3037_cart'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/3037/domains/cowgirlcookieco.com/html/shop/cache'); ?>
30 Nov 2007, 8:06 PM
#4
fanderwald avatar

fanderwald

New Zenner

Join Date:
Nov 2007
Posts:
6
Plugin Contributions:
0

Re: Customer Login and Checkout button not working

I "solved" the problem by changing the following code in includes/configure.php

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

to

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

This seems to have everything working fine. But I have a feeling something else is misconfigured if I had to make that change to get things working. I don't use SSL, and its disabled, so I don't know why it wants to use the DIR_WS_HTTPS_CATALOG definition.

Fabian

30 Nov 2007, 8:15 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Customer Login and Checkout button not working

Your changes were the correct course of action.

30 Nov 2007, 9:54 PM
#6
fanderwald avatar

fanderwald

New Zenner

Join Date:
Nov 2007
Posts:
6
Plugin Contributions:
0

Re: Customer Login and Checkout button not working

Thanks!

Fabian