Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] form_validation fails when I try to run it.
#1

[eluser]GSV Sleeper Service[/eluser]
error message :

An Error Was Encountered
Unable to load the requested language file: language/form_validation_lang.php

why is it looking for language/form_validation_lang.php?
I have set the default language in config.php to
Code:
$config['language'] = "english";
it should be looking for language/english/form_validation_lang.php

any idea what's going wrong?

update : a colleague had made MY_Language.php and forgot to tell anyone else about it!
#2

[eluser]xwero[/eluser]
That is why companies need version control Smile
#3

[eluser]GSV Sleeper Service[/eluser]
it's in SVN, I updated this morning but clearly wasn't paying attention.
also, it's quite a misleading error. the language loader will look in APPPATH.'language/'.$idiom.'/'.$langfile and then BASEPATH.'language/'.$idiom.'/'.$langfile, so really the error message should be
Code:
show_error('Unable to load the requested language file: language/'.$idiom.'/'.$langfile);
I've just noticed that this a couple of lines below the show_error call
Code:
log_message('error', 'Language file contains no data: language/'.$idiom.'/'.$langfile);
so I assume someone just forgot to update the error message.




Theme © iAndrew 2016 - Forum software by © MyBB