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
When installing a site from existing configuration, [notice] Field installation failed.
is shown. This is because the module's install hook attempts to install the field even though field storage is not yet available.
Steps to reproduce
$ drush -y site:install minimal && \
drush -y en domain_menu_access && \
drush -y config:export && \
drush -y site:install --existing-config
Proposed resolution
Domain itself has checks to see if config is syncing, and skipping adding the fields. Let's do the same here.
Issue fork domain_menu_access-3418131
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:
Comments
Comment #3
deviantintegral CreditAttribution: deviantintegral at Lullabot commentedComment #4
tim-dielsHmm can not reproduce this anymore. Could you please test with the latest version from this module but also from domain to see if you can still reproduce this? The code change does look ok to me.
Comment #5
deviantintegral CreditAttribution: deviantintegral at Lullabot commentedI can still reproduce this in Drupal 10.2.5 with both 2.0.0-rc1 and the latest dev releases of both domain menu access and domain. The above testing steps still work to show the notice.
Comment #6
tim-dielsSeems logical to me to add this but could not reproduce it to be honest. I fixed where the $text variable was outside the function somehow and follow more the domain_access logic.
Comment #8
tim-dielsThanks for the report and work done, fixed.