Fatal error sending email with rules

Created on 23 October 2024, 4 months ago

Set up a "send email" rule with the "to" address being node.uid.entity.mail on condition rules_entity_insert:node

Rules throws a fatal error every time the rule fires:

TypeError: Drupal\rules\Plugin\RulesAction\SystemSendEmail::doExecute(): Argument #1 ($to) must be of type array, Drupal\Core\Field\FieldItemList given in Drupal\rules\Plugin\RulesAction\SystemSendEmail->doExecute() (line 155 of public_html/modules/contrib/rules/src/Plugin/RulesAction/SystemSendEmail.php).

Not sure how this is passing tests, but clearly some coverage is missing.

πŸ› Bug report
Status

Active

Version

4.0

Component

Rules Core

Created by

πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024