Problem/Motivation

When I create an entity reference field to "Field" config entity, I get this error:

Drupal\Core\Config\ConfigValueException: node.article.body key contains a dot which is not supported. in Drupal\Core\Config\ConfigBase->validateKeys() (line 211 of core/lib/Drupal/Core/Config/ConfigBase.php).

Steps to reproduce

1. Create a custom block type (/admin/structure/block/block-content/types/add)
2. Add a new field to the custom block type
2.1 Reference > Other
3. Select Field under Configuration
4. Change it to Unlimited (multivalue)
5. Reference method: Config filtered by specific fields
6. Select Body from Node Article (you need to inspect in order to figure that out) - See attached image
7. Click on save

Result:

Drupal\Core\Config\ConfigValueException: node.article.body key contains a dot which is not supported. in Drupal\Core\Config\ConfigBase->validateKeys() (line 211 of core/lib/Drupal/Core/Config/ConfigBase.php).
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

carolpettirossi created an issue. See original summary.

Luke.Leber made their first commit to this issue’s fork.

luke.leber’s picture

Ouch! This is a nasty issue.

I think we can probably take the approach that was taken in https://www.drupal.org/project/drupal/issues/2780869 to fix this.

luke.leber’s picture

Priority: Normal » Critical
Status: Active » Needs review

Thank you for a very detailed bug report. I've escalated to critical because this involves a WSOD.

  • Luke.Leber committed 1a4615e on 1.0.x
    Issue #3269512 by Luke.Leber, carolpettirossi: Fatal error when creating...
luke.leber’s picture

Status: Needs review » Fixed

Committed and pushed to 1.0.x - thanks!

Status: Fixed » Closed (fixed)

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