Guest Posted February 20, 2003 Share Posted February 20, 2003 Im getting error message when trying to log into the Admin part of shop... Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;c:php4pear') in d:wwwwww418cgi-bincatalogadminincludesapplication_top.php on line 203 This is from the application_top.php file below...... // include the language translations this is line 203 require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = split('?', basename($PHP_SELF)); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); } Any suggestions.... Thanks Steven Link to comment Share on other sites More sharing options...
Mark Russell Posted February 20, 2003 Share Posted February 20, 2003 I'd say its a bad setting in admin/incudes/configure.php Post the contents of that file for us to have a look... Mark Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2003 Share Posted February 20, 2003 Heres the context of the configure.php without the password and user name which i removed for security reasons... <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 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.urbachshop.ch'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://www.urbachshop.ch'); // eg, https://localhost - should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.urbachshop.ch'); define('HTTPS_CATALOG_SERVER', 'https://www.urbachshop.ch'); define('ENABLE_SSL', 'false'); // secure webserver for administration tool define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'd:/www/www418/cgi-bin'); // where the pages are located on the server define('DIR_WS_ADMIN', '/cgi-bin/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', 'd:/www/www418/cgi-bin/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/cgi-bin/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'd:/www/www418/cgi-bin/catalog/'); // 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', 'mysql1'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'true'); // use persisstent connections? define('STORE_SESSIONS', 'l'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
sloughwi Posted February 21, 2003 Share Posted February 21, 2003 I had this same problem when I tried to change servers. My mistake was taking only the structure of the DB not the data and structure. In other words, its a DB problem...though I'm not sure where. Does anyone know where in the DB the default language displayed is effected? Nothing Unreal Exists Link to comment Share on other sites More sharing options...
Obewanz Posted February 22, 2003 Share Posted February 22, 2003 Guys, You might want to do; SELECT * FROM configuration (using myphpadmin or similar) and see if you have a value set in the configuration key DEFAULT_LANGUAGE. I think OSC ships with a setting of 'en' but it could obviously be whatever ISO country code you needed. All of the record information is included below just in case you need to insert the missing record. (This one drove me batty for quite some time until I discovered the missing entry in the database :oops: .) CONFIGURATION_TITLE: Default Language CONFIGURATION_KEY: DEFAULT_LANGUAGE CONFIGURATION_VALUE: en CONFIGURATION_DESCRIPTION: Default Language CONFIGURATION_GROUP_ID: 6 SORT_ORDER: 0 LAST_MODIFIED: (blank field) DATE_ADDED: 12/21/2002 5:30:36 PM USE_FUNCTION: (blank field) SET_FUNCTION: (blank field) Hope this helps somebody out, I know I searched the board for quite a long time and never really found an answer to this one. :? Regards, Steve M The GraphicZoo check profile for web address Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.