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.
Issue fork readonly_field_widget-3408630
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:
- 3408630-schema
compare
- 3408630-schema-broken-formattersettings
compare
Comments
Comment #2
thtas commentedWhich 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.
Comment #3
thtas commentedComment #4
astonvictor commentedComment #6
astonvictor commentedI 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:
as a hotfix, you should re-save the widget one more time and export the correct config.
Comment #7
astonvictor commented