Page MenuHomePhabricator

RuntimeException: Revision is null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Related to T364681: Issues with translatable pages on Wikidata due to revision id overflow... Probably...

Trying to mark a page for translation as per T365355: Maintenance script to regenerate revtag for list of pages

Error
labels.normalized_message
[{reqId}] {exception_url}   RuntimeException: Revision is null
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.5/extensions/Translate/src/PageTranslation/TranslatablePage.php(94)
#0 /srv/mediawiki/php-1.43.0-wmf.5/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(787): MediaWiki\Extension\Translate\PageTranslation\TranslatablePage::newFromRevision(MediaWiki\Title\Title, integer)
#1 /srv/mediawiki/php-1.43.0-wmf.5/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(313): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->showPage(MediaWiki\Extension\Translate\PageTranslation\TranslatablePageMarkOperation)
#2 /srv/mediawiki/php-1.43.0-wmf.5/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(157): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->onActionMark(MediaWiki\Title\Title, NULL)
#3 /srv/mediawiki/php-1.43.0-wmf.5/includes/specialpage/SpecialPage.php(719): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->execute(NULL)
#4 /srv/mediawiki/php-1.43.0-wmf.5/includes/specialpage/SpecialPageFactory.php(1680): MediaWiki\SpecialPage\SpecialPage->run(NULL)
#5 /srv/mediawiki/php-1.43.0-wmf.5/includes/actions/ActionEntryPoint.php(502): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#6 /srv/mediawiki/php-1.43.0-wmf.5/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()
#7 /srv/mediawiki/php-1.43.0-wmf.5/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()
#8 /srv/mediawiki/php-1.43.0-wmf.5/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#9 /srv/mediawiki/w/index.php(3): require(string)
#10 {main}
Impact
Notes

Details

MediaWiki Version
1.43.0-wmf.6
Request URL
https://www.wikidata.org/w/index.php?do=*&target=*&title=*

Event Timeline

Aklapper renamed this task from Fatal exception of type "RuntimeException" to RuntimeException: Revision is null.May 21 2024, 4:55 PM
Aklapper changed the subtype of this task from "Task" to "Production Error".
Aklapper set Request URL to https://www.wikidata.org/w/index.php?do=*&target=*&title=*.
Aklapper updated the task description. (Show Details)
Aklapper set Release Version to 1.43.0-wmf.6.
Reedy triaged this task as Low priority.May 21 2024, 5:12 PM

Related to T364681: Issues with translatable pages on Wikidata due to revision id overflow... Probably...

Indeed. The call that fails is RevisionLookup::getRevisionByTitle($title, $revision), with the revision read from the revtag table. (To be exact, that call doesn’t throw, but it returns null, and the next line in TranslatablePage.php throws due to experiencing null.) It’s actually only used to display the diff between the current and the previously marked revision, but I’m not sure if simply suppressing the diff would solve the issue or only surface further problems coming from the unexpected revision number.

Nikerabbit assigned this task to Reedy.
Nikerabbit subscribed.

The database "corruption" on Wikidata was fixed manually, so this shouldn't be happening anymore