Problem report here.
- MediaWiki: 1.31.0
- PHP: 7.0.30-0+deb9u1 (fpm-fcgi)
- MariaDB: 10.1.26-MariaDB-0+deb9u1
Details from posting:
I'm an Admin on some wiki, that was recently updated to MW 1.31.0.
And it seem that this triggered a problem with restore revisions older than a particular date.
The related date in question seem to point an other WM update installation. MW 1.21.1.
Messages and backtrace:
Error undeleting page Some or all of the undeletion failed: Invalid or missing revision. You may have a bad link, or the revision may have been restored or removed from the archive. The revision #0 of the page named "<pagename>" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log. Internal error [df5b7d69e1520c3751ee7415] /w/index.php?title=Special:Undelete&action=submit MediaWiki\Storage\IncompleteRevisionException from line 308 of /<...>/w/includes/Storage/RevisionStore.php: sha1 field must not be ! Backtrace: #0 /<...>/w/includes/Storage/RevisionStore.php(352): MediaWiki\Storage\RevisionStore->failOnEmpty(string, string) #1 /<...>/w/includes/Revision.php(1123): MediaWiki\Storage\RevisionStore->insertRevisionOn(MediaWiki\Storage\RevisionArchiveRecord, Wikimedia\Rdbms\DatabaseMysqli) #2 /<...>/w/includes/page/PageArchive.php(678): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli) #3 /<...>/w/includes/page/PageArchive.php(419): PageArchive->undeleteRevisions(array, boolean, string) #4 /<...>/w/includes/specials/SpecialUndelete.php(1146): PageArchive->undelete(array, string, array, boolean, User) #5 /<...>/w/includes/specials/SpecialUndelete.php(201): SpecialUndelete->undelete() #6 /<...>/w/includes/specialpage/SpecialPage.php(522): SpecialUndelete->execute(NULL) #7 /<...>/w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL) #8 /<...>/w/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext) #9 /<...>/w/includes/MediaWiki.php(861): MediaWiki->performRequest() #10 /<...>/w/includes/MediaWiki.php(524): MediaWiki->main() #11 /<...>/w/index.php(42): MediaWiki->run() #12 {main}