Trying to undelete https://en.wikipedia.org/wiki/Special:Undelete/City_University_of_Mogadishu
[fef0e3f8-de07-4926-b904-acfd22faa0eb] 2025-04-12 05:29:49: Fatal exception of type "LogicException"
Error
- mwversion: 1.44.0-wmf.24
- reqId: fef0e3f8-de07-4926-b904-acfd22faa0eb
- Find reqId in Logstash
[{reqId}] {exception_url} LogicException: Missing page state before update| Frame | Location | Call |
|---|---|---|
| from | /srv/mediawiki/php-1.44.0-wmf.24/includes/Storage/DerivedPageDataUpdater.php(1716) | |
| #0 | /srv/mediawiki/php-1.44.0-wmf.24/includes/Storage/DerivedPageDataUpdater.php(1664) | MediaWiki\Storage\DerivedPageDataUpdater->getPageRevisionUpdatedEvent() |
| #1 | /srv/mediawiki/php-1.44.0-wmf.24/includes/Storage/DerivedPageDataUpdater.php(1551) | MediaWiki\Storage\DerivedPageDataUpdater->emitEvents() |
| #2 | /srv/mediawiki/php-1.44.0-wmf.24/includes/page/UndeletePage.php(652) | MediaWiki\Storage\DerivedPageDataUpdater->doUpdates() |
| #3 | /srv/mediawiki/php-1.44.0-wmf.24/includes/page/UndeletePage.php(297) | MediaWiki\Page\UndeletePage->undeleteRevisions(MediaWiki\Page\PageIdentityValue, array, string, bool) |
Impact
Seen 12 times over the last 7 days: https://logstash.wikimedia.org/goto/374bbd5ed74ba1027413fc23325ced91
Notes
The bug seemes to triggered sometimes when trying to restore a revision into an existing page, when the restored revision is newer than the current latest revision. This was the case for City_University_of_Mogadishu. ewditing the page to create an evener newer revision allowed the old revision to be undeleted (and become the second-from-newest).
However, my attempt to reproduce the bug by re-creating htese conditions failed. I was able to restore both revisions successfully: https://www.mediawiki.org/wiki/Special:Log?type=delete&user=&page=User%3ADKinzler+%28WMF%29%2Ftest&wpdate=&tagfilter=&subtype=&wpFormIdentifier=logeventslist
