- 🇮🇳India shradha.gupta87
Hi,
I can confirmed the fix in #6 worked for me as a workaround. You need to switch to direct input mode and add you mail value in
{{node.field_mail.value}} in this format. And you are done. :)Thanks.
- 🇺🇸United States iseeaflyingcrane
Hello, I tried the direct input mode and put the token in double parenthesis. But I still get the same error as below. I am using rules 4.0.0 and typed_data 2.1.0. Any idea how to fix this?
TypeError: Drupal\typed_data\PlaceholderResolver::scan(): Argument #1 ($text) must be of type string, null given, called in /rules/src/Plugin/RulesDataProcessor/TokenProcessor.php on line 69 in Drupal\typed_data\PlaceholderResolver->scan() (line 178 of modules/contrib/typed_data/src/PlaceholderResolver.php).
Also when I use the direct input mode, and put an actual email address xxx@gmail.com I still got the same error. Help please!
- 🇨🇦Canada ambient.impact Toronto
@iseeaflyingcrane I think you need to include the
@
. This works for me to send to the current user:{{ @user.current_user_context:current_user.mail.value }}
See also #2849810: Data processors do not check type before performing type-specific operations → .