Steps to replicate the issue (include links if applicable):
- Go to https://meta.wikimedia.beta.wmflabs.org
- Create an event page, enable registration
- Log in as a user with an email address set in your preferences
- Register for the event you just created
- Now log in as the organizer again
- Go to Special:EventDetails for the event you created, open the participants tab
- Click "Message all participants"
- Enter message summary and body, submit the form
What happens?:
The participant does not receive the email.
What should have happened instead?:
The participant should receive the email.
Software version (skip for WMF-hosted wikis like Wikipedia):
master
Other information (browser name/version, screenshots, etc.):
I could find the following error on logstash:
TypeError: Typed property MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob::$to must be an instance of MailAddress, array used
from /srv/mediawiki/php-master/extensions/CampaignEvents/src/Messaging/EmailUsersJob.php(38)
#0 /srv/mediawiki/php-master/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob->__construct(MediaWiki\Title\Title, array)
#1 /srv/mediawiki/php-master/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /srv/mediawiki/php-master/includes/jobqueue/JobFactory.php(93): Wikimedia\ObjectFactory\ObjectFactory->createObject(string, array)
#3 /srv/mediawiki/php-master/extensions/EventBus/includes/JobExecutor.php(193): MediaWiki\JobQueue\JobFactory->newJob(string, array)
#4 /srv/mediawiki/php-master/extensions/EventBus/includes/JobExecutor.php(45): MediaWiki\Extension\EventBus\JobExecutor->getJobFromParams(array)
#5 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#6 {main}Which is quite weird, because this was not detected by tests and phan, and I also cannot reproduce the issue locally.



