Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
locale.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2008 at 23:44 UTC
Updated:
19 Aug 2008 at 18:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentednote, this was part of SA-2008-044 for D6
Comment #2
Susurrus commentedThen duplicate of #280605: Apply SA-2008-044 fixes.
Comment #3
catchLooks like it was committed by itself.
Comment #4
catchThis broke the locale test: http://drupal.org/node/282340
Comment #5
pwolanin commentedthis broke the locale module test for D7 (and D6?)
Comment #6
pwolanin commentedAlso, the commit was apparently incomplete for D7 - the locale.inc part was missed: http://drupal.org/cvs?commit=126460
Comment #7
pwolanin commentedjust marked this issue duplicate: http://drupal.org/node/282340
Attached patch adds the code to locale.inc that was apparently missed in the commit AND fixes the test.
see: http://drupal.org/node/283201 and http://drupal.org/node/276153 for other patches for locale.module
Comment #8
cwgordon7 commentedUpon trying to install with this patch applied, I get the following error:
( ! ) Fatal error: Unsupported operand types in C:\Tools\wamp\www\drupal\stf\pwlocale\modules\locale\locale.module on line 536
Call Stack
#
Time
Memory
Function
Location
1
0.0094
464536
{main}( )
..\install.php:0
2
0.0191
680736
install_main( )
..\install.php:1163
3
1.9040
7005944
install_tasks( )
..\install.php:142
4
3.2185
10452440
theme( )
..\install.php:820
5
3.2187
10463024
call_user_func_array
..\theme.inc:645
6
3.2187
10463024
template_preprocess_maintenance_page( )
..\theme.inc:0
7
3.2782
10475688
drupal_get_js( )
..\theme.maintenance.inc:262
8
3.2782
10478264
locale_update_js_files( )
..\common.inc:2039
( )
Comment #9
pwolanin commentedodd- I don't get the same error. Are you installing as non-English? Why is locale module even enabled during install?
Comment #10
catchI don't know - probably the only way to ensure a translation will work if it's used? - but it makes the 'expert' install profile a bit crufty since I had to disable it as one of the profile tasks.
Comment #11
catchI can install fine, there's no test hunk in #7 and the test still has two failures without it though. Was that just missing from the patch?
I also got an obscure "tests not completed successfully" error the first time running tests, but it was fine the second time so will forget that for now unless it can be reproduced.
Comment #12
pwolanin commentedhmm, apparently I diffed wrong and didn't get the test hunk (and of course, I reverted those changes already). Ok, trying again.
Comment #13
pwolanin commentedmissed in the drop-down. Needs review.
Comment #17
cwgordon7 commentedUnable to reproduce the bug I had earlier with the new patch, in any case. Locale tests now pass with this patch. RTBC.
Comment #18
dries commentedCommitted to CVS HEAD. Thanks.