Page MenuHomePhabricator

Email users on all changes spams exceptions on default config
Closed, ResolvedPublic

Description

> var_dump($wgUsersNotifiedOnAllChanges);
array(1) {
  [0]=>
  string(0) ""
}

was giving

TypeError: Argument 1 passed to EmailNotification::compose() must implement interface MediaWiki\Mail\UserEmailContact, bool given, called in /srv/mediawiki/w/includes/mail/EmailNotification.php on line 297

https://github.com/miraheze/mediawiki/pull/7044 is my attempt at stopping it.

Event Timeline

RhinosF1 triaged this task as Medium priority.
RhinosF1 moved this task from Backlog to Hacking Projects on the Wikimedia-Hackathon-2022 board.

Change 795246 had a related patch set uploaded (by RhinosF1; author: RhinosF1):

[mediawiki/core@master] notifications: prevent log spam when invalid user object listed.

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

Change 795246 merged by jenkins-bot:

[mediawiki/core@master] notifications: prevent log spam when invalid user object listed.

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

Change 802609 had a related patch set uploaded (by Jforrester; author: RhinosF1):

[mediawiki/core@REL1_38] notifications: prevent log spam when invalid user object listed.

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

Change 802609 merged by jenkins-bot:

[mediawiki/core@REL1_38] notifications: prevent log spam when invalid user object listed.

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