Happening in a new mediawiki installation where database was restored using maintenance script importDump.php. All pages are now unchecked. To avoid having to check 100's of pages. I wanted to use the following maintenance script.
php reviewAllPages.php --username Patrick
issue:
Auto-reviewing all current page versions... Reviewer username: Patrick ...doing page_id from 2 to 101 InvalidArgumentException from line 302 of /var/www/w/includes/CommentStore.php: $row does not contain fields needed for comment rev_comment #0 /var/www/w/includes/CommentStore.php(403): CommentStore->getCommentInternal(Object(Wikimedia\Rdbms\DBConnRef), 'rev_comment', Array, true) #1 /var/www/w/includes/Revision/RevisionStore.php(1529): CommentStore->getCommentLegacy(Object(Wikimedia\Rdbms\DBConnRef), 'rev_comment', Object(stdClass), true) #2 /var/www/w/includes/Revision/RevisionStore.php(1387): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots(Object(stdClass), NULL, 1, Object(Title), false) #3 /var/www/w/extensions/FlaggedRevs/maintenance/reviewAllPages.php(79): MediaWiki\Revision\RevisionStore->newRevisionFromRow(Object(stdClass), 1) #4 /var/www/w/extensions/FlaggedRevs/maintenance/reviewAllPages.php(31): ReviewAllPages->autoreview_current(Object(User)) #5 /var/www/w/maintenance/doMaintenance.php(107): ReviewAllPages->execute() #6 /var/www/w/extensions/FlaggedRevs/maintenance/reviewAllPages.php(106): require_once('/var/www/w/main...') #7 {main}
mediawiki version: 1.35.1
T252043 might be related.
Please advice.