Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install : Help Me


vphonsa

Recommended Posts

Posted

Hi

 

 

Please take a look at the following code from configure.php in the catalog folder. I am using windows XP and the document root for my php pages is C:phpweb.I know I am screwing something is the paths. The error message that I get is undefined method "tep_session_name('osCsid')" is being called in application_top.php in the following lines

 

require(DIR_WS_FUNCTIONS . 'sessions.php');

tep_session_name('osCsid');

 

 

If I Comment it out the next similar line gives error so I think it can't find the sessions.php. Please take a look at the following code.

 

 

<?php

/*

$Id: configure.php,v 1.13 2003/02/10 22:30:51 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', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

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

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

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

define('DIR_WS_IMAGES', 'http://localhost/catalog/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'http://localhost/catalog/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

//define('DIR_WS_FUNCTIONS', 'http://localhost/catalog/includes/functions/');

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_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['C:phpweb']); // 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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'vikas');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'oscommerce');

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

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

 

 

I appreciate your help.

 

VPhonsa

Posted

Why are you doing this?

 

 

 

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

define('DIR_WS_IMAGES', 'http://localhost/catalog/images/'); 

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 

define('DIR_WS_INCLUDES', 'http://localhost/catalog/includes/');

 

Should be:

 

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

define('DIR_WS_IMAGES', 'images/'); 

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 

define('DIR_WS_INCLUDES', 'includes/');

 

You've done this throughout. Change it back to what it was originally (like in my example) and you should be ok.

Posted

Well Sorry I posted the modified copy of the code.

 

I added the path with localhost throughout to see if it works this was cause it was not working how it was there originally. Like it wasn't working for '/catalog/' so I thought lets try the full path.

 

If I write a small test program and place it in my "C:phpweb" folder which is my DOCUMENT ROOT, the server can successfully access that page.

 

But doesn't work at all with oscommerce pages.

 

Vphonsa

Archived

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

×
×
  • Create New...