Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mis-generated links and database failure


Guest

Recommended Posts

Hey yall,

 

I just installed my store. It installed fine, but all the links that the php generates look like this:

http://www.circuschimera.com/catalog/insta...talog/index.php

(there is that extra "www.circuschimera.com/catalog/install/://" in there for folks who see it ellipsed)

The store is there, and I went through the installation again, careful of spots were the duplication could occur. The problem persists.

 

Meanwhile, the admin tool will not work either. It says "unable to connect to database server." WAs all that successful database work messages int eh installation not a sign that this was tested and working properly?

 

These are pretty noobish questions, but if I can get into the coding I will get out of your hair. Thanks for helping,

 

JD

Link to comment
Share on other sites

Post both your catalog/includes/configure.php file and your catalog/admin/includes/configure.php file here, minus db user name and password and we'll take a look at them.

 

Vger

Link to comment
Share on other sites

Here is the configure.php for the catalog. Names have been changed to protect the innocent; and I think that the DIR_FS_CATALOG field may be inccorect but I don't think that's what's causing the error. Should DIR_WS_HTTP_CATALOG non inlcude the domain? It occured to me that the index page could find pictures just fine even though it couldn't set up links correctly...

Am I doing something silly like putting this together in htdocs when I shouldn't be?

HTTP_SERVER should not be empty, but there's not much in it...?

Thanks for taking a look,

JD

 

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

define('HTTPS_SERVER', 'https://www1908.dulles19-verio.com'); // eg, https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', 'www.circuschimera.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', 'www.circuschimera.com/catalog/');

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

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', '/u/web/username/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', 'www.circuschimera.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'sesame');

define('DB_DATABASE', 'username');

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

It's difficult to help you when you change the names of pathways 'to protect the innocent'. You'll find the changes needed below - as best I can figure out from the code provided.

 

Vger

Here is the configure.php for the catalog.  Names have been changed to protect the innocent; and I think that the DIR_FS_CATALOG field may be inccorect but I don't think that's what's causing the error.  Should DIR_WS_HTTP_CATALOG non inlcude the domain?  It occured to me that the index page could  find pictures just fine even though it couldn't set up links correctly... 

Am I doing something silly like putting this together in htdocs when I shouldn't be?

HTTP_SERVER should not be empty, but there's not much in it...?

Thanks for taking a look,

JD

 

<?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.yourdomain.com');

  define('HTTPS_SERVER', 'https://www1908.dulles19-verio.com');

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

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

  define('HTTPS_COOKIE_DOMAIN', '');

  define('HTTP_COOKIE_PATH', '/');

  define('HTTPS_COOKIE_PATH', '');

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

  define('DIR_WS_HTTPS_CATALOG', '/username/ /');  //not sure about this - don't know what 'username' means

  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', '/u/web/username/catalog/'); //not sure about this path, check with your hosting company

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

  define('DB_SERVER_USERNAME', 'username');

  define('DB_SERVER_PASSWORD', 'sesame');

  define('DB_DATABASE', 'username');

  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

It's difficult to help you when you change the names of pathways 'to protect the innocent'.  You'll find the changes needed below - as best I can figure out from the code provided.

 

Vger

 

Sorry about that; I'm on shared hosting so some of the directory names are the same as my username. However, I added some of your suggestions and changed some stuff around, and now it works. There are still problems in the secure portions of the store, but I know where to work on those bad directions. Thanks a bunch Vger, if you're ever in the southwest US near our circus I'll snag you seats.

 

JD

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...