XaviGracia Posted December 27, 2005 Share Posted December 27, 2005 Hi !!! I think i have little mess with the language file and i'm getting this message when i try to access OSCommerce (both in admin or user mode) PHP Warning: main(includes/languages/.php): failed to open stream: No such file or directory in f:\inetpub\wwwroot\devir\catalog\admin\includes\application_top.php on line 131 PHP Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.;c:\php4\pear') in f:\inetpub\wwwroot\devir\catalog\admin\includes\application_top.php on line 131 Please, could someone tell me which files or registers i need to touch to put it the default languages in OSCommerce ??? (i'm afraid to reinstall because i lost one time all the configuration and i don't want to "repeat the experience" again... Thanks a lot in advance !!! Link to comment Share on other sites More sharing options...
♥Vger Posted December 27, 2005 Share Posted December 27, 2005 This looks like an issue with permissions on your folders in osCommerce. Check that all folders have permissions of 755 or 777. Vger Link to comment Share on other sites More sharing options...
XaviGracia Posted December 27, 2005 Author Share Posted December 27, 2005 I have checked it and the permissions are right... :-? The first time i used the admin tool it went well enough... I don't know why now is telling me this... I deleted some languages i don't use, but there was no problem at that moment... Maybe someone touch something... Oh, yes... I have just take a look at the portuguese shop and the portuguese shop (another instalation for another domain) it's also not working... The thing is that this line "Fatal error: main(): Failed opening required 'includes/languages/.php" makes me think that maybe there's no language defined... Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2005 Share Posted December 27, 2005 I have checked it and the permissions are right... :-? The first time i used the admin tool it went well enough... I don't know why now is telling me this... I deleted some languages i don't use, but there was no problem at that moment... Maybe someone touch something... Oh, yes... I have just take a look at the portuguese shop and the portuguese shop (another instalation for another domain) it's also not working... The thing is that this line "Fatal error: main(): Failed opening required 'includes/languages/.php" makes me think that maybe there's no language defined... Did you open the application_top file? // 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'); That is from my site. But I would think your error would be this part above in the application_top.php file? I'd open it with notepad and do a search for includes/languages/.php Link to comment Share on other sites More sharing options...
XaviGracia Posted December 27, 2005 Author Share Posted December 27, 2005 My application_top file is just like yours... // 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'); It seems like the $language variable is empty... A bit weird, not ??? Link to comment Share on other sites More sharing options...
XaviGracia Posted December 28, 2005 Author Share Posted December 28, 2005 Definitivaly it's a mess with the language configuration because the portuguese boss tell me that he was trying to change the english language for the portuguese and there was some kind of misconfiguration... Anyone knows how to put the default languages in the configuration ?? (new installation maybe ? (i hope not) ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.