Recently installed MW 1.32 in parallel with 1.29. (Site has less than 50 pages and around 300 revisions total.) Ran the update script. 1.29 instance still works fine, but on 1.32 around 20% of pages crash with an error related to missing revision ids in the database.
Steps to Reproduce:
- Install MW 1.29.
- Make a half dozen edits to several pages.
- Backup the database.
- Install MW 1.32 in parallel.
- Run update.php.
- Navigate to edited pages. Several of them should fail to load, with an error related to their revision ids not being found in the database.
Actual Results:
Approximately 20% of pages give the following error (with $wgShowExceptionDetails enabled):
Original exception: [long hash] /wiki/index.php/Main_Page MediaWiki\Revision\RevisionAccessException from line 1635 of /var/www/html/wiki/includes/Revision/RevisionStore.php: Main slot of revision 296 not found in database!
Expected Results:
Pages should load properly.
Temporary Fix:
Add to LocalSettings.php either:
- $wgMultiContentRevisionSchemaMigrationStage = SCHEMA_COMPAT_OLD;, or
- $wgMultiContentRevisionSchemaMigrationStage = SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD;
Both will work.
Happy to provide database sql file for reproduction.