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
If you have config translation yml files (for example translation of some field label etc.) in folder config/sync/language/<langcode>/
, you would get errors about not existing field like
[Drupal\Core\Field\FieldException]
Attempt to create a field field_name that does not exist on entity type paragraph.
Steps to reproduce:
- Install pure drupal 8 with minimal install profile.
- Install default_content, config_translation modules.
- Add some language.
- Add some content type or bundle of some entity type.
- Add translation of some field configuration (translate label etc).
- Add some some entities.
- Create and enable custom module with exported by default_content.
- Run
drush cex -y
. - Run
drush site-install --db-url=mysql://someuser:somepass@localhost/somedatabase --account-pass=admin --existing-config -y -vvv
.
Proposed resolution
Patch from this issue:
https://www.drupal.org/project/drupal/issues/2955457#comment-12896738
Comments
Comment #2
Chewie CreditAttribution: Chewie commentedComment #3
sarci CreditAttribution: sarci commentedI'm experiencing the same issue. What kind of solution could be used to solve the problem?
Comment #4
pfrenssenI have not looked into this but initial starting points in investigating this could be:
Comment #5
Chewie CreditAttribution: Chewie commentedI have added patch which could be related to current issue:
https://www.drupal.org/project/drupal/issues/2955457#comment-12896738
Comment #6
Chewie CreditAttribution: Chewie commentedComment #7
Chewie CreditAttribution: Chewie commented@pfrenssen I did recheck.
1. So dependencies is correct in active storage configs.
2. Tried patch from issue https://www.drupal.org/project/drupal/issues/2922417. It also doesn't help.
Comment #8
Chewie CreditAttribution: Chewie commentedComment #9
pfrenssenLet's try if this is possibly fixed by the patch from #2999061: Non interactive install with configuration overrides is broken. In that patch a fix is included that will rebuild the container during a non-interactive installation which is the installation type used for doing an install from config with Drush.
I have a feeling that this might solve the problem.
Comment #10
larowlanNot sure what we're reviewing here? OP links to patch on an issue elsewhere