ShardellH Posted August 22, 2015 Share Posted August 22, 2015 Hello, I've completed the install but whenever I try to go to my admin page I receive the below messages. Please help!! Many thanks in advance and I look forward to your reply. Warning: require(includes/languages/.php): failed to open stream: No such file or directory in public_html/catalog/Admin/includes/application_top.php on line 167Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /public_html/catalog/Admin/includes/application_top.php on line 167Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/public_html/catalog/Admin/includes/application_top.php on line 167 Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
MrPhil Posted August 22, 2015 Share Posted August 22, 2015 Exactly what version of osC are you trying to install? That request for "languages/.php" is missing a value for the $language variable (else it would be "languages/english.php", for example). That suggests you are trying to install a very old version of osC. You should be installing osC 2.3.4. Link to comment Share on other sites More sharing options...
Gauravs Posted August 23, 2015 Share Posted August 23, 2015 Hi Sharedell, You should place echo commands on (Take a backup before you modify anyfile... ) application_top.php, particularly to find out the value of $language variable as shown below: // 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']; echo "Language: ".$language."</br>Language Id: ".$languages_id; } If output on screen Language: Language Id: comes up as null or blank... trace back to find out why language.php is not able to assign default language to your installation. The code above is from OSC2.3.4 .. line 112. It may be different for you if your version is different. As MrPhil has pointed out, application_top.php is throwing the error because the URL being fetched in require command is coming up as require(includes/languages/.php)instead of require(includes/languages/english.php) Best Regards,Gaurav Link to comment Share on other sites More sharing options...
MrPhil Posted August 23, 2015 Share Posted August 23, 2015 I wouldn't bother with debugging application_top until you've confirmed that you are running the current version (2.3.4). If you are running 2.3.4, this bug should have been fixed one or two releases ago (2.3.3.something). In that case, something may have overwritten your stock application_top.php file(s) with older versions. Was this a "template" or other modified package, or is it a straight 2.3.4 install off this site's repository? I wouldn't be surprised if some vendors have the audacity to keep selling osC 2.2-based "templates" -- if this is your case, return it and demand your money back. It's incompatible with recent PHP releases. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.