Guest Posted January 11, 2007 Share Posted January 11, 2007 Hi there I just installed a new instance of OsC on the server. The installation went all the way to the end without erros, but when you click on the catalog button you get the following message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/Q/W/E/QWERasdf7/html/shop/includes/application_top.php on line 285 It seems that it's not grabbing the .php file name, but only the extension -> languages/.php I just don't know what to change in the configure.php in order to make this work. Or maybe the problem belongs elsewhere? Any help would be trully appreciated thanks!!! Link to comment Share on other sites More sharing options...
davidinottawa Posted January 11, 2007 Share Posted January 11, 2007 Hi there I just installed a new instance of OsC on the server.The installation went all the way to the end without erros, but when you click on the catalog button you get the following message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/Q/W/E/QWERasdf7/html/shop/includes/application_top.php on line 285 It seems that it's not grabbing the .php file name, but only the extension -> languages/.php I just don't know what to change in the configure.php in order to make this work. Or maybe the problem belongs elsewhere? Any help would be trully appreciated thanks!!! so does line 264 - 285 of your application_top file look exactly like this : // 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'); } require(DIR_WS_LANGUAGES . $language . '.php'); Link to comment Share on other sites More sharing options...
davidinottawa Posted January 11, 2007 Share Posted January 11, 2007 so does line 264 - 285 of your application_top file look exactly like this :// 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'); } require(DIR_WS_LANGUAGES . $language . '.php'); oops =- i meant like this : // 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...
Guest Posted January 11, 2007 Share Posted January 11, 2007 Yes, it looks just like that... The issue might be some place else... thanks for your help so far Link to comment Share on other sites More sharing options...
davidinottawa Posted January 11, 2007 Share Posted January 11, 2007 Yes, it looks just like that... The issue might be some place else... thanks for your help so far no matter how you cut it - it is simply not accessing or creating the $language variable properly. This could be a server issue. Or it could be an OSC function issue. Are you sure this is in you classes directory : /includes/classes/language.php Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2007 Share Posted January 11, 2007 no matter how you cut it - it is simply not accessing or creating the $language variable properly.This could be a server issue. Or it could be an OSC function issue. Are you sure this is in you classes directory : /includes/classes/language.php Yeah, the file is there... I'll contact the hosting support thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.