Error when moving a certain page on the wiki

Has something gone haywire? Let us know about it!
Post Reply
Ian07
Posts: 447
Joined: September 22nd, 2018, 8:48 am

Error when moving a certain page on the wiki

Post by Ian07 » December 6th, 2019, 4:01 pm

Trying to move Pre-pulsar shuttle 29 to p29 pre-pulsar shuttle per a tiki bar discussion and both 77topaz and me who have tried it have gotten this error:

Code: Select all

[XeqmdNKT-pgzLIZrCzKcDgAAAAU] 2019-12-06 19:05:25: Fatal exception of type "MediaWiki\Revision\IncompleteRevisionException"
None of the other pages I moved had this issue. I thought it might be because there was already a redirect at that new location, but deleting it didn't fix the issue. Someone on the MediaWiki Discord server pointed me to this support desk topic discussing this: https://www.mediawiki.org/wiki/Topic:V0tny3da8oekkm2o

Ian07
Posts: 447
Joined: September 22nd, 2018, 8:48 am

Re: Error when moving a certain page on the wiki

Post by Ian07 » January 4th, 2020, 10:15 pm

Okay so yesterday I ran into this same issue while trying to move some file pages (since the pnames for the patterns were changed a while ago) in order to fix the file links, e.g. for Special:MovePage/File:123p271.gif I'm trying to move it to 123p27.1.gif to match the 123P27.1 article.

I don't think the extra period is the problem because i made a test image named periodtest.1.gif and it worked fine; it's just that moving these pages seems to always result in an error.

Ian07
Posts: 447
Joined: September 22nd, 2018, 8:48 am

Re: Error when moving a certain page on the wiki

Post by Ian07 » January 5th, 2020, 8:11 pm

@Nathaniel: It looks like something about the old revisions from before MediaWiki 1.19 being dealt with in 1.33 is causing the issue. Before October the last time we updated was in 2014, and this issue looks like it only started cropping up in 2018, hence why it only appeared for us after we updated in late 2019. Meanwhile the images I'm trying to move were mostly all made way back in 2009, well before 1.19 came out.

Luckily the discussion topic I linked to in the first post in this thread suggests running a repopulation script which may fix the issue with page moving by bringing all the old revisions to be fully compatible with the newer version of MediaWiki: https://www.mediawiki.org/wiki/Manual:P ... onSha1.php

(I'm not sure why the "dummy text" solution worked though; I'd rather not have to do that because that would make the process several times more tedious for me. I thought for a second it was because now the new revision was made in the new MediaWiki version, but that doesn't explain the deal with Pre-pulsar shuttle 29 from last month; before trying to move it I had already edited the page a few days earlier)

User avatar
Nathaniel
Site Admin
Posts: 520
Joined: December 10th, 2008, 3:48 pm
Location: New Brunswick, Canada
Contact:

Re: Error when moving a certain page on the wiki

Post by Nathaniel » January 6th, 2020, 11:16 am

Ian07 wrote:
January 5th, 2020, 8:11 pm
Luckily the discussion topic I linked to in the first post in this thread suggests running a repopulation script which may fix the issue with page moving by bringing all the old revisions to be fully compatible with the newer version of MediaWiki: https://www.mediawiki.org/wiki/Manual:P ... onSha1.php
Unfortunately I've already run that maintenance script (even with the --force option) and it doesn't seem to have fixed these problems. :/ Still not sure how to fix these problems or why MediaWiki's update script didn't properly update the database.

Ian07
Posts: 447
Joined: September 22nd, 2018, 8:48 am

Re: Error when moving a certain page on the wiki

Post by Ian07 » January 6th, 2020, 6:26 pm

I asked about this on the MediaWiki Discord server. They linked to this thread where the user seems to have had the same issue with populateRevisionSha1.php failing to fix it, and also proposed a few solutions. The first is to try running populateContentTables.php prior to running populateRevisionSha1.php. If that still doesn't work, there's another method involving SQL which is unfortunately beyond my understanding of MediaWiki, but you can read about it here: https://www.mediawiki.org/w/index.php?t ... zquqle7vi9

Post Reply