Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Fatal error: Failed opening required 'includes/languag


berzerko

Recommended Posts

I just intalled oscommerce last week and not have been able to get it to run. I get the following errors:

 

Warning: main(includes/languages/.php) [function.main]: failed to create stream: No such file or directory in /Library/Apache2/htdocs/catalog/includes/application_top.php on line 243

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/.php' (include_path='.:/Library/PHP4/lib/php') in /Library/Apache2/htdocs/catalog/includes/application_top.php on line 243

 

The code for this section of application_top.php is as follows.

// 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($HTTP_GET_VARS['language']);



   if (!isset($HTTP_GET_VARS['language'])) $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 it is trying to follow my directory down. instead of //127.0.0.1/catalog/includes/application_top.php. but I am not sure if this would make a difference anyway.

 

-berzerko

Link to comment
Share on other sites

I started trying to find the exact line by adding line spaces. It turns out that this line of code is where the error is marked at:

  require(DIR_WS_LANGUAGES . $language . '.php');

I am having a difficult time trying to find out what is going on does anybody have a clue?

 

-berzerko

Link to comment
Share on other sites

I've just started getting the same error too, having had the site running fine. I'd just installed the main categories contribution.

Since I only have one language on the site, I'm going to try commenting out this bit of code.

Fingers crossed!

Link to comment
Share on other sites

  • 2 weeks later...

Did anyone ever find a resolution to this? I setup oscommerce on one machine and it worked fine, I set it up on another and I get these same error messages:

 

*-*-*-*-*-*-*-*-*-*-*-*

Warning: main(includes/languages/.php) [function.main]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/username/catalog/includes/application_top.php on line 265

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /usr/local/apache/htdocs/username/catalog/includes/application_top.php on line 265

*-*-*-*-*-*-*-*-*-*-*-*

 

I was getting this on the admin and catalog, but I reinstalled and now I just get it on the catalog. From this "includes/languages/.php" it seems that there is no default langauge. Any help would be great.

 

Thanks,

Jonathan Duncan

Jonathan Duncan

JKD Web Magic

Web Site Hosting and Design

http://www.jkdwebmagic.com/

Link to comment
Share on other sites

OSCommerce Staff should fixed it or show how to fixed these errors ????

Now My pages is not active ! :cry: :cry: :cry:

A Newbie comes from Vietnam. Want to learn more and more about this world

Link to comment
Share on other sites

OSCommerce Staff should fixed it or show how to fixed these errors ????

Now My pages is not active ! :cry: :cry: :cry:

There are no 'OSCommerce Staff', just people who donate their free time to work on OPEN SOURCE code which you then get to uuse for free.

 

I fixed it by uploading copies of application_top.php & default.php from before I started geting the error & then made the changes I had made again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...