Page MenuHomePhabricator

Fatal exception of type "MWException" on arzwiki when renaming articles
Open, MediumPublicPRODUCTION ERROR

Description

Description:

  • On arzwiki, the following page exists, but with no content:

File:Arguments (wgArticleId:98165) (Note that this is a file description page but with no file extension in title.)

  • When trying to move the page, it gives this error:
2020-07-18 12:26:57 [04cc76ae-190a-4ef0-9b58-50f06376fe83] mw1261 arzwiki 1.35.0-wmf.41 exception ERROR: [04cc76ae-190a-4ef0-9b58-50f06376fe83] /w/index.php?title=%D8%AE%D8%A7%D8%B5:%D9%86%D9%82%D9%84_%D8%B5%D9%
81%D8%AD%D9%87&action=submit   MWException from line 905 of /srv/mediawiki/php-1.35.0-wmf.41/includes/MovePage.php: Failed to create null revision while moving page ID 98165 to ملف:Arguments2 {"exception_id":"04
cc76ae-190a-4ef0-9b58-50f06376fe83","exception_url":"/w/index.php?title=%D8%AE%D8%A7%D8%B5:%D9%86%D9%82%D9%84_%D8%B5%D9%81%D8%AD%D9%87&action=submit","caught_by":"entrypoint"}
[Exception MWException] (/srv/mediawiki/php-1.35.0-wmf.41/includes/MovePage.php:905) Failed to create null revision while moving page ID 98165 to ملف:Arguments2
  #0 /srv/mediawiki/php-1.35.0-wmf.41/includes/MovePage.php(569): MovePage->moveToInternal(User, Title, string, boolean, array)
  #1 /srv/mediawiki/php-1.35.0-wmf.41/includes/MovePage.php(415): MovePage->moveUnsafe(User, string, boolean, array)
  #2 /srv/mediawiki/php-1.35.0-wmf.41/includes/specials/SpecialMovepage.php(632): MovePage->moveIfAllowed(User, string, boolean)
  #3 /srv/mediawiki/php-1.35.0-wmf.41/includes/specials/SpecialMovepage.php(137): MovePageForm->doSubmit()
  #4 /srv/mediawiki/php-1.35.0-wmf.41/includes/specialpage/SpecialPage.php(600): MovePageForm->execute(NULL)
  #5 /srv/mediawiki/php-1.35.0-wmf.41/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
  #6 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
  #7 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(940): MediaWiki->performRequest()
  #8 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(543): MediaWiki->main()
  #9 /srv/mediawiki/php-1.35.0-wmf.41/index.php(53): MediaWiki->run()
  #10 /srv/mediawiki/php-1.35.0-wmf.41/index.php(46): wfIndexMain()
  #11 /srv/mediawiki/w/index.php(3): require(string)
  #12 {main}

    • When trying to delete the page, it gives this error:
    [7274608c-5d26-49c3-a288-15843dee26ff] 2020-07-18 12:35:29: Fatal exception of type "TypeError"
    2020-07-18 12:35:29 [7274608c-5d26-49c3-a288-15843dee26ff] mw1373 arzwiki 1.35.0-wmf.41 exception ERROR: [7274608c-5d26-49c3-a288-15843dee26ff] /w/index.php?title=%D9%85%D9%84%D9%81:Arguments&action=delete   Typ
    eError from line 84 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/Linter/includes/Hooks.php: Argument 2 passed to MediaWiki\Linter\Hooks::onWikiPageDeletionUpdates() must be an instance of Content, null given,
    called in /srv/mediawiki/php-1.35.0-wmf.41/includes/HookContainer/HookContainer.php on line 320 {"exception_id":"7274608c-5d26-49c3-a288-15843dee26ff","exception_url":"/w/index.php?title=%D9%85%D9%84%D9%81:Argum
    ents&action=delete","caught_by":"entrypoint"}
    [Error TypeError] (/srv/mediawiki/php-1.35.0-wmf.41/extensions/Linter/includes/Hooks.php:84) Argument 2 passed to MediaWiki\Linter\Hooks::onWikiPageDeletionUpdates() must be an instance of Content, null given, c
    alled in /srv/mediawiki/php-1.35.0-wmf.41/includes/HookContainer/HookContainer.php on line 320
      #0 /srv/mediawiki/php-1.35.0-wmf.41/includes/HookContainer/HookContainer.php(320): MediaWiki\Linter\Hooks::onWikiPageDeletionUpdates(WikiFilePage, NULL, array)
      #1 /srv/mediawiki/php-1.35.0-wmf.41/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
      #2 /srv/mediawiki/php-1.35.0-wmf.41/includes/HookContainer/HookRunner.php(4650): MediaWiki\HookContainer\HookContainer->run(string, array)
      #3 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/WikiPage.php(3992): MediaWiki\HookContainer\HookRunner->onWikiPageDeletionUpdates(WikiFilePage, NULL, array)
      #4 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/WikiPage.php(3149): WikiPage->getDeletionUpdates(NULL)
      #5 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/WikiPage.php(2946): WikiPage->doDeleteUpdates(integer, NULL, NULL, User)
      #6 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/WikiPage.php(2787): WikiPage->doDeleteArticleBatched(string, boolean, User, array, string, boolean)
      #7 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/Article.php(2163): WikiPage->doDeleteArticleReal(string, NULL, boolean, NULL, string, User, array, string, boolean)
      #8 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/Article.php(1898): Article->doDelete(string, boolean)
      #9 /srv/mediawiki/php-1.35.0-wmf.41/includes/page/ImagePage.php(1014): Article->delete()
      #10 /srv/mediawiki/php-1.35.0-wmf.41/includes/actions/DeleteAction.php(41): ImagePage->delete()
      #11 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(527): DeleteAction->show()
      #12 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(313): MediaWiki->performAction(ImagePage, Title)
      #13 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(940): MediaWiki->performRequest()
      #14 /srv/mediawiki/php-1.35.0-wmf.41/includes/MediaWiki.php(543): MediaWiki->main()
      #15 /srv/mediawiki/php-1.35.0-wmf.41/index.php(53): MediaWiki->run()
      #16 /srv/mediawiki/php-1.35.0-wmf.41/index.php(46): wfIndexMain()
      #17 /srv/mediawiki/w/index.php(3): require(string)
      #18 {main}

    • There may be other pages like this in the arzwiki database.
    • Ideally, a query should be run on the arzwiki database to discover and delete any such pages (pages in the "File:" namespace but with no content).

    Details

    Request ID
    04cc76ae-190a-4ef0-9b58-50f06376fe83

    Event Timeline

    Aklapper changed the subtype of this task from "Task" to "Production Error".

    https://arz.wikipedia.org/w/api.php?action=query&pageids=98165&prop=info

    {
        "batchcomplete": "",
        "query": {
            "pages": {
                "98165": {
                    "pageid": 98165,
                    "ns": 6,
                    "title": "\u0645\u0644\u0641:Arguments",
                    "contentmodel": "wikitext",
                    "pagelanguage": "arz",
                    "pagelanguagehtmlcode": "arz",
                    "pagelanguagedir": "rtl",
                    "touched": "2014-04-29T19:26:26Z",
                    "lastrevid": 0,
                    "length": 0,
                    "new": ""
                }
            }
        }
    }

    No revision is set for this page (lastrevid) - maybe T115081

    Urbanecm set Request ID to 04cc76ae-190a-4ef0-9b58-50f06376fe83.Jul 18 2020, 9:28 PM
    Urbanecm updated the task description. (Show Details)

    Looks like T115081, judging by DB content and the stacktrace:

    wikiadmin@10.64.0.205(arzwiki)> select * from page where page_id=98165;
    +---------+----------------+------------+-------------------+------------------+-------------+---------------+----------------+--------------------+-------------+----------+--------------------+-----------+
    | page_id | page_namespace | page_title | page_restrictions | page_is_redirect | page_is_new | page_random   | page_touched   | page_links_updated | page_latest | page_len | page_content_model | page_lang |
    +---------+----------------+------------+-------------------+------------------+-------------+---------------+----------------+--------------------+-------------+----------+--------------------+-----------+
    |   98165 |              6 | Arguments  |                   |                0 |           1 | 0.04415192019 | 20140429192626 | NULL               |           0 |        0 | wikitext           | NULL      |
    +---------+----------------+------------+-------------------+------------------+-------------+---------------+----------------+--------------------+-------------+----------+--------------------+-----------+
    1 row in set (0.00 sec)
    
    wikiadmin@10.64.0.205(arzwiki)> select * from revision where rev_page=98165;
    Empty set (0.00 sec)
    
    wikiadmin@10.64.0.205(arzwiki)> select * from archive where ar_page_id=98165;
    Empty set (0.11 sec)
    
    wikiadmin@10.64.0.205(arzwiki)> Bye
    Krinkle reopened this task as Open.EditedAug 12 2020, 1:33 AM
    Krinkle added a subscriber: Krinkle.

    This task is about the production fatal error. If it can't be triggered by logged-out or plain URL, and is considered rare and unimportant by product, and we don't want to fix or work around it, and instead look at the root cause, then please mark it as stalled with T115081 as subtask.

    Until then, re-opening for now.

    Krinkle renamed this task from Fatal exception of type "MWException" on arzwiki to Fatal exception of type "MWException" on arzwiki when renaming articles.Sep 16 2020, 6:46 PM
    Krinkle moved this task from Untriaged to Jul 2020 on the Wikimedia-production-error board.