Weird language problem

SlackerX <[email protected]> 12 Sep 2003 13:19:06 -0000
Newsgroups gmane.comp.web.oscommerce.general
Message-ID <24d5188e3b89aaf3ba70b967cafac3cd@osCommerce-Forums>
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=228369#228369
----------------------------------------------------------------

After searching for about two weeks on what may be causing this, and finding no answers...  Figured someone here had a quick answer.

This error happens on the Admin side of things.  It is an inconsistent error and I am not able to re-create it.  It happens whenever it feels like it basically. :? 

Fatal error: Failed opening required 'includes/languages/engli' (include_path='.:/usr/local/lib/php') in /home/XXXX/XXXXX/XXXX/admin/includes/application_top.php on line 239

Below is the code from line 226 to 239 of my admin application_top.php.
[code]// language
  require(DIR_WS_FUNCTIONS . 'languages.php');
  if ( (!$language) || ($HTTP_GET_VARS['language']) ) {
    if (!$language) {
      tep_session_register('language');
      tep_session_register('languages_id');
    }

    $language = tep_get_languages_directory($HTTP_GET_VARS['language']);
    if (!$language) $language = tep_get_languages_directory(DEFAULT_LANGUAGE);
  }

// include the language translations
 require(DIR_WS_LANGUAGES . $language . '.php');
[/code]

This error started happening approx. a week after installing two mods (Affiliate and Ad-Tracker).  Although I went through each one and could not find where this would affect the language part of the admin.

I'm using 2.2MS1, the only language the site supports is English at the moment so that is the only one chosen in Admin.

Any and all help, comments, suggestions and insults welcome. :lol: 

Cheers,
JD