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.
To help with debugging, I have created a repo for doing a fresh D8 install with Features and a custom profile: https://github.com/mrkmiller/Install-Error-Debug. Run composer install; then install the site.
master branch
There is a module in the profile called z_base_block
with config field.storage.block_content.body.yml
that is normally provided by core. The master branch will install just fine because the module is named z_base_block
.
error-naming branch
Then checkout the "error-naming" branch which renames the module to a_base_block
. This will throw an error every time on install.
Drupal\Core\Config\PreExistingConfigException: Configuration objects (field.storage.block_content.body) provided by a_base_block already exist in active configuration in /{root_path}/web/core/lib/Drupal/Core/Config/PreExistingConfigException.php:65
Comments
Comment #2
rmpereira CreditAttribution: rmpereira commentedI have the same problem.
Until this bug is fix, it's possible to install in two steps :
- Don't add features in the profile config
- Activate features after install
Comment #3
nedjoThis is not supported, unless the feature module is the install profile.