adresources Posted November 16, 2007 Posted November 16, 2007 Just installed osCommerce-2.2rc1 and it said it was successful. I took care of all the chmds pre-install and so on. But when I try to access the Catalog or Admin section I get the following message... Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/poster-resourcescom/catalog/includes/application_top.php on line 288 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:../PEAR-1.1') in /usr/local/apache2/htdocs/poster-resourcescom/catalog/includes/application_top.php on line 288 I've looked at older posts but not sure if those are the same issue or not. Thanks for any help I can get
adresources Posted November 16, 2007 Author Posted November 16, 2007 I just did a fresh install and still get the same error???
Gauravs Posted November 16, 2007 Posted November 16, 2007 That is because somewhere you have messed up the languages .. .thus application_top.php is not able to get 'english.php' or spanish.php, and instead it is only getting includes/languages/.php instead of includes/languages/english.php. How did you run install? Any changes made, especially for languages? Code below is used for specifying language -- and that is where something has gone missing.. you ought to narrow down, using echo to check where does the problem originate from. // 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'); Best Regards,Gaurav
adresources Posted November 16, 2007 Author Posted November 16, 2007 first install was from the zipped files from the osCom site that I uploaded by way of FTP and got the messages above. So did a complete new install from my host control panel and got "New Installation...osCommerce Configuration...The configuration was successful!" But now, when I click "Catalog" I'm taken to "Parse error: syntax error, unexpected T_STRING in /usr/local/apache2/htdocs/poster-resourcescom/store/includes/configure.php on line 16" And, when I click on "Admin. Tool" I'm taken to "Parse error: syntax error, unexpected T_STRING in /usr/local/apache2/htdocs/poster-resourcescom/store/admin/includes/configure.php on line 17"
adresources Posted November 16, 2007 Author Posted November 16, 2007 i've even gone back and checked permisions???
adresources Posted November 20, 2007 Author Posted November 20, 2007 OK...more info... I installed osComm on a different server and it installed fine and works fine. I've noticed that on the server where the Application works the MySQL database has 47 tables but on the server where the Application doesn't work there are only 27 tables. I've tried importing the extra tables from the working to the non-working but have a syntax error...the working version is on a slightly newer version of MySQL (4.1.22 versus 4.1.12) My question is, would the missing tables keep osComm from working and if so how the heck can I get the tables in there?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.