Page MenuHomePhabricator

MWException renaming a file: Failed to create null revision while moving page ID
Closed, DuplicatePublicPRODUCTION ERROR

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
[20fd00b4-3a9c-4072-b699-6e3a9bc8d792] Caught exception of type MWException

But after hitting the move button again without changing anything, the page was moved.

What should have happened instead?:
Page should have been moved the first time.

T213631 or T258321 might be related.

Failed to create null revision while moving page ID 67991059 to File:Have_Mare_Hira_Nathi_Ghasva.jpg (page ID 67991059)

from /srv/mediawiki/php-1.37.0-wmf.9/includes/MovePage.php(967)
#0 /srv/mediawiki/php-1.37.0-wmf.9/includes/MovePage.php(652): MovePage->moveToInternal(User, Title, string, boolean, array)
#1 /srv/mediawiki/php-1.37.0-wmf.9/includes/MovePage.php(464): MovePage->moveUnsafe(User, string, boolean, array)
#2 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMove.php(213): MovePage->move(User, string, boolean, array)
#3 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMove.php(110): ApiMove->movePage(Title, Title, string, boolean, array)
#4 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(1714): ApiMove->execute()
#5 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(684): ApiMain->executeAction()
#6 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(655): ApiMain->executeActionWithErrorHandling()
#7 /srv/mediawiki/php-1.37.0-wmf.9/api.php(90): ApiMain->execute()
#8 /srv/mediawiki/php-1.37.0-wmf.9/api.php(45): wfApiMain()
#9 /srv/mediawiki/w/api.php(3): require(string)
#10 {main}

Details

Request URL
https://en.wikipedia.org/wiki/File:Have_Mare_Hura_Nathu_Ghasva.jpg

Event Timeline

Aklapper changed the subtype of this task from "Bug Report" to "Production Error".Jun 22 2021, 2:42 PM
Aklapper renamed this task from Caught exception of type MWException when renaming a file to MWException renaming a file: Failed to create null revision while moving page ID.Jun 22 2021, 2:46 PM
Aklapper set Request URL to https://en.wikipedia.org/wiki/File:Have_Mare_Hura_Nathu_Ghasva.jpg.
Aklapper updated the task description. (Show Details)
Aklapper set Phatality ID to ebc882ee44de52dd3ecf6470a110c54f2a3c66105ccfae3402ead978469ca4f6.
Krinkle subscribed.

This issue is unlikely to be related to the API system, let's start investigation of this at the MovePage component (it is exposed via both special pages and API, but those are fairly simple wrappers).