Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After using the config_installer the status report indicates that the entity and field definitions are not up-to-date. Thanks to @andrewsuth for reporting this in IRC.
Steps to reproduce
- Install minimal
- Export configuration
- Use that configuration with the config_installer
- Visit the status report
Expected result
Entity/field definitions report as Up to date
Actual result
The six entity types provided by core report as needing to be installed.
Proposed resolution
Call install_core_entity_type_definitions()
during installation.
For existing sites the fix is to use drush to run a script to call the function manually.
drush ev "require_once DRUPAL_ROOT . '/core/includes/install.core.inc'; install_core_entity_type_definitions();"
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2636564.2.patch | 1.54 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottComment #4
alexpottComment #5
andrewsuth CreditAttribution: andrewsuth commented@alexpott I reported this issue in IRC, thanks for taking the time to write this up and even supply a patch.
We'll be testing it tomorrow.
Comment #6
netamorfose CreditAttribution: netamorfose at World Food Programme commented@alexpott I have extensively tested the patch provided in #2 and can't reproduce anymore the bug. Thank you for on providing a solution so fast.
I have tested the patch on a vanilla bare minimal installation and also with our set of configurations, in both cases everything was fine.
Comment #7
alexpottI'll take #6 as an rtbc then :)
Comment #8
alexpottCommitted.