Install profile's block config entities failing to import because their theme is not yet installed, despite being the sole & default theme

Created on 7 November 2016, almost 8 years ago
Updated 30 July 2024, 3 months ago

Related earlier issues I could find:

  1. #2695449: Unable to Import Views Configuration block.block.bootstrap_mytheme_account_menu depends on the bootstrap_mytheme theme that will not be installed after import. β†’
  2. #2512846: Profiles' default theme should be able to set their own block instance β†’
  3. #2694895: Single item import fails with validation errors from other config β†’

I did some debugging, and can state with confidence that \Drupal\Core\Config\ConfigInstaller::validateDependencies() is returning FALSE for all block config entities, which is called by findDefaultConfigWithUnmetDependencies(), which is called by this code in \Drupal\Core\Config\ConfigInstaller::checkConfigurationToInstall():

    // Check the dependencies of configuration provided by the module.
    $invalid_default_config = $this->findDefaultConfigWithUnmetDependencies($storage, $enabled_extensions, $profile_storages);
    if (!empty($invalid_default_config)) {
      throw UnmetDependenciesException::create($name, $invalid_default_config);
    }

IOW: the theme (seven in my case) is simply not yet installed at this time, even though it is listed in my install profile's *.info.yml file.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Wonder if this is still an issue in D10? Don't multiple installs without this issue.

    If still an issue will have to be updated as seven was removed in D10.

    Thanks!.

  • Status changed to Closed: outdated 3 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    There has been no follow up to the prompt 2 years ago for more information. Therefor, I am closing this is as outdated.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue β†’ (starting from "Install Drupal core").

    Thanks!

Production build 0.71.5 2024