I got the error "The website encountered an unexpected error. Try again later." after save a new node which I have set to send an an email address. after new node saved .
I get this message in log :
TypeError: Drupal\typed_data\PlaceholderResolver::scan(): Argument #1 ($text) must be of type string, null given, called in /home/thezerocom/public_html/web/modules/contrib/rules/src/Plugin/RulesDataProcessor/TokenProcessor.php on line 69 in Drupal\typed_data\PlaceholderResolver->scan() (line 180 of /home/thezerocom/public_html/web/modules/contrib/typed_data/src/PlaceholderResolver.php).
This is my rule exported :
uuid: 1cba4fe4-3b7a-4fa7-8b1e-a5574d99a414
langcode: en-gb
status: true
dependencies: { }
id: qa_email_to_admin
label: 'QA email to admin'
events:
-
event_name: 'rules_entity_insert:node--q_a'
description: ''
tags: { }
config_version: '3'
expression:
id: rules_rule
uuid: 1a2a9078-dbff-403d-908a-e8b7395c42d2
weight: 0
conditions:
id: rules_and
uuid: fbf5651e-ebe0-4801-b87c-ed0234e1d8d3
weight: 0
conditions: { }
actions:
id: rules_action_set
uuid: 591b60fc-132e-4ea8-8d4b-f7b338518a92
weight: 0
actions:
-
id: rules_action
uuid: c898f102-dc8c-422e-af83-f59ca99fce75
weight: 0
action_id: rules_send_email
context_values:
to:
- 123456@gmail.com
subject: 'Q&A posted on abc.com'
message: 'Q&A posted on abc.com'
reply: ''
language: ''
context_mapping: { }
context_processors:
to:
rules_tokens: { }
subject:
rules_tokens: { }
message:
rules_tokens: { }
reply:
rules_tokens: { }
language:
rules_tokens: { }
provides_mapping: { }
Drupal 10.5x, please advise how can I fix this , Thank you.
Active
4.0
Rules Core