Page MenuHomePhabricator

PHP Deprecated: Use of MediaWiki\Xml\Xml::input was deprecated in MediaWiki 1.42. [Called from MediaWiki\Xml\Xml::inputLabelSep]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of MediaWiki\Xml\Xml::input was deprecated in MediaWiki 1.42. [Called from MediaWiki\Xml\Xml::inputLabelSep]
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.2/includes/xml/Xml.php(459)
#0[internal function]MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, string)
#1/srv/mediawiki/php-1.45.0-wmf.2/includes/debug/MWDebug.php(386)trigger_error(string, int)
#2/srv/mediawiki/php-1.45.0-wmf.2/includes/debug/MWDebug.php(357)MediaWiki\Debug\MWDebug::sendRawDeprecated(string, bool, string)
#3/srv/mediawiki/php-1.45.0-wmf.2/includes/debug/MWDebug.php(238)MediaWiki\Debug\MWDebug::deprecatedMsg(string, string, string, int)
#4/srv/mediawiki/php-1.45.0-wmf.2/includes/GlobalFunctions.php(782)MediaWiki\Debug\MWDebug::deprecated(string, string, string, int)
#5/srv/mediawiki/php-1.45.0-wmf.2/includes/xml/Xml.php(310)wfDeprecated(string, string)
#6/srv/mediawiki/php-1.45.0-wmf.2/includes/xml/Xml.php(459)MediaWiki\Xml\Xml::input(string, int, string, array)
#7/srv/mediawiki/php-1.45.0-wmf.2/includes/xml/Xml.php(437)MediaWiki\Xml\Xml::inputLabelSep(string, string, string, int, string, array)
#8/srv/mediawiki/php-1.45.0-wmf.2/extensions/FlaggedRevs/includes/frontend/RejectConfirmationFormUI.php(208)MediaWiki\Xml\Xml::inputLabel(string, string, string, int, string, array)
#9/srv/mediawiki/php-1.45.0-wmf.2/extensions/FlaggedRevs/includes/frontend/specialpages/actions/RevisionReview.php(123)RejectConfirmationFormUI->getHtml()
#10/srv/mediawiki/php-1.45.0-wmf.2/includes/specialpage/SpecialPage.php(734)RevisionReview->execute(null)
#11/srv/mediawiki/php-1.45.0-wmf.2/includes/specialpage/SpecialPageFactory.php(1738)MediaWiki\SpecialPage\SpecialPage->run(null)
#12/srv/mediawiki/php-1.45.0-wmf.2/includes/actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#13/srv/mediawiki/php-1.45.0-wmf.2/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#14/srv/mediawiki/php-1.45.0-wmf.2/includes/MediaWikiEntryPoint.php(198)MediaWiki\Actions\ActionEntryPoint->execute()
#15/srv/mediawiki/php-1.45.0-wmf.2/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#16/srv/mediawiki/w/index.php(3)require(string)
#17{main}
Impact
Notes

Similar to T394403 and T394025.

Details

Request URL
https://pl.wikipedia.org/w/index.php?action=submit&title=*
Related Changes in Gerrit:

Event Timeline

Change #1151776 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/extensions/FlaggedRevs@master] Stop relying on Xml::input

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

I had trouble getting the form to be shown locally (you know... flaggedrevs...) so the patch is not really tested.

Can try this if you want: T394403#10825958

Or I'll just load it up and test it and +2 it in a moment :)

edit: Never mind, different form than I was thinking. I remembered there was some Xml left in Stabilization.php, but looks like your patch is for RejectConfirmationFormUI.php

I had trouble getting the form to be shown locally (you know... flaggedrevs...) so the patch is not really tested.

I noticed. :( Actually, it’s easy to get the form once one knows how to:

  1. Have a page with pending changes.
  2. Make the review form appear (e.g. Review… in the popup shown by the Pending indicator).
  3. Click Reject changes.
  4. The page that loads uses this form.
brennen subscribed.

This has been one of the noisier things in logspam-watch for a while now.

Change #1151776 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Stop relying on Xml::input

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

This is now the most prominent error in logspam-watch.

A patch to fix this merged on Thursday. Do you think that patch will solve the error when it rides the train?

On a side note, I wonder if we should be porting things like Xml:inputLabel() to the Html class to make these easier to mass refactor.

A patch to fix this merged on Thursday. Do you think that patch will solve the error when it rides the train?

I haven't looked at the patch, but knowing that something will roll out this week is comforting. Thanks!