Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2006 at 16:09 UTC
Updated:
4 Jul 2006 at 10:15 UTC
Greetings,
I've found the following problem when developing multilingual site:
$locale = locale_initialize() is performed after module_init() in common.inc file.
module_init() function has somewhere a call of locale() function which tries to use global variable $locale. This variable is empty because has not been initialized yet.
Because of this cache_clear_all("locale:$locale") tries to clear cache entry with the cid = "locale:" which is incorrect.
Possible solution: call $locale = locale_initialize() BEFORE module_init() in common.inc file.
Comments
Comment #1
ardas commentedMy proposition to swap these two calls is wrong because locale_initialize() will not initialize any language if locale.module is not loaded by module_ini().
So, we've got into situation when each of 2 functions need the other one to work correctly...
Comment #2
beginner commentedsame comment as for http://drupal.org/node/69031 :
We have to make sure this bug doesn't exist in cvs, too.
The fix can then be backported to 4.7 and 4.6 later.
Comment #3
ardas commentedThis bug is rather critical. If it is fixed in CVS, ere you going to include it into 4.7.3 or further releases ?
Thank you.
Comment #4
beginner commentedThere is a good 4.7 branch maintainer, so if a fix is found, it will probably be backported.
The problem is the issue queue is long, and we need more developper willing to contribute to fix all issues...
Comment #5
killes@www.drop.org commentedThis is already fixed in both branches.
Comment #6
(not verified) commented