didn't install the language files lang-xxx.php (like language/lang-english.php), or
you cannot connect to the database, so that the value of the default language could not be set and is empty (and that's why you get an error about lang-.php, instead of lang-english.php, or
lang-french.php etc.). Try the small test script (see Call to undefined function: message die in db.php line 88):