Page MenuHomePhabricator

Use of Article::prepareContentForEdit was deprecated in MediaWiki 1.35. [Called from AFComputedVariable::compute]
Open, MediumPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.1

exception.class ErrorException

message
Use of Article::prepareContentForEdit was deprecated in MediaWiki 1.35. [Called from AFComputedVariable::compute]

Impact

Notes

Details

Request ID
d5e0ecd6-eade-40d1-b9b6-3371cbfffc79
Request URL
https://en.wikipedia.org/wiki/Special:AbuseLog/7998587
Stack Trace
exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.36.0-wmf.1/includes/debug/MWDebug.php(329): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.36.0-wmf.1/includes/debug/MWDebug.php(305): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.36.0-wmf.1/includes/debug/MWDebug.php(234): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.36.0-wmf.1/includes/GlobalFunctions.php(1028): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.36.0-wmf.1/includes/page/Article.php(2950): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.36.0-wmf.1/extensions/AbuseFilter/includes/AFComputedVariable.php(241): Article->prepareContentForEdit(WikitextContent)
#7 /srv/mediawiki/php-1.36.0-wmf.1/extensions/AbuseFilter/includes/AbuseFilterVariableHolder.php(124): AFComputedVariable->compute(AbuseFilterVariableHolder)
#8 /srv/mediawiki/php-1.36.0-wmf.1/extensions/AbuseFilter/includes/AbuseFilterVariableHolder.php(233): AbuseFilterVariableHolder->getVar(string)
#9 /srv/mediawiki/php-1.36.0-wmf.1/extensions/AbuseFilter/includes/special/SpecialAbuseLog.php(660): AbuseFilterVariableHolder->dumpAllVars(boolean)
#10 /srv/mediawiki/php-1.36.0-wmf.1/extensions/AbuseFilter/includes/special/SpecialAbuseLog.php(131): SpecialAbuseLog->showDetails(string)
#11 /srv/mediawiki/php-1.36.0-wmf.1/includes/specialpage/SpecialPage.php(600): SpecialAbuseLog->execute(string)
#12 /srv/mediawiki/php-1.36.0-wmf.1/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(string)
#13 /srv/mediawiki/php-1.36.0-wmf.1/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#14 /srv/mediawiki/php-1.36.0-wmf.1/includes/MediaWiki.php(940): MediaWiki->performRequest()
#15 /srv/mediawiki/php-1.36.0-wmf.1/includes/MediaWiki.php(543): MediaWiki->main()
#16 /srv/mediawiki/php-1.36.0-wmf.1/index.php(53): MediaWiki->run()
#17 /srv/mediawiki/php-1.36.0-wmf.1/index.php(46): wfIndexMain()
#18 /srv/mediawiki/w/index.php(3): require(string)
#19 {main}

Event Timeline

BPirkle created this task.Jul 29 2020, 6:41 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 29 2020, 6:41 PM
eprodromou triaged this task as Low priority.Aug 4 2020, 8:25 PM
Clarakosi raised the priority of this task from Low to Medium.Sep 30 2020, 6:43 PM
Clarakosi added a subscriber: Clarakosi.

Seen again today happening in: Use of Article::getContentModel was deprecated in MediaWiki 1.35. [Called from AFComputedVariable::compute]

#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.36.0-wmf.10/includes/debug/MWDebug.php(329): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.36.0-wmf.10/includes/debug/MWDebug.php(305): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.36.0-wmf.10/includes/debug/MWDebug.php(234): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.36.0-wmf.10/includes/GlobalFunctions.php(1029): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.36.0-wmf.10/includes/page/Article.php(2574): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.36.0-wmf.10/extensions/AbuseFilter/includes/AFComputedVariable.php(242): Article->getContentModel()
#7 /srv/mediawiki/php-1.36.0-wmf.10/extensions/AbuseFilter/includes/AbuseFilterVariableHolder.php(127): AFComputedVariable->compute(AbuseFilterVariableHolder)
#8 /srv/mediawiki/php-1.36.0-wmf.10/extensions/AbuseFilter/includes/AbuseFilterVariableHolder.php(246): AbuseFilterVariableHolder->getVar(string)
#9 /srv/mediawiki/php-1.36.0-wmf.10/extensions/AbuseFilter/includes/special/SpecialAbuseLog.php(697): AbuseFilterVariableHolder->dumpAllVars(boolean)
#10 /srv/mediawiki/php-1.36.0-wmf.10/extensions/AbuseFilter/includes/special/SpecialAbuseLog.php(143): SpecialAbuseLog->showDetails(string)
#11 /srv/mediawiki/php-1.36.0-wmf.10/includes/specialpage/SpecialPage.php(600): SpecialAbuseLog->execute(string)
#12 /srv/mediawiki/php-1.36.0-wmf.10/includes/specialpage/SpecialPageFactory.php(692): SpecialPage->run(string)
#13 /srv/mediawiki/php-1.36.0-wmf.10/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#14 /srv/mediawiki/php-1.36.0-wmf.10/includes/MediaWiki.php(940): MediaWiki->performRequest()
#15 /srv/mediawiki/php-1.36.0-wmf.10/includes/MediaWiki.php(543): MediaWiki->main()
#16 /srv/mediawiki/php-1.36.0-wmf.10/index.php(53): MediaWiki->run()
#17 /srv/mediawiki/php-1.36.0-wmf.10/index.php(46): wfIndexMain()
#18 /srv/mediawiki/w/index.php(3): require(string)
#19 {main}
daniel added a subscriber: daniel.

Tagging with MW-1.36-release, because Article::prepareContentForEdit() should be removed in 1.36, and we can't as long as it's still used.