Last modified: 2013-10-25 06:47:05 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 T57808, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55808 - [Regression] Fix Exception "A <translate> reached the parser." from TranslateHooks.php on metawiki
[Regression] Fix Exception "A <translate> reached the parser." from Translate...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: High critical (vote)
: ---
Assigned To: Niklas Laxström
https://meta.wikimedia.org/wiki/Resea...
:
: 55823 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-16 20:00 UTC by Sam Reed (reedy)
Modified: 2013-10-25 06:47 UTC (History)
12 users (show)

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


Attachments
Full stack (530.80 KB, text/plain)
2013-10-16 20:02 UTC, Sam Reed (reedy)
Details

Description Sam Reed (reedy) 2013-10-16 20:00:47 UTC
2013-10-16 19:54:27 mw1077 metawiki: [fe28990d] /wiki/Research:Metrics   Exception from line 187 of /usr/local/apache/common-local/php-1.22wmf21/extensions/Translate/TranslateHooks.php: A <translate> reached the parser. This should not happen


Full stack trace to come, all 487 lines of it including article text
Comment 1 Sam Reed (reedy) 2013-10-16 20:02:05 UTC
Created attachment 13516 [details]
Full stack
Comment 2 Sam Reed (reedy) 2013-10-16 20:02:38 UTC
2013-10-16 19:54:27 mw1077 metawiki: [fe28990d] /wiki/Research:Metrics   Exception from line 187 of /usr/local/apache/common-local/php-1.22wmf21/extensions/Translate/TranslateHooks.php: A <translate> reached the parser. This should not happen
#0 (): {closure}('<!--T:1-->
This page is currently a draft.', Array, Object(Parser), Object(PPTemplateFrame_DOM))
#1 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(4017): call_user_func_array(Object(Closure), Array)
#2 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1181): Parser->extensionSubstitution(Array, Object(PPTemplateFrame_DOM))
#3 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1533): PPFrame_DOM->expand(Object(DOMElement), 4)
#4 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1541): PPTemplateFrame_DOM->getNamedArgument('text')
#5 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(3943): PPTemplateFrame_DOM->getArgument('text')
#6 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1133): Parser->argSubstitution(Array, Object(PPTemplateFrame_DOM))
#7 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(3484): PPFrame_DOM->expand(Object(PPNode_DOM))
#8 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1114): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#9 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(3479): PPFrame_DOM->expand(Object(PPNode_DOM))
#10 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Preprocessor_DOM.php(1114): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#11 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(3146): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#12 /usr/local/apache/common-local/php-1.22wmf21/includes/parser/Parser.php(1205): Parser->replaceVariables('<REDACTED>', Object(Title), Object(ParserOptions), true, true, 5845855)
#9 /usr/local/apache/common-local/php-1.22wmf21/includes/WikiPage.php(3539): WikitextContent->getParserOutput(Object(Title), 5845855, Object(ParserOptions))
#10 /usr/local/apache/common-local/php-1.22wmf21/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#11 /usr/local/apache/common-local/php-1.22wmf21/includes/WikiPage.php(1128): PoolCounterWork->execute()
#12 /usr/local/apache/common-local/php-1.22wmf21/includes/diff/DifferenceEngine.php(576): WikiPage->getParserOutput(Object(ParserOptions), 5845855)
#13 /usr/local/apache/common-local/php-1.22wmf21/includes/diff/DifferenceEngine.php(544): DifferenceEngine->getParserOutput(Object(WikiPage), Object(Revision))
#14 /usr/local/apache/common-local/php-1.22wmf21/includes/diff/DifferenceEngine.php(407): DifferenceEngine->renderNewRevision()
#15 /usr/local/apache/common-local/php-1.22wmf21/includes/Article.php(816): DifferenceEngine->showDiffPage(false)
#16 /usr/local/apache/common-local/php-1.22wmf21/includes/Article.php(548): Article->showDiffPage()
#17 /usr/local/apache/common-local/php-1.22wmf21/includes/actions/ViewAction.php(44): Article->view()
#18 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(448): ViewAction->show()
#19 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(312): MediaWiki->performAction(Object(Article), Object(Title))
#20 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(602): MediaWiki->performRequest()
#21 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(467): MediaWiki->main()
#22 /usr/local/apache/common-local/php-1.22wmf21/index.php(49): MediaWiki->run()
#23 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apache/common-local/php-1.22wmf21/index.php')
#24 {main}
Comment 3 Kunal Mehta (Legoktm) 2013-10-16 20:12:16 UTC
https://meta.wikimedia.org/w/index.php?title=Research%3AMetrics&diff=6064357&oldid=5970856 page fixed, but this shouldn't cause a fatal error.
Comment 4 Kunal Mehta (Legoktm) 2013-10-17 04:22:17 UTC
*** Bug 55823 has been marked as a duplicate of this bug. ***
Comment 5 Krinkle 2013-10-17 14:30:52 UTC
2013-10-17 14:26:45 mw1061 metawiki: [a7c6d1c3] /w/index.php?title=IRC/Group_Contacts&diff=5310350&oldid=4305181   Exception from line 187 of /usr/local/apache/common-local/php-1.22wmf21/extensions/Translate/TranslateHooks.php: A <translate> reached the parser. This should not happen
Comment 6 Niklas Laxström 2013-10-17 18:53:24 UTC
I will be looking into this next week. In the interim I suggest reverting https://gerrit.wikimedia.org/r/#/c/83427/
Comment 7 Niklas Laxström 2013-10-25 06:47:05 UTC
The regression was actually fixed by the revert. Working on long term solution in bug 48891.

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


Navigation
Links