Closed (fixed)
Project:
Content Management Filter
Version:
6.x-1.7
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2009 at 15:08 UTC
Updated:
4 Aug 2009 at 16:30 UTC
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');
}
Comments
Comment #1
seworthi commentedComment #2
nancydruYour fix was close, but not quite there. Thanks.
Comment #3
chadd commentedi 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"?
Comment #4
nancydruBy downloading the -dev version, where all fixes that are since the last release are found.