Page MenuHomePhabricator

Undeleting of an entry (NS=0) is no longer possible in de.wiktionary
Closed, ResolvedPublicPRODUCTION ERROR

Description

Hi,

today I deleted an entry (NS=0) in de.wiktionary: https://de.wiktionary.org/w/index.php?title=Giga-&action=edit&redlink=1

After deleting it I wanted to restore the entry without the 2 newest versions, which were made by an LTA troll.

However, only the following error message then appears in a red frame:
"[XlA-uwpAICsAACYFCI8AAACI] 2020-02-21 20:38:19: Fataler Ausnahmefehler des Typs „Error“"

After a few tests I found out that this error probably only affects to entries in NS = 0. The error also occurs with entries that have been deleted for a long time.

Best regards.
Udo T.

Details

Stack Trace
2020-02-21 20:38:19 [XlA-uwpAICsAACYFCI8AAACI] mw1322 dewiktionary 1.35.0-wmf.20 exception ERROR: [XlA-uwpAICsAACYFCI8AAACI] /w/index.php?title=Spezial:Wiederherstellen&action=submit   Error from line 148 of /srv/mediawiki/php-1.35.0-wmf.20/extensions/Cognate/src/hooks/CognatePageHookHandler.php: Call to a member function getContent() on null {"exception_id":"XlA-uwpAICsAACYFCI8AAACI","exception_url":"/w/index.php?title=Spezial:Wiederherstellen&action=submit","caught_by":"mwe_handler"} 
[Error Error] (/srv/mediawiki/php-1.35.0-wmf.20/extensions/Cognate/src/hooks/CognatePageHookHandler.php:148) Call to a member function getContent() on null
  #0 /srv/mediawiki/php-1.35.0-wmf.20/extensions/Cognate/src/CognateHooks.php(77): Cognate\CognatePageHookHandler->onArticleUndelete(Title)
  #1 /srv/mediawiki/php-1.35.0-wmf.20/includes/Hooks.php(174): Cognate\CognateHooks::onArticleUndelete(Title, boolean, string, integer, array)
  #2 /srv/mediawiki/php-1.35.0-wmf.20/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
  #3 /srv/mediawiki/php-1.35.0-wmf.20/includes/page/PageArchive.php(758): Hooks::run(string, array)
  #4 /srv/mediawiki/php-1.35.0-wmf.20/includes/page/PageArchive.php(437): PageArchive->undeleteRevisions(array, boolean, string)
  #5 /srv/mediawiki/php-1.35.0-wmf.20/includes/specials/SpecialUndelete.php(1225): PageArchive->undelete(array, string, array, boolean, User)
  #6 /srv/mediawiki/php-1.35.0-wmf.20/includes/specials/SpecialUndelete.php(253): SpecialUndelete->undelete()
  #7 /srv/mediawiki/php-1.35.0-wmf.20/includes/specialpage/SpecialPage.php(575): SpecialUndelete->execute(NULL)
  #8 /srv/mediawiki/php-1.35.0-wmf.20/includes/specialpage/SpecialPageFactory.php(621): SpecialPage->run(NULL)
  #9 /srv/mediawiki/php-1.35.0-wmf.20/includes/MediaWiki.php(298): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
  #10 /srv/mediawiki/php-1.35.0-wmf.20/includes/MediaWiki.php(971): MediaWiki->performRequest()
  #11 /srv/mediawiki/php-1.35.0-wmf.20/includes/MediaWiki.php(534): MediaWiki->main()
  #12 /srv/mediawiki/php-1.35.0-wmf.20/index.php(47): MediaWiki->run()
  #13 /srv/mediawiki/w/index.php(3): require(string)
  #14 {main}

Event Timeline

Reedy changed the subtype of this task from "Task" to "Production Error".
Reedy added a project: Cognate.
Reedy edited Stack Trace. (Show Details)
Tarrow added subscribers: Ladsgroup, Tarrow.

Hope it's ok but I'm taking this over in the attempt to finish what we started rather than picking up new work

Change 576830 had a related patch set uploaded (by Tarrow; owner: Tarrow):
[mediawiki/extensions/Cognate@master] Exit undelete hook early if revision not found

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

Change 576830 merged by jenkins-bot:
[mediawiki/extensions/Cognate@master] Exit undelete hook early if revision not found

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

Change 576876 had a related patch set uploaded (by Jforrester; owner: Tarrow):
[mediawiki/extensions/Cognate@wmf/1.35.0-wmf.22] Exit undelete hook early if revision not found

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

Change 576876 merged by jenkins-bot:
[mediawiki/extensions/Cognate@wmf/1.35.0-wmf.22] Exit undelete hook early if revision not found

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

Mentioned in SAL (#wikimedia-operations) [2020-03-05T11:25:45Z] <ladsgroup@deploy1001> Synchronized php-1.35.0-wmf.22/extensions/Cognate: [[gerrit:576876|Exit undelete hook early if revision not found (T245869)]] (duration: 01m 04s)

@Udo_T Hey, Can you try now? I'm not admin in any wiktionary project to test it.

Hi @Ladsgroup, undeleting of entries now works again without problems. Thank you very much for fixing the bug.

Best regards
Udo T.