Problem/Motivation
Cannot add a composite.
Steps to reproduce
Using almost vanilla Drupal 9.1.8 with Webform 6.0.3.
Wanted to add a new composite at /admin/structure/webform/config/composite/add
Got an error: The website encountered an unexpected error. Please try again later.
Found this message in the log:
TypeError: Argument 1 passed to Symfony\Component\Yaml\Parser::parse() must be of the type string, null given, called in /app/web/core/lib/Drupal/Component/Serialization/YamlSymfony.php on line 37 in Symfony\Component\Yaml\Parser->parse() (line 79 of /app/vendor/symfony/yaml/Parser.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | webform_composite-cannot_add_a_composite-3215595-0.patch | 783 bytes | rik_deuzeman |
Issue fork webform_composite-3215595
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rik_deuzeman commentedThis error is caused by parsing elements before checking if they exists.
Patch added.
Comment #5
WebbehGiven #4 and the MR, this is For Review.
Comment #6
WebbehGiven the ambiguous title, changing the issue to the title of the error.
Just ran into this issue, +1 to the patch in #4 an/or MR 1, so moving to RTBC.
Comment #7
wesleydv commentedTested on Drupal 9.2.8 and Webform 6.1.0, all is still ok can be committed
Comment #10
richgerdesLooks like some great collaboration here! Sorry I haven't gotten to committing this sooner. Thank you all for you hard work!
I've committed it and released it as part of 1.0-rc3.