Problem/Motivation

The website encountered an unexpected error. Try again later.

LogicException: The mapping definition at `core.entity_view_display.node.article.default.content.field_facebook_comments.settings:facebook_comments_style` is invalid: its `type` key contains a string. It must be an array. in Drupal\Core\Config\Schema\Mapping->__construct() (line 38 of core/lib/Drupal/Core/Config/Schema/Mapping.php).

Drupal Version
10.6.9

Steps to reproduce

1. Go to the manage display of the content type, which has facebook comments field (Article in my case).
2. Without even changing any parameters save the configuration.
3. You will see the white screen with an error.

Proposed resolution

Update the facebook_comments_style in the comfig/install/facebook_comments.schema.yml.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

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

just-me created an issue. See original summary.

just-me’s picture

Assigned: just-me » Unassigned

adityarawat_ln made their first commit to this issue’s fork.

adityarawat_ln’s picture

Status: Active » Needs review

I was able to reproduce the reported schema validation error when saving the Article display configuration with a Facebook Comments field.

The issue was caused by the invalid facebook_comments_style mapping in facebook_comments.schema.yml. I corrected the nested schema definition and verified that the display configuration now saves successfully without the error.

A merge request has been created with the fix for review.