Problem/Motivation

Config schema gives an exception on import:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for core.entity_form_display.commerce_order_item.c4c_loan.default with the following errors: core.entity_form_display.commerce_order_item.c4c_loan.default:content.field_c4c_interest_payout.settings.formatter_settings variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence

The form display is like this:

...
content:
  purchased_entity:
    type: readonly_field_widget
    weight: 0
    region: content
    settings:
      label: above
      formatter_type: null
      formatter_settings: null
      show_description: false
    third_party_settings: {  }

Proposed resolution

Fix it.

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

geek-merlin created an issue. See original summary.

thtas’s picture

Which formatter plugin was this with? I believe the config schema is correct (sequence makes sense to me anyway), so the problem seems more about how the formatter is saving these values.

thtas’s picture

Status: Active » Postponed (maintainer needs more info)
astonvictor’s picture

Version: 8.x-1.x-dev » 2.1.x-dev

astonvictor changed the visibility of the branch 3408630-schema-broken-formattersettings to hidden.

astonvictor’s picture

I guess it's related to the update in the commit: https://git.drupalcode.org/project/readonly_field_widget/-/commit/956cf9...

The type and schema were changed without database updates:

-     'formatter_settings' => NULL,
+     'formatter_settings' => [],

as a hotfix, you should re-save the widget one more time and export the correct config.

astonvictor’s picture

Status: Postponed (maintainer needs more info) » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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