Page MenuHomePhabricator

TypeError: GrowthExperiments\MentorDashboard\MenteeOverview\MenteeOverviewDataUpdater::updateDataForMentor(): Argument #1 ($mentor) must be of type MediaWiki\User\UserIdentity, string given, called in /srv/mediawiki/php-1.45.0-
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.45.0-wmf.23
  • timestamp: 2025-10-21T15:51:38.901Z
  • phpversion: 8.1.33
  • reqId: ccbcee99c7642392ca2edc59
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   TypeError: GrowthExperiments\MentorDashboard\MenteeOverview\MenteeOverviewDataUpdater::updateDataForMentor(): Argument #1 ($mentor) must be of type MediaWiki\User\UserIdentity, string given, called in /srv/mediawiki/php-1.45.0-
Impact

Happens manually when a server admin wants to update mentor data for a single user.

Notes

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Michael subscribed.

Happens manually when a server admin wants to update mentor data for a single user.

That is, when running a maintenance script? Probably something we should fix soon as it is hopefully simple to fix, but probably also not very urgent in itself?

Change #1210580 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] updateMenteeData: Actually respect --mentor

https://gerrit.wikimedia.org/r/1210580

Urbanecm_WMF triaged this task as Low priority.

Change #1210580 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] updateMenteeData: Actually respect --mentor

https://gerrit.wikimedia.org/r/1210580