Page MenuHomePhabricator

Transcluding Special:PrefixIndex clears parser state
Closed, ResolvedPublicBUG REPORT

Description

http://zh.wikipedia.org/wiki/Wikipedia:%E5%9D%8F%E7%AC%91%E8%AF%9D%E5%92%8C%E5%88%A0%E9%99%A4%E7%9A%84%E8%83%A1%E8%AF%9D
http://zh.wikipedia.org/wiki/User:YFdyh000/Sandbox

There is a <ref> tag in the page but it cannot be shown in the <references> place. They have the common point that is they both transcluded Special:PreFixIndex. Special:PreFixIndex make it broken. Is it a bug on the extension or PreFixIndex?

See zhwiki discussion on Village Pumps
http://zh.wikipedia.org/wiki/Wikipedia:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88/%E6%8A%80%E6%9C%AF#.E9.A1.B5.E5.86.85.E5.B5.8C.E5.85.A5Special:PrefixIndex.E4.BC.9A.E8.AE.A9.E7.BB.93.E5.B0.BE.E7.9A.84.E6.B3.A8.E9.87.8A.E4.B8.8D.E5.86.8D.E6.98.BE.E7.A4.BA


Version: 1.20.x
Severity: major

Details

Reference
bz33740
TitleReferenceAuthorSource BranchDest Branch
Check bare metal and mw-on-k8s canariesrepos/releng/scap!219dancymaster-I46672fb9e38a6ce6816af7f1f212b412ab600629master
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:01 AM
bzimport set Reference to bz33740.
bzimport added a subscriber: Unknown Object (MLST).

Change summary to reflect the real issue.

Here's the stacktrace of the clear action in question:

Stack trace:
#0 [internal function]: Cite->clearState(Object(Parser))
#1 phase3/includes/Hooks.php(216): call_user_func_array(Array, Array)
#2 phase3/includes/GlobalFunctions.php(3734): Hooks::run('ParserClearStat...', Array)
#3 phase3/includes/parser/Parser.php(302): wfRunHooks('ParserClearStat...', Array)
#4 phase3/includes/parser/Parser.php(4508): Parser->clearState()
#5 phase3/includes/parser/Parser.php(499): Parser->startParse(Object(Title), Object(ParserOptions), 3, true)
#6 phase3/includes/parser/Parser.php(4539): Parser->preprocess('???????????????...', Object(Title), Object(ParserOptions))
#7 phase3/includes/cache/MessageCache.php(794): Parser->transformMsg('???????????????...', Object(ParserOptions), Object(Title))
#8 phase3/includes/Message.php(467): MessageCache->transform('???????????????...', false, Object(LanguageZh), Object(Title))
#9 phase3/includes/Message.php(303): Message->transformText('???????????????...')
#10 phase3/includes/Message.php(340): Message->toString()
#11 phase3/includes/OutputPage.php(772): Message->text()
#12 phase3/includes/OutputPage.php(816): OutputPage->setHTMLTitle(Object(Message))
#13 phase3/includes/SpecialPage.php(546): OutputPage->setPageTitle('???????????????...')
#14 phase3/includes/specials/SpecialPrefixindex.php(43): SpecialPage->setHeaders()
#15 phase3/includes/SpecialPageFactory.php(475): SpecialPrefixindex->execute('M')
#16 phase3/includes/SpecialPageFactory.php(514): SpecialPageFactory::executePath(Object(Title), Object(RequestContext), true)
#17 phase3/includes/parser/Parser.php(3245): SpecialPageFactory::capturePath(Object(Title), Object(RequestContext))
#18 phase3/includes/parser/Preprocessor_DOM.php(1043): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#19 phase3/includes/parser/Parser.php(2950): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#20 phase3/includes/parser/Parser.php(1068): Parser->replaceVariables('<ref>a</ref>?<!...')
#21 phase3/includes/parser/Parser.php(345): Parser->internalParse('<ref>a</ref>?<!...')
#22 phase3/includes/WikiPage.php(2836): Parser->parse('<ref>a</ref>?<!...', Object(Title), Object(ParserOptions), true, true, 75)
#23 phase3/includes/PoolCounter.php(187): PoolWorkArticleView->doWork()
#24 phase3/includes/Article.php(556): PoolCounterWork->execute()
#25 phase3/includes/Wiki.php(495): Article->view()
#26 phase3/includes/Wiki.php(266): MediaWiki->performAction(Object(Article))
#27 phase3/includes/Wiki.php(619): MediaWiki->performRequest()
#28 phase3/includes/Wiki.php(538): MediaWiki->main()
#29 phase3/index.php(58): MediaWiki->run()
#30 {main}

Maybe it was introduced when Message class was added and exists in some other special pages.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 15 2022, 9:39 PM
Aklapper removed a subscriber: wikibugs-l-list.
matmarex subscribed.

This seems to work correctly now: https://zh.wikipedia.org/w/index.php?title=User:YFdyh000/Sandbox&oldid=18939714

image.png (3×3 px, 1 MB)

No idea when or how it was fixed.