Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin error file include prob


orbital

Recommended Posts

Hi,

 

Ive just installed oscommerce the install went fine the catalog appears fine but i have a prob with the admin.

 

Ive looked through the forum and found several having simlair probs but still not been able to get it fixed..

 

the error is:

 

Warning: main(includes/languages/english/): failed to open stream: No such file or directory in C:\Xitami\web\claymore\admin\includes\application_top.php on line 133

 

Warning: main(): Failed opening 'includes/languages/english/' for inclusion (include_path='.;c:\php4\pear') in C:\Xitami\web\claymore\admin\includes\application_top.php on line 133

 

Yup you seen it before.. but i just cant get it going.. :( heres my config files..

 

includes\configure.php

 

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://192.168.1.102'); // 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('HTTP_COOKIE_DOMAIN', '192.168.1.102');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/claymore/');

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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', 'C:/Xitami/web/claymore/');

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

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'claymore');

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

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

?>

 

and -

 

admin\includes\configure.php

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://192.168.1.102'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://192.168.1.102');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'C:/Xitami/web/claymore/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/claymore/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'C:/Xitami/web/claymore/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'C:/Xitami/web/claymore/'); // absolute path required

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'claymore');

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

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

?>

 

also i should add that line 133 in application_top is:

 

include(DIR_WS_LANGUAGES . $language . '/' . $current_page);

 

Ok and am running it on win xp, xitami server, php 4.3, mysql.. any other info you need let me know.. all the files do exist... aslo i have all files in the claymore folder which is my root for this.. also its oscommerce-2.2ms2..

 

Thanks for any help.. :)

 

David..

Link to comment
Share on other sites

When you are running on your local computer, localhost may work better than the IP address. This goes for running on a local server, if you have that set up, but probably not since you put it on XP. Your site configuration would then be something like:

 

 define('HTTP_SERVER', 'http://localhost/claymore'); // 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('HTTP_COOKIE_DOMAIN', 'localhost/claymore');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/');

 

with appropriate changes to admin/includes/configure.php.

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

When you are running on your local computer, localhost may work better than the IP address. This goes for running on a local server, if you have that set up, but probably not since you put it on XP. Your site  configuration would then be something like:

 

<snip>

 

with appropriate changes to admin/includes/configure.php.

 

Hey, Thanks for your reply..

 

I made those changes i just did a new install and changed it for the localhost.. but that didnt help still same prob..

 

also i notice there is a prob with the catalog, which is the same prob asked about by someone else here

with the

"Error!

 

Unable to determine the page link!" at bottom

 

 

Any other suggestions? Thanks

 

David

Link to comment
Share on other sites

I use Xitami for offline testing. You should use either http://localhost or http://127.0.0.1 for the http_server address, and not what you are using.

 

define('HTTP_COOKIE_DOMAIN', 'localhost');

 

or

 

define('HTTP_COOKIE_DOMAIN', '127.0.0.1');

 

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

 

If you still can't get things to work then it will likely be a permissions problem on the 'english' folder.

 

Vger

Link to comment
Share on other sites

:)

 

Hey thanks for your help, what i decided to to in the end.. was reinstall xitami, php and install the latest version of mysql, set it up with the localhost as use said.. and all working find with no probs now.. so thanks for your help..

 

ill go mess around with it now.. see how long it takes for me to break it! .. lol..

 

David..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...