Topic on Extension talk:ReadingLists

Lwangaman (talkcontribs)

I recently upgraded my MediaWiki instance to v1.42, but I'm now getting the following error when running the maintenace update script:

[0d976982048ca6a29ed87177] [no req]   TypeError: MediaWiki\User\CentralId\CentralIdLookup::centralIdFromLocalUser(): Argument #1 ($user) must be of type MediaWiki\User\UserIdentity, null given, called in /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/extensions/ReadingLists/src/Utils.php on line 48

Backtrace:

from /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/includes/user/CentralId/CentralIdLookup.php(299)

#0 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/extensions/ReadingLists/src/Utils.php(48): MediaWiki\User\CentralId\CentralIdLookup->centralIdFromLocalUser()

#1 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/extensions/ReadingLists/src/SchemaHookHandler.php(30): MediaWiki\Extension\ReadingLists\Utils::makeMaintenanceRepository()

#2 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/includes/installer/DatabaseUpdater.php(605): MediaWiki\Extension\ReadingLists\SchemaHookHandler::populateProjectsTable()

#3 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/includes/installer/DatabaseUpdater.php(563): MediaWiki\Installer\DatabaseUpdater->runUpdates()

#4 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/maintenance/update.php(189): MediaWiki\Installer\DatabaseUpdater->doUpdates()

#5 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/maintenance/includes/MaintenanceRunner.php(698): UpdateMediaWiki->execute()

#6 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()

#7 /var/www/vhosts/bibleget.io/seminaverbi_1_42/w/maintenance/run(3): require(string)

#8 {main}
Tgr (WMF) (talkcontribs)

Something is wrong with your Maintenance script user, maybe some extension is preventing the use of that username?

Lwangaman (talkcontribs)

I was running the script from the command line, so no specific user was running the script

Tgr (WMF) (talkcontribs)

Regardless, many maintenance scripts need to use that user.

Reply to "Error in MW 1.42"