Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

instal help : same old problem


vphonsa

Recommended Posts

Posted

It seems that quite a bit of people have been facing this problem.

 

I get the following error message:

 

Warning: main(/catalog/includes/include_once.php) [function.main]: failed to create stream: No such file or directory in C:phpwebcatalogincludesapplication_top.php on line 163

 

Warning: main() [function.main]: Failed opening '/catalog/includes/include_once.php' for inclusion (include_path='.;c:php4pear') in C:phpwebcatalogincludesapplication_top.php on line 163

 

Fatal error: Call to undefined function: tep_db_connect() in C:phpwebcatalogincludesapplication_top.php on line 166

 

I have set the proper permissions and the file is present in "/catalog/includes/include_once.php" path.

 

Please advice what to do.

 

Thanks

 

Vphonsa

Posted

I think the path is incorrect... make sure that you don't have a trailing slash at the end of your server path in application_top.php....

 

If you are just setting up osCommerce I would recommend that you download and install version 2.2-MS1 rather than version 2.1 :shock:

Posted

I appreciate the reply

 

Here are a few line from application_top.php. Please see if you can find something wrong.I am absolutely novice to php so you might find something stupid that I have done

 

<?

if (file_exists('/catalog/includes/local/configure.php')) {

include('/catalog/includes/local/configure.php');

if ((!defined(CONFIGURE_STATUS_COMPLETED)) && (CONFIGURE_STATUS_COMPLETED != '1')) { // File not read properly

die('File configure.php was not found or was improperly formatted, contact webmaster of this domain.<br>The configuration file in catalog/includes/local/configure.php was not properly formatted.<br> <br>Please add the following to that file:<br> <br>define('CONFIGURE_STATUS_COMPLETED', '1');');

}

}

 

// for internal use until final v1.0 version is ready

define('PROJECT_VERSION', 'Preview Release 2.1');

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://localhost');

define('HTTPS_SERVER', 'https://localhost');

define('ENABLE_SSL', 1); // ssl server enable(1)/disable(0)

define('DIR_FS_DOCUMENT_ROOT', '/');

define('DIR_FS_LOGS', '/usr/local/apache/logs/');

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

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

define('DIR_WS_INCLUDES', '/catalog/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_PAYMENT_MODULES', DIR_WS_MODULES . 'payment/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

Thanks

 

Vphonsa

Posted

Try this:

 

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

Posted

Alright folks

 

I'll upgrade to the newer version tonight and then let's see what happens

 

Thanks

 

Vphonsa

Posted

Hi

I now have the latest version.

 

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

Try this...

 

define('STORE_SESSIONS', 'mysql');

Posted

Hi Folks

 

Thanks for all your suggestions and help.I have finally been able to make it work for me on my localhost.

 

Vphonsa

Archived

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

×
×
  • Create New...