Page MenuHomePhabricator

Error occured when viewing difference on conversiontable page
Open, Needs TriagePublic

Description

There's a problem that on wikis with language variants, when viewing the difference between the current revision of conversion table page (e.g. Mediawiki:conversiontable/zh-cn , Mediawiki:conversiontable/zh-hk , Mediawiki:conversiontable/zh-tw on zh.wikipedia.org ) and any other revision, an error occurs.

I installed the latest version of mediawiki (v1.30.0-alpha) on my computer and found the error reproducible.

[953bc4fe01c2aa94b020a3dc] /wm/index.php?title=MediaWiki:Conversiontable/zh-cn&curid=4&diff=1844&oldid=1843 InvalidArgumentException from line 1060 of D:\Apache24\htdocs\wm\includes\page\WikiPage.php: The supplied ParserOptions are not safe to cache. Fix the options or set $forceParse = true.

Backtrace:

#0 D:\Apache24\htdocs\wm\includes\diff\DifferenceEngine.php(651): WikiPage->getParserOutput(ParserOptions, integer)
#1 D:\Apache24\htdocs\wm\includes\diff\DifferenceEngine.php(624): DifferenceEngine->getParserOutput(WikiPage, Revision)
#2 D:\Apache24\htdocs\wm\includes\diff\DifferenceEngine.php(476): DifferenceEngine->renderNewRevision()
#3 D:\Apache24\htdocs\wm\includes\page\Article.php(718): DifferenceEngine->showDiffPage(boolean)
#4 D:\Apache24\htdocs\wm\includes\page\Article.php(457): Article->showDiffPage()
#5 D:\Apache24\htdocs\wm\includes\actions\ViewAction.php(68): Article->view()
#6 D:\Apache24\htdocs\wm\includes\MediaWiki.php(499): ViewAction->show()
#7 D:\Apache24\htdocs\wm\includes\MediaWiki.php(293): MediaWiki->performAction(Article, Title)
#8 D:\Apache24\htdocs\wm\includes\MediaWiki.php(868): MediaWiki->performRequest()
#9 D:\Apache24\htdocs\wm\includes\MediaWiki.php(523): MediaWiki->main()
#10 D:\Apache24\htdocs\wm\index.php(43): MediaWiki->run()
#11 {main}

According to the error message returned by the software, it seems that this error might be a side effect of T110269 .

Event Timeline

Antigng created this task.Jul 27 2017, 6:19 AM
Restricted Application added subscribers: Cosine02, Aklapper. · View Herald TranscriptJul 27 2017, 6:19 AM

(removing Parsing-Team tag, see its description)

@Antigng: Please post the text in https://commons.wikimedia.org/wiki/File:Error_occured_when_viewing_difference_on_conversiontable_page.png as text in the task description (by clicking Edit Task).
Text content inside of images cannot be found by search engines. Text itself can. :)

Also, the link in "an error occurs" does not display an error for me. And I don't know how to see the error myself. :(
Hence please provide steps to reproduce the problem and exact MediaWiki version information.
See https://mediawiki.org/wiki/How_to_report_a_bug for more information.
Ideally, exact and clear steps to reproduce should allow any other person to follow these steps (without having to interpret those steps) and see the same results. Problems that others can reliably reproduce can get fixed faster.
Thanks in advance!

Antigng updated the task description. (Show Details)Aug 26 2017, 9:07 AM
Antigng updated the task description. (Show Details)Aug 26 2017, 9:11 AM
Aklapper changed the task status from Open to Stalled.Sep 14 2017, 8:58 PM

The supplied ParserOptions are not safe to cache. Fix the options or set $forceParse = true.

@Antigng: So did you fix your options? What was $forceParse set to? If it was not true, did setting it to true fix this?

The supplied ParserOptions are not safe to cache. Fix the options or set $forceParse = true.

@Antigng: So did you fix your options? What was $forceParse set to? If it was not true, did setting it to true fix this?

Unfortunately , it didn't. Whatever $forceParse is set to, the error always happens.

Aklapper changed the task status from Stalled to Open.Oct 14 2017, 10:58 AM