Merge vars description is not valid yaml according to yaml_parse

Created on 29 May 2020, over 4 years ago
Updated 7 December 2023, about 1 year ago

Without php-yaml extension current example is valid, but fails when extension is enabled.

How to reproduce the issue:

1) Install php-yaml php extension.
2) Add FNAME: [webform_submission:values:first_name] to Merge vars field and submit the configuration form.
3) Following error is produced:

yaml_parse(): scanning error encountered during parsing: found unexpected ':' (line 1, column 27), context while scanning a plain scalar (line 1, column 9)
🐛 Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

🇫🇮Finland sokru

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands frontmobe Amsterdam

    I can confirm the issue still exists when trying to use webform_mailchimp module on Pantheon (webform_mailchimp 5.10, webform 6.1.6, mailchimp 2.2.2, Drupal 9.5.11, PHP 8.1.26).

    Using the code FNAME: '[webform_submission:values:first_name]' locally without php-yaml installed also works, so the instruction of adding the '' around the token seems to work with OR without php-yaml installed.

    Should the patch in #2 be committed? Its seems to fix the issue regardless of php-yaml being installed..

Production build 0.71.5 2024