sdyerco Posted January 6, 2011 Share Posted January 6, 2011 I just installed oscommerce-2.3.1, i was able to access the catalog directory a minute ago but could not get to the administration pages. i now cannot access either and am getting the following: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 279 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /catalog/includes/application_top.php on line 279 the file is there and am not sure what to do next Link to comment Share on other sites More sharing options...
sdyerco Posted January 7, 2011 Author Share Posted January 7, 2011 I just installed oscommerce-2.3.1, i was able to access the catalog directory a minute ago but could not get to the administration pages. i now cannot access either and am getting the following: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 279 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /catalog/includes/application_top.php on line 279 the file is there and am not sure what to do next Link to comment Share on other sites More sharing options...
sdyerco Posted January 7, 2011 Author Share Posted January 7, 2011 Ok I have totally uninstalled and started again from scratch going through the Documentation pdf supplied in the oscommerce-2.3.1 download. I cannot access the store by going to http://www.domain.com/catalog. I get the below error: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 279 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /catalog/includes/application_top.php on line 279 I cannot access the admin pages either, i get the below error: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /catalog/admin1/includes/application_top.php on line 167 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /catalog/admin1/includes/application_top.php on line 167 with the similarity in the error messages their is something wrong with the 'lanquages' setup and i cannot figure it out. Any help would be greatly appreciated Link to comment Share on other sites More sharing options...
1nikkie1 Posted March 25, 2011 Share Posted March 25, 2011 Im having the exact same problem with the languages. Have you already resolved it? The help would be highly appreciated!! Many thanks Link to comment Share on other sites More sharing options...
acostajulian Posted April 1, 2011 Share Posted April 1, 2011 Hi, I solved that problem in my website, I got that error when I installed a new languaje, and the problem was solved just uploading all the files into the correct directories. Regards! Link to comment Share on other sites More sharing options...
oxwivi Posted March 24, 2012 Share Posted March 24, 2012 Hi, After a long and arduous battle against PHP and the like for the initial modifications of my set up, everything worked fine, and we called a truce being happy with how everything turned out. I've been spending my days peacefully using Easy Populate until a few minutes ago when something about the languages went up in arms again. I was just about to upload another CSV file for EP, and I was hit with the call to arms exactly as the OP described it. Please help me as I am a pacifist and have no idea how to deal with the race known as PHP. Link to comment Share on other sites More sharing options...
spooks Posted March 24, 2012 Share Posted March 24, 2012 There can be a number of causes for this, what is happening is the language is not being set, so where the code is trying to access the language folder it refers to languages/.php instead of say languages/english.php (for many) one cause is a server upgrade and the use of depreciated php keywords in your source code, ask your host if your version of php has changed. The php keywords you must change are : $HTTP_GET_VARS becomes $_GET $HTTP_SERVER_VARS becomes $_SERVER also $HTTP_POST_VARS should be $_POST Another solution & possibly the easiest for now, in admin/includes/application_top.php and in includes/application_top.php immediately after (on the next line): // set the language add: $language='english'; Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
oxwivi Posted March 25, 2012 Share Posted March 25, 2012 Thanks for the response. Yes, I think it is because of server issues as my test site based on the same server also went down the same way. About the solutions, do I most of the PHP files have that _VARS line? I think I need this solution since new rebels joined the ranks: Warning: include(includes/languages/english/modules/boxes/bm_categories.php) [function.include]: failed to open stream: Permission denied in /home/mos85/public_html/includes/classes/osc_template.php on line 86 Warning: include() [function.include]: Failed opening 'includes/languages/english/modules/boxes/bm_categories.php' for inclusion (include_path='.:/usr/local/php53/pear') in /home/mos85/public_html/includes/classes/osc_template.php on line 86 Warning: include(includes/modules/boxes/bm_categories.php) [function.include]: failed to open stream: Permission denied in /home/mos85/public_html/includes/classes/osc_template.php on line 87 Warning: include() [function.include]: Failed opening 'includes/modules/boxes/bm_categories.php' for inclusion (include_path='.:/usr/local/php53/pear') in /home/mos85/public_html/includes/classes/osc_template.php on line 87 Fatal error: Class 'bm_categories' not found in /home/mos85/public_html/includes/classes/osc_template.php on line 90 What files do I need to change? Link to comment Share on other sites More sharing options...
spooks Posted March 25, 2012 Share Posted March 25, 2012 Thats saying you have a folder permissions issue, but it looks like your using a local PC copy of the site but are still trying to access server files from that. If so check you have modified your configure files for your local copy. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
oxwivi Posted March 25, 2012 Share Posted March 25, 2012 I have nothing like a local copy. The test site resides on a free server with cPanel so does the live one. Everything starting to unzipping the osC to modifying files were done with cPanel's editor (and the copy for the live site was done from scratch instead of adapting from test site). That said, how do I reset the files that says where the files are saved? And again, does all the PHP files _VARS line? Link to comment Share on other sites More sharing options...
spooks Posted March 25, 2012 Share Posted March 25, 2012 osC 2 has $HTTP_GET_VARS and $HTTP_SERVER_VARS throughout, simply use a standard editor to do a search/replace did you try the application_top.php change? You edit the includes/configure.php & admin/includes/configure.php files whenever you move a site Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
tamem Posted June 26, 2012 Share Posted June 26, 2012 There can be a number of causes for this, what is happening is the language is not being set, so where the code is trying to access the language folder it refers to languages/.php instead of say languages/english.php (for many) one cause is a server upgrade and the use of depreciated php keywords in your source code, ask your host if your version of php has changed. The php keywords you must change are : $HTTP_GET_VARS becomes $_GET $HTTP_SERVER_VARS becomes $_SERVER also $HTTP_POST_VARS should be $_POST Another solution & possibly the easiest for now, in admin/includes/application_top.php and in includes/application_top.php immediately after (on the next line): // set the language add: $language='english'; Thank you, you save me!! The second solution worked for me, instead of "english" naturally I changed It for my default languages, which was "espanol" :D!!! thnks Link to comment Share on other sites More sharing options...
johnnyfittizio Posted June 7, 2013 Share Posted June 7, 2013 I can reply to this post? Regarding the second solution, what i have to do if i have the site in three languages? English, latvian and russian? Thank you! Link to comment Share on other sites More sharing options...
burt Posted June 7, 2013 Share Posted June 7, 2013 http://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_3#upg18 and http://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_3#upg19 Link to comment Share on other sites More sharing options...
johnnyfittizio Posted June 7, 2013 Share Posted June 7, 2013 i am currently setting up a copy of the site to 2.3.1 (and upgrading the copy to 2.3.2. and then 2.3.3 on the copy before upgrading the real site) i am getting that issue moving the site on another host i have perhaps to add variables for latvian and russian? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.