Page MenuHomePhabricator

TypeError: Argument 6 passed to McrUndoAction::__construct() must be an instance of MediaWiki\CommentFormatter\CommentFormatter, instance of GlobalVarConfig given, called in /srv/mediawiki/php-1.40.0-wmf.17/vendor/wikimedia/obj
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 6 passed to McrUndoAction::__construct() must be an instance of MediaWiki\CommentFormatter\CommentFormatter, instance of GlobalVarConfig given, called in /srv/mediawiki/php-1.40.0-wmf.17/vendor/wikimedia/obj
exception.trace
from /srv/mediawiki/php-1.40.0-wmf.17/includes/actions/McrUndoAction.php(67)
#0 /srv/mediawiki/php-1.40.0-wmf.17/vendor/wikimedia/object-factory/src/ObjectFactory.php(247): McrUndoAction->__construct(ImagePage, RequestContext, ReadOnlyMode, MediaWiki\Revision\RevisionStore, MediaWiki\Revision\RevisionRenderer, GlobalVarConfig)
#1 /srv/mediawiki/php-1.40.0-wmf.17/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /srv/mediawiki/php-1.40.0-wmf.17/includes/actions/ActionFactory.php(312): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
#3 /srv/mediawiki/php-1.40.0-wmf.17/includes/actions/ActionFactory.php(370): MediaWiki\Actions\ActionFactory->getAction(string, ImagePage, RequestContext)
#4 /srv/mediawiki/php-1.40.0-wmf.17/includes/context/RequestContext.php(290): MediaWiki\Actions\ActionFactory->getActionName(RequestContext)
#5 /srv/mediawiki/php-1.40.0-wmf.17/includes/context/ContextSource.php(129): RequestContext->getActionName()
#6 /srv/mediawiki/php-1.40.0-wmf.17/extensions/InputBox/includes/InputBoxHooks.php(99): ContextSource->getActionName()
#7 /srv/mediawiki/php-1.40.0-wmf.17/includes/HookContainer/HookContainer.php(160): MediaWiki\Extension\InputBox\InputBoxHooks->onMediaWikiPerformAction(OutputPage, ImagePage, Title, User, WebRequest, MediaWiki)
#8 /srv/mediawiki/php-1.40.0-wmf.17/includes/HookContainer/HookRunner.php(2486): MediaWiki\HookContainer\HookContainer->run(string, array)
#9 /srv/mediawiki/php-1.40.0-wmf.17/includes/MediaWiki.php(516): MediaWiki\HookContainer\HookRunner->onMediaWikiPerformAction(OutputPage, ImagePage, Title, User, WebRequest, MediaWiki)
#10 /srv/mediawiki/php-1.40.0-wmf.17/includes/MediaWiki.php(328): MediaWiki->performAction(ImagePage, Title)
#11 /srv/mediawiki/php-1.40.0-wmf.17/includes/MediaWiki.php(916): MediaWiki->performRequest()
#12 /srv/mediawiki/php-1.40.0-wmf.17/includes/MediaWiki.php(571): MediaWiki->main()
#13 /srv/mediawiki/php-1.40.0-wmf.17/index.php(50): MediaWiki->run()
#14 /srv/mediawiki/php-1.40.0-wmf.17/index.php(46): wfIndexMain()
#15 /srv/mediawiki/w/index.php(3): require(string)
#16 {main}
Impact
Notes

Details

MediaWiki Version
1.40.0-wmf.17
Request URL
https://commons.wikimedia.org/w/index.php?action=mcrrestore&restore=*&title=*

Event Timeline

Change 875442 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] actions: Pass CommentFormatter to McrRestoreAction

https://gerrit.wikimedia.org/r/875442

Change 875442 merged by jenkins-bot:

[mediawiki/core@master] actions: Pass CommentFormatter to McrRestoreAction

https://gerrit.wikimedia.org/r/875442

Suggest backport, there is no workaround on commons to undo mcr revisions (mostly are files with mediainfo)

Change 875379 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@wmf/1.40.0-wmf.17] actions: Pass CommentFormatter to McrRestoreAction

https://gerrit.wikimedia.org/r/875379

Zabe triaged this task as Unbreak Now! priority.

Change 875379 merged by jenkins-bot:

[mediawiki/core@wmf/1.40.0-wmf.17] actions: Pass CommentFormatter to McrRestoreAction

https://gerrit.wikimedia.org/r/875379

Mentioned in SAL (#wikimedia-operations) [2023-01-05T19:37:57Z] <taavi@deploy1002> Started scap: Backport for [[gerrit:875379|actions: Pass CommentFormatter to McrRestoreAction (T326275)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-05T19:41:08Z] <taavi@deploy1002> taavi and zabe: Backport for [[gerrit:875379|actions: Pass CommentFormatter to McrRestoreAction (T326275)]] synced to the testservers: mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-05T19:48:08Z] <taavi@deploy1002> Finished scap: Backport for [[gerrit:875379|actions: Pass CommentFormatter to McrRestoreAction (T326275)]] (duration: 10m 11s)