TheGameMen Posted December 28, 2005 Share Posted December 28, 2005 Hi There, I just installed my shop and i fixed the errors wich were in red on the top. The shop worked fine. Now i wanted to add the Dutch language. Thats the mistake i made , now i get this : Warning: main(includes/languages//catalog/includes/languages/engl.php): failed to open stream: No such file or directory in /var/www/virtual/comp-sys.nl/htdocs/catalog/includes/application_top.php on line 286 Fatal error: main(): Failed opening required 'includes/languages//catalog/includes/languages/engl.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/comp-sys.nl/htdocs/catalog/includes/application_top.php on line 286 PLEASE Someone help me how to fix this I tried myself but no results !! I really do not know what to do Season Greetings, Freek Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2005 Share Posted December 28, 2005 it sounds like your language definition is set wrong. check DIR_WS_LANGUAGES in includes/configure.php - i am assuming you have got an extraneous catalog/includes in there. Link to comment Share on other sites More sharing options...
♥Vger Posted December 28, 2005 Share Posted December 28, 2005 There is a Dutch language pack, and if this is installed what you should see is 'includes/languages/dutch.php, and not engl.php Vger Link to comment Share on other sites More sharing options...
TheGameMen Posted December 28, 2005 Author Share Posted December 28, 2005 Hi, Thank you all for your fast answers but it didnt solve it. This is my configure.php file: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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://www.comp-sys.nl'); // 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', 'www.comp-sys.nl'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); 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', '/var/www/virtual/comp-sys.nl/htdocs/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', 'shop'); define('DB_SERVER_PASSWORD', 'FSWS112'); define('DB_DATABASE', 'shop'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> thank you Freek Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2005 Share Posted December 31, 2005 In includes/appllication_top.php, after require(DIR_WS_CLASSES . 'email.php'); Verify the follofing code // set the language if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) { if (!tep_session_is_registered('language')) { tep_session_register('language'); tep_session_register('languages_id'); } include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.