Problem/Motivation
Drupal 9 after new symfony/yaml release we got this error when enabling a new VMI viewmode.
Uncaught PHP Exception Symfony\\Component\\Yaml\\Exception\\ParseException: "Unexpected characters near "assets/config_templates/CONTENT_TYPE_NAME/core.entity_view_display.node.CONTENT_TYPE_NAME.vertical_media_teaser_small.yml' " at line 28 (near "config_template: '/src/assets/config_templates/CONTENT_TYPE_NAME/core.entity_view_display.node.CONTENT_TYPE_NAME.vertical_media_teaser_small.yml' ")."
Steps to reproduce
- Go to any content type
- Enable a new viewmode from VMI
Proposed resolution
Inside src/assets/config_templates/CONTENT_TYPE_NAME/core.entity_view_display.node.CONTENT_TYPE_NAME.vertical_media_teaser_small.yml file line 28 there is an extra space at the end of the line we should remove this.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | i3Manage-display-dev-varbase9c1.png | 452.9 KB | rajab natshah |
| #7 | i2Manage-display-dev-varbase9c1.png | 465.37 KB | rajab natshah |
| #7 | iManage-display-dev-varbase9c1.png | 270.67 KB | rajab natshah |
| #2 | 3186937-fix-php-exception-2.patch | 779 bytes | yasmeensalah |
Issue fork vmi-3186937
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 #2
yasmeensalah commentedComment #3
yasmeensalah commentedComment #4
rajab natshahComment #7
rajab natshahThank you, Yasmeen for reporting and patching.
Committed ...
Tested with:
Comment #8
rajab natshahComment #9
rajab natshah