Error
- service.version: 1.42.0-wmf.18
- trace.id: 3a53d5c1-2d58-4b21-9b03-f8fc0e80c4c9
- Find trace.id in Logstash
[{reqId}] {exception_url} PHP Deprecated: Use of MediaWiki\Content\Renderer\ContentRenderer::getParserOutput with integer revision id was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\TemplateSandbox\SpecialTemplateSandbox::onSubmit]
from /srv/mediawiki/php-1.42.0-wmf.18/extensions/TemplateSandbox/includes/SpecialTemplateSandbox.php(274) #0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array) #1 /srv/mediawiki/php-1.42.0-wmf.18/includes/debug/MWDebug.php(379): trigger_error(string, integer) #2 /srv/mediawiki/php-1.42.0-wmf.18/includes/debug/MWDebug.php(350): MWDebug::sendRawDeprecated(string, boolean, string) #3 /srv/mediawiki/php-1.42.0-wmf.18/includes/debug/MWDebug.php(231): MWDebug::deprecatedMsg(string, string, string, integer) #4 /srv/mediawiki/php-1.42.0-wmf.18/includes/GlobalFunctions.php(773): MWDebug::deprecated(string, string, string, integer) #5 /srv/mediawiki/php-1.42.0-wmf.18/includes/content/Renderer/ContentRenderer.php(57): wfDeprecated(string, string) #6 /srv/mediawiki/php-1.42.0-wmf.18/extensions/TemplateSandbox/includes/SpecialTemplateSandbox.php(274): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, integer, ParserOptions) #7 /srv/mediawiki/php-1.42.0-wmf.18/includes/htmlform/HTMLForm.php(748): MediaWiki\Extension\TemplateSandbox\SpecialTemplateSandbox->onSubmit(array, OOUIHTMLForm) #8 /srv/mediawiki/php-1.42.0-wmf.18/includes/htmlform/HTMLForm.php(629): HTMLForm->trySubmit() #9 /srv/mediawiki/php-1.42.0-wmf.18/extensions/TemplateSandbox/includes/SpecialTemplateSandbox.php(116): HTMLForm->tryAuthorizedSubmit() #10 /srv/mediawiki/php-1.42.0-wmf.18/includes/specialpage/SpecialPage.php(720): MediaWiki\Extension\TemplateSandbox\SpecialTemplateSandbox->execute(NULL) #11 /srv/mediawiki/php-1.42.0-wmf.18/includes/specialpage/SpecialPageFactory.php(1653): MediaWiki\SpecialPage\SpecialPage->run(NULL) #12 /srv/mediawiki/php-1.42.0-wmf.18/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext) #13 /srv/mediawiki/php-1.42.0-wmf.18/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest() #14 /srv/mediawiki/php-1.42.0-wmf.18/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute() #15 /srv/mediawiki/php-1.42.0-wmf.18/index.php(58): MediaWiki\MediaWikiEntryPoint->run() #16 /srv/mediawiki/w/index.php(3): require(string) #17 {main}
Impact
Hard deprecation in production is against the deprecation policy. Fixing callers or reverting hard-deprecation blocks the next train.
Notes
There are calls from more than one caller so I've not filed seperate tasks. At least these were found. If the decision is to fix callers, and if doing so is non-trivial, you'll probably want to file separate tasks for each.
PHP Deprecated: Use of MediaWiki\Content\Renderer\ContentRenderer::getParserOutput with integer revision id was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\TemplateSandbox\Hooks::onAlternateEditPreview]`
PHP Deprecated: Use of MediaWiki\Content\Renderer\ContentRenderer::getParserOutput with integer revision id was deprecated in MediaWiki 1.42. [Called from FRInclusionCache::{closure}]
PHP Deprecated: Use of MediaWiki\Content\Renderer\ContentRenderer::getParserOutput with integer revision id was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\TemplateSandbox\SpecialTemplateSandbox::onSubmit]