AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: buddahboy on December 08, 2013, 06:55:07 PM

Title: Critical Error re language code - need help in fixing
Post by: buddahboy on December 08, 2013, 06:55:07 PM
Greetings,

Today I got the following error in message manager:

Error! Default language with code "en" is not available or disabled. Loading English language to keep system operating. Check your settings for default language. in /home/*****/public_html/core/engine/language.php on line 279


These are lines 276 - 280 but don't know how to proceed - would appreciate a hand please. 

// check if is code of enabled language
      if (!isset($languages[$lang_code])) {
         $lang_code = key($languages);
         $error = new AError('Error! Default language with code "' . $lang_code . '" is not available or disabled. Loading ' . $languages[$lang_code]['name'] . ' language to keep system operating. Check your settings for default language.');
         $error->toLog()->toDebug()->toMessages();

I have not had this error since launching, only happened today - site has been online since 11/26. 

Thank you in advance, as always I greatly appreciate the assistance received here. 

All the best
Ron
Title: Re: Critical Error re language code - need help in fixing
Post by: abolabo on December 09, 2013, 11:39:14 AM
hm...did you disabled english language on admin side?
Title: Re: Critical Error re language code - need help in fixing
Post by: buddahboy on December 09, 2013, 11:52:18 AM
Good Day Abolabo - no changes were made, no.  Shop has been working perfectly and this just cropped up.  I must say that this error has, so far, just shown up once - yesterday 2013-12-08 13:40:36

Do you have any suggestions or do you think it was just an isolated occurrence? 

Thanks much once more

Ron
Title: Re: Critical Error re language code - need help in fixing
Post by: abantecart on December 09, 2013, 10:54:03 PM
Check that English language was not disabled by accident.
Title: Re: Critical Error re language code - need help in fixing
Post by: buddahboy on December 09, 2013, 11:12:08 PM
Hello again abantecart - no, the english language is not disabled, checked it when i first noticed that message and checked it again.  This is a doozy ain't it? 

Thank you
Ron
Title: Re: Critical Error re language code - need help in fixing
Post by: buddahboy on December 14, 2013, 10:10:40 AM
Good day - I'm just following up on this with information in case it will be useful to somebody one day. 

This notification of an app error happened on 12/8 and has not reoccured since.  I think it may just be a fluke and not a permanent error.  Anyway, I've not seen any other errors to date - and it's been nearly one week. 

That's it - report over and out.

All the best and thanks
Ron