Base field override configuration is not getting imported after core upgrade 10.2

Created on 23 April 2024, 12 months ago

I have upgraded drupal core from 10.1.8 to 10.2.5. All base field configuration is not getting imported. Below is the one of the example

Config name : core.base_field_override.node.page.promote.yml

uuid: 69be9e46-6806-4c5d-83c7-bf3312538678
langcode: en
status: true
dependencies:
config:
- node.type.page
_core:
default_config_hash: vdYkuvvyzCU3dFiOu7LULd-uZyENb_byNYidQVIZtXk
id: node.page.promote
field_name: promote
entity_type: node
bundle: page
label: 'Promoted to front page'
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India ashetkar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ashetkar
  • 🇮🇳India ashetkar

    [error] Error: Call to a member function getSettings() on null in Drupal\Core\Field\FieldConfigBase->getSettings() (line 372 of /home/vsts/work/1/s/docroot/core/lib/Drupal/Core/Field/FieldConfigBase.php) #0 /home/vsts/work/1/s/docroot/core/lib/Drupal/Core/Field/FieldConfigBase.php(287): Drupal\Core\Field\FieldConfigBase->getSettings()

    Getting above issue on config import.

  • Status changed to Postponed: needs info about 2 months ago
  • 🇦🇺Australia jannakha Brisbane!

    Can you please provide more details?
    I've tested core.base_field_override.node.mdb_page.promote.yml on 10.4 - I didn't find any issues with export/import.

    Here's example of config:

    uuid: e1ff4807-ef12-49c0-ac95-2c1100875e5c
    langcode: en
    status: true
    dependencies:
      config:
        - node.type.mdb_page
    id: node.mdb_page.promote
    field_name: promote
    entity_type: node
    bundle: mdb_page
    label: 'Promoted to front page ok'
    description: 'generic description of a field'
    required: false
    translatable: true
    default_value:
      -
        value: 1
    default_value_callback: ''
    settings:
      on_label: 'On'
      off_label: 'Off'
    field_type: boolean
    
Production build 0.71.5 2024