Last modified: 2012-06-12 12:38:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30089, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28089 - {{#babel:ku-Arab-5}} in a page breaks MediaWiki when extensions IndexFunction and Babel are installed
{{#babel:ku-Arab-5}} in a page breaks MediaWiki when extensions IndexFunction...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
IndexFunction (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Alex Z.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-17 01:44 UTC by Purodha Blissenbach
Modified: 2012-06-12 12:38 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Purodha Blissenbach 2011-03-17 01:44:47 UTC
In a testwiki, putting
{{#babel:ku-Arab-5}}
in a page, and selecting "Save" yields:

Fatal error: Cannot redeclare class SkinMonoBook in .../testwiki/phase3/skins/MonoBook.php on line 48

and selecting "Preview" yields:

Enne Fääler es opjefalle en dä Süntax vun ennem Befääl för de Datebank. Dat künnd_enne Fääler em Wikki-Projamm sin. De läzde Date_Bank_Befääl eß jewääse:

    SELECT in_from FROM `tst_indexes` WHERE in_namespace = '14' AND in_title = 'Testwiki:Metmaacher_kann_كوردي_(عەرەبی)' 

uß dä Funkzjohn: „IndexFunction::newFromTitle“. De Datebank mälldt dä Fääler: „1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)“.

Backtrace:

#0 .../testwiki/phase3/includes/db/Database.php(746): DatabaseBase->reportQueryError('Illegal mix of ...', 1267, 'SELECT in_from...', 'IndexFunction::...', false)
#1 .../testwiki/phase3/includes/db/Database.php(1051): DatabaseBase->query('SELECT in_from...', 'IndexFunction::...')
#2 .../testwiki/phase3/extensions/IndexFunction/IndexFunction_body.php(24): DatabaseBase->select('indexes', 'in_from', Array, 'IndexFunction::...')
#3 .../testwiki/phase3/extensions/IndexFunction/IndexFunction_body.php(150): IndexFunction::newFromTitle(Object(Title))
#4 [internal function]: IndexFunctionHooks::blueLinkIndexes(Object(SkinModern), Object(Title), Array, '????????????', Array, NULL)
#5 .../testwiki/phase3/includes/Hooks.php(237): call_user_func_array(Array, Array)
#6 .../testwiki/phase3/includes/Hooks.php(38): Hooks::run('LinkEnd', Array)
#7 .../testwiki/phase3/includes/Linker.php(211): wfRunHooks('LinkEnd', Array)
#8 .../testwiki/phase3/includes/Linker.php(1951): Linker->link(Object(Title), '????????????', Array, Array, 'broken')
#9 .../testwiki/phase3/includes/parser/LinkHolderArray.php(362): Linker->makeBrokenLinkObj(Object(Title), '????????????', '')
#10 .../testwiki/phase3/includes/parser/LinkHolderArray.php(238): LinkHolderArray->replaceInternal('<h2> <span clas...')
#11 .../testwiki/phase3/includes/parser/Parser.php(4469): LinkHolderArray->replace('<h2> <span clas...')
#12 .../testwiki/phase3/includes/parser/Parser.php(330): Parser->replaceLinkHolders('<h2> <span clas...')
#13 .../testwiki/phase3/includes/EditPage.php(2015): Parser->parse('== Babel ==?{<n...', Object(Title), Object(ParserOptions))
#14 .../testwiki/phase3/includes/EditPage.php(1289): EditPage->getPreviewText()
#15 .../testwiki/phase3/includes/EditPage.php(477): EditPage->showEditForm()
#16 .../testwiki/phase3/includes/EditPage.php(334): EditPage->edit()
#17 .../testwiki/phase3/includes/Wiki.php(536): EditPage->submit()
#18 .../testwiki/phase3/includes/Wiki.php(69): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#19 .../testwiki/phase3/index.php(104): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#20 {main}
Comment 1 Purodha Blissenbach 2011-03-17 14:11:36 UTC
Further research shows: Disabling the Extension:IndexFunction in Localsettings.php
makes both problems go away.

The order of inclusion of the extensions IndexFunction, and Babel, does not make any visible difference.

I did not try each combination, but selectively dis- or reenabling several other extensions, or groups of extensions, does not reveal anything new.

Besides {{#babel:ku-Arab-5}} any other level indicator {{#babel:ku-Arab-*}} produces the same error messages.
I have also tried various other similar and dissimilar values but ku-Arab-* and found nothing wrong with them.
Comment 2 Siebrand Mazeland 2012-06-12 12:35:59 UTC
Update assignee and CCs

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links