Page MenuHomePhabricator

RuntimeException: Could not find template `ContentBox` at /srv/mediawiki/php-1.43.0-wmf.10/extensions/MobileFrontend/includes/specials/templates/ContentBox.mustache
Closed, ResolvedPublic2 Estimated Story PointsPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   RuntimeException: Could not find template `ContentBox` at /srv/mediawiki/php-1.43.0-wmf.10/extensions/MobileFrontend/includes/specials/templates/ContentBox.mustache
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.10/includes/Html/TemplateParser.php(220)
#0 /srv/mediawiki/php-1.43.0-wmf.10/includes/Html/TemplateParser.php(160): MediaWiki\Html\TemplateParser->compile(string)
#1 /srv/mediawiki/php-1.43.0-wmf.10/includes/Html/TemplateParser.php(296): MediaWiki\Html\TemplateParser->getTemplate(string)
#2 /srv/mediawiki/php-1.43.0-wmf.10/extensions/MobileFrontend/includes/specials/SpecialMobileOptions.php(219): MediaWiki\Html\TemplateParser->processTemplate(string, array)
#3 /srv/mediawiki/php-1.43.0-wmf.10/extensions/MobileFrontend/includes/specials/SpecialMobileOptions.php(240): SpecialMobileOptions::contentElement(string)
#4 /srv/mediawiki/php-1.43.0-wmf.10/extensions/MobileFrontend/includes/specials/SpecialMobileOptions.php(109): SpecialMobileOptions->addSettingsForm()
#5 /srv/mediawiki/php-1.43.0-wmf.10/includes/specialpage/SpecialPage.php(719): SpecialMobileOptions->execute(NULL)
#6 /srv/mediawiki/php-1.43.0-wmf.10/includes/specialpage/SpecialPageFactory.php(1694): MediaWiki\SpecialPage\SpecialPage->run(NULL)
#7 /srv/mediawiki/php-1.43.0-wmf.10/includes/actions/ActionEntryPoint.php(502): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#8 /srv/mediawiki/php-1.43.0-wmf.10/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()
#9 /srv/mediawiki/php-1.43.0-wmf.10/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()
#10 /srv/mediawiki/php-1.43.0-wmf.10/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#11 /srv/mediawiki/w/index.php(3): require(string)
#12 {main}
Impact

Manifests as a fatal at the URL.

Notes

Seeing 16 of these in 1.43.0-wmf.10 (T361404).

QA ( PRoduction )

Ask an engineer to verify this in logstash and add the Verified tag.

Details

Request URL
https://en.wiktionary.org/w/index.php?success&title=Special:MobileOptions
Related Changes in Gerrit:

Event Timeline

Jdlrobson triaged this task as Medium priority.Jun 21 2024, 2:32 AM
Jdlrobson subscribed.

I can replicate by disabling JavaScript and submitting the form. Can likely remove the processTemplate call.

ovasileva lowered the priority of this task from Medium to Low.Jul 25 2024, 5:40 PM
ovasileva set the point value for this task to 2.

Change #1057247 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/MobileFrontend@master] Fixes fatal on form submit

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

Change #1057247 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Fixes fatal on form submit

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

Jdlrobson claimed this task.
Jdlrobson updated the task description. (Show Details)

The number of errors is not really the issue here, the issue here is there is an easily reproducible way of making a fatal error, so this has the potential to be a train blocker which would have been preventable.

I had bandwidth today and this was a small fix so I pushed a patch that just got merged.