Page MenuHomePhabricator

TypeError: Argument 3 passed to MediaWiki\Mail\Emailer::send() must be of the type string, null given, called in /srv/mediawiki/php-1.38.0-wmf.25/includes/specials/SpecialEmailUser.php on line 500
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 3 passed to MediaWiki\Mail\Emailer::send() must be of the type string, null given, called in /srv/mediawiki/php-1.38.0-wmf.25/includes/specials/SpecialEmailUser.php on line 500
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.25/includes/mail/Emailer.php(43)
#0 /srv/mediawiki/php-1.38.0-wmf.25/includes/specials/SpecialEmailUser.php(500): MediaWiki\Mail\Emailer->send(MailAddress, MailAddress, NULL, string, NULL, array)
#1 /srv/mediawiki/php-1.38.0-wmf.25/includes/api/ApiEmailUser.php(69): SpecialEmailUser::submit(array, DerivativeContext)
#2 /srv/mediawiki/php-1.38.0-wmf.25/includes/api/ApiMain.php(1892): ApiEmailUser->execute()
#3 /srv/mediawiki/php-1.38.0-wmf.25/includes/api/ApiMain.php(870): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.38.0-wmf.25/includes/api/ApiMain.php(841): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.38.0-wmf.25/api.php(90): ApiMain->execute()
#6 /srv/mediawiki/php-1.38.0-wmf.25/api.php(45): wfApiMain()
#7 /srv/mediawiki/w/api.php(3): require(string)
#8 {main}

Details

Request URL
https://www.mediawiki.org/w/api.php

Event Timeline

Change 771098 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@master] ApiEmailUser: Mark the subject as a required parameter

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

Change 771098 merged by jenkins-bot:

[mediawiki/core@master] ApiEmailUser: Mark the subject as a required parameter

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

Func claimed this task.

Note this is fixed only in master, which is 1.39 now. The error seems to be in 1.38.0-wmf.25, but I guess it's rare enough that this may not matter