Page MenuHomePhabricator

Error: Call to a member function warning() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Error: Call to a member function warning() on null
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.6/extensions/GrowthExperiments/includes/Mentorship/QuitMentorship.php(134)
#0 /srv/mediawiki/php-1.38.0-wmf.6/extensions/GrowthExperiments/includes/Mentorship/ReassignMenteesJob.php(53): GrowthExperiments\Mentorship\QuitMentorship->doReassignMentees(string)
#1 /srv/mediawiki/php-1.38.0-wmf.6/extensions/EventBus/includes/JobExecutor.php(79): GrowthExperiments\Mentorship\ReassignMenteesJob->run()
#2 /srv/mediawiki/rpc/RunSingleJob.php(76): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#3 {main}
Impact
  • only two exceptions are logged; both are on ckbwiki
  • I checked ckbwiki Homepage - the mentorship module is not present.

Event Timeline

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

[mediawiki/extensions/GrowthExperiments@master] QuitMentorship: Pass a logger

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

This is from the mentor dashboard, updating tags.

The immediate cause is that I forgot to pass a logger to QuitMentorship -- a fixing patch uploaded. However, I'm wondering how it was even executed at ckbwiki, a wiki with mentorship disabled?

This is from the mentor dashboard, updating tags.

The immediate cause is that I forgot to pass a logger to QuitMentorship -- a fixing patch uploaded. However, I'm wondering how it was even executed at ckbwiki, a wiki with mentorship disabled?

Apparently, for some reason, we decided to enable mentor dashboard there, which comes with this special page (although it's supposed to be hard to find it, without link from mentor dashboard).

@Trizek-WMF I'm confused by the combination of mentor dashboard enabled at ckb.wikipedia, while https://ckb.wikipedia.org/wiki/%D8%AA%D8%A7%DB%8C%D8%A8%DB%95%D8%AA:EditGrowthConfig says "Are mentorship features enabled?" ===> "No". Can you please figure out why ckbwiki has mentorship disabled?

Urbanecm_WMF moved this task from Backlog to In review on the User-Urbanecm_WMF (Engineering) board.

Change 735699 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] QuitMentorship: Pass a logger

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.38.0-wmf.6] QuitMentorship: Pass a logger

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

Change 735641 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.38.0-wmf.6] QuitMentorship: Pass a logger

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

Mentioned in SAL (#wikimedia-operations) [2021-11-01T12:07:29Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.6/extensions/GrowthExperiments/includes/Mentorship/QuitMentorshipFactory.php: 4671528977db15b4e287d50980a684223ab6f611: QuitMentorship: Pass a logger (T294665; 1/2) (duration: 00m 56s)

Mentioned in SAL (#wikimedia-operations) [2021-11-01T12:08:24Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.6/extensions/GrowthExperiments/includes/Mentorship/QuitMentorship.php: 4671528977db15b4e287d50980a684223ab6f611: QuitMentorship: Pass a logger (T294665; 2/2) (duration: 00m 55s)

@Trizek-WMF I'm confused by the combination of mentor dashboard enabled at ckb.wikipedia, while https://ckb.wikipedia.org/wiki/%D8%AA%D8%A7%DB%8C%D8%A8%DB%95%D8%AA:EditGrowthConfig says "Are mentorship features enabled?" ===> "No". Can you please figure out why ckbwiki has mentorship disabled?

Mentoring was not turned on when I checked. It is now active.