Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

create account problem


Lee

Recommended Posts

Posted

I searched for the answer to this for an age ..but no luck

When trying to create an account i get this error :

Fatal error: Failed opening required 'includes/form_check.js.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:phpdevwwwcatalogcreate_account.php on line 26

 

form_check.js.php is in my includes folder i even copied it to these two C:/phpdev/php/includes;C:/phpdev/php/class' just to try, but no joy.Am i missing something obvious? maybe osc is not configured correctly?

 

thanks in advance

Posted

I'm not an expert at this but the fact that the error seems to be pointing to your own harddrive (C:) is obviously wrong.

 

In which case I would have thought you would have your configure.php files set up wrong but then I would also have thought you'd get loads more errors than just this one. Could you post you catalog/includes/configure.php file here and I'll see if I can spot anything.

Posted

Here is my configure.php file.I am using W2k so i had to change the name of the file, i chose configurex.php is this ok? DreamweaverMX could see the original configure.php file so i deleted it...now there is just configurex.php in both catalog/includes and catalog/admin/includes. I also tried reinstalling several times but the same problem arises.

I would appreciate if anyone could sort this for me.

 

 

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

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

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

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

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', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); // 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', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

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

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

?>

Posted

althougth I know nothing of w2k set-up and osc it look to me like you need to fill in several details on this file (and probably the admin/includes/configure.php aswell) have a look at mine

 

 define('HTTP_SERVER', 'https://www1.securesiteserver.co.uk/cctvcity'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://www1.securesiteserver.co.uk/cctvcity'); // eg, https://localhost - should not be empty for productive servers

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





 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required //(dj)thats what it read but fuks up when you do this

 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', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/fs/home/7/c/c/cctvcity/public_html/');

 define('DIR_FS_CATALOG', '/fs/home/7/c/c/cctvcity/public_html/');

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

 define('DB_SERVER_PASSWORD', 'password');

 define('DB_DATABASE', 'database');

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

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

 

IMO you will need to find out the missing details from your set-up from your ISP.

 

also please note in my set-up i have decided to have everything on SSL

Posted

Any other ideas on this problem are appreciated as i still haven't sorted it.

regards

lee

Posted

Have you had to make any changes to either of these files??? (form_check & create_account.php)

Posted

Also, I don't know if this will work, but you could try replacing:

 

<?php require('includes/form_check.js.php'); ?>

 

With:

 

<?php require(DIR_WS_INCLUDES . 'form_check.js.php'); ?>

Archived

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

×
×
  • Create New...