Page MenuHomePhabricator

PHP Deprecated: Use of Parser::getUser was deprecated in MediaWiki 1.36. [Called from SimpleCaptcha::findLinks]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of Parser::getUser was deprecated in MediaWiki 1.36. [Called from SimpleCaptcha::findLinks]
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.20/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(1155)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.37.0-wmf.20/includes/debug/MWDebug.php(375): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.37.0-wmf.20/includes/debug/MWDebug.php(351): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.37.0-wmf.20/includes/debug/MWDebug.php(230): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.37.0-wmf.20/includes/GlobalFunctions.php(998): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.37.0-wmf.20/includes/parser/Parser.php(1176): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.37.0-wmf.20/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(1155): Parser->getUser()
#7 /srv/mediawiki/php-1.37.0-wmf.20/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(627): SimpleCaptcha->findLinks(Title, string)
#8 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/SpamFilter/ConfirmEdit.php(41): SimpleCaptcha->shouldCheck(WikiPage, string, string, DerivativeContext, string)
#9 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/SpamFilter/Controller.php(55): Flow\SpamFilter\ConfirmEdit->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
#10 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/Block/AbstractBlock.php(251): Flow\SpamFilter\Controller->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
#11 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/Block/TopicListBlock.php(107): Flow\Block\AbstractBlock->checkSpamFilters(NULL, Flow\Model\PostRevision)
#12 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/Block/AbstractBlock.php(144): Flow\Block\TopicListBlock->validate()
#13 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/SubmissionHandler.php(121): Flow\Block\AbstractBlock->onSubmit(array)
#14 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/WorkflowLoader.php(62): Flow\SubmissionHandler->handleSubmit(Flow\Model\Workflow, DerivativeContext, array, string, array)
#15 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/Api/ApiFlowBasePost.php(22): Flow\WorkflowLoader->handleSubmit(DerivativeContext, string, array)
#16 /srv/mediawiki/php-1.37.0-wmf.20/extensions/Flow/includes/Api/ApiFlow.php(108): Flow\Api\ApiFlowBasePost->execute()
#17 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(1844): Flow\Api\ApiFlow->execute()
#18 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(823): ApiMain->executeAction()
#19 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(794): ApiMain->executeActionWithErrorHandling()
#20 /srv/mediawiki/php-1.37.0-wmf.20/api.php(90): ApiMain->execute()
#21 /srv/mediawiki/php-1.37.0-wmf.20/api.php(45): wfApiMain()
#22 /srv/mediawiki/w/api.php(3): require(string)
#23 {main}
Impact
Notes

Splitting from T289625#7309747, as it is about a whole different codebase.

Event Timeline

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

[mediawiki/extensions/ConfirmEdit@master] Use Parser::getUserIdentity() instead of ::getUser() in SimpleCaptcha

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

Urbanecm moved this task from Untriaged to Aug 2021 on the Wikimedia-production-error board.

Change 714828 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] Use Parser::getUserIdentity() instead of ::getUser() in SimpleCaptcha

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

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

[mediawiki/extensions/ConfirmEdit@wmf/1.37.0-wmf.20] Use Parser::getUserIdentity() instead of ::getUser() in SimpleCaptcha

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

Change 714683 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@wmf/1.37.0-wmf.20] Use Parser::getUserIdentity() instead of ::getUser() in SimpleCaptcha

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

Mentioned in SAL (#wikimedia-operations) [2021-08-25T21:14:46Z] <urbanecm@deploy1002> Synchronized php-1.37.0-wmf.20/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php: 190d8b7579af981cf2f5e4a6d9457ee0a7edca3f: Use Parser::getUserIdentity() instead of ::getUser() in SimpleCaptcha (T289731) (duration: 01m 05s)