node.inc give error if locale not enabled
seworthi - July 20, 2009 - 15:08
| Project: | Content Management Filter |
| Version: | 6.x-1.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If you install this version without "locale" on, you will get an error message about node.inc, line 27 ("locale_language_list" function not defined). I think this is due to locale not enabled and line 27 does not check if locale is on before calling the function. Below if my fix (wrapped the call around a if check statement.
if (module_exists('locale')) {
$lang_codes = array('' => t('Neutral')) + locale_language_list('name');
}

#1
#2
Your fix was close, but not quite there. Thanks.
#3
i just downloaded and upgraded to 1.7 and i'm getting this same error:
Fatal error: Call to undefined function locale_language_list() in node.inc on line 27
how should i fix if the OP fix was "not quite there"?
#4
By downloading the -dev version, where all fixes that are since the last release are found.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.