Extension Contributors Update script error
MediaWiki 1.37.2 // Extension Contributors: REL1_37 (2022-03-23T07:07:35)
When launching the upgrade script (php extensions/Contributors/maintenance/PopulateContributorsTable.php), I get :
Error: Class 'Revision' not found
In the script, this is the line causing the error :
$dbr->bitAnd( 'rev_deleted', Revision::DELETED_USER ) . ' = 0'
I edited the script PopulateContributorsTable.php as suggested here: https://www.mediawiki.org/wiki/User_talk:Shirayuki:
- Add use MediaWiki\Revision\RevisionRecord;
- Replace Revision::DELETED_USER with RevisionRecord::DELETED_USER
However, I still get the following error:
Error 1054: Unknown column 'rev_user' in 'field list' (localhost)