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.

Issue fork vmi-3186937

Command icon 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

yasmeensalah created an issue. See original summary.

yasmeensalah’s picture

StatusFileSize
new779 bytes
yasmeensalah’s picture

Status: Active » Needs review
rajab natshah’s picture

Title: Fix PHP Exception » Fix PHP Exception for VMI module on escaped characters in sequences/mappings in *.yml files with latest Symfony/yaml

  • RajabNatshah committed d70c652 on 8.x-2.x
    Issue #3186937 by yasmeensalah: Fix PHP Exception for VMI module on...
rajab natshah’s picture

Thank you, Yasmeen for reporting and patching.

Committed ...
Tested with:

  • Test Content type with the Image field
  • Test Content type with the Video field
  • Test Content type with the media field

rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Issue tags: +varbase-8.8.9, +varbase-9.0.0, +varbase-9.0.0-rc1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.