UnmetDependenciesException error occured during installation

Created on 16 January 2018, almost 7 years ago
Updated 2 June 2023, over 1 year ago

Just right after the 'Setup Database' step was done, when it attempted to install the site in 'standard' profile, this error was encountered:


Error
The website encountered an unexpected error. Please try again later.
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">standard</em> have unmet dependencies: <em class="placeholder">block.block.bartik_account_menu (block), block.block.bartik_help (help, block), block.block.bartik_search (search, block), block_content.type.basic (block_content), comment.type.comment (comment), contact.form.feedback (contact), core.entity_form_display.block_content.basic.default (text), core.entity_form_display.node.article.default (image.style.thumbnail, comment, image, path, text), core.entity_form_display.node.page.default (path, text), core.entity_form_display.user.user.default (image.style.thumbnail, image), core.entity_view_display.node.article.default (image.style.large, comment, image, text), core.entity_view_display.node.article.rss (core.entity_view_mode.node.rss), core.entity_view_display.node.article.teaser (core.entity_view_mode.node.teaser, image.style.medium, image, text), core.entity_view_display.node.page.teaser (core.entity_view_mode.node.teaser, text), editor.editor.basic_html (ckeditor, editor), field.field.block_content.basic.body (field.storage.block_content.body, text, field), field.field.comment.comment.comment_body (field.storage.comment.comment_body, text, field), field.field.node.article.body (field.storage.node.body, text, field), field.field.node.article.comment (comment, field), field.field.node.article.field_image (image, field), field.field.node.article.field_tags (field), field.storage.node.comment (comment, node, field), field.storage.node.field_image (file, image, node, field), field.storage.node.field_tags (node, taxonomy, field), field.storage.user.user_picture (file, image, field), filter.format.basic_html (editor, filter), filter.format.restricted_html (filter), node.type.article (node), rdf.mapping.comment.comment (comment, rdf), rdf.mapping.node.article (node, rdf), rdf.mapping.taxonomy_term.tags (taxonomy, rdf), taxonomy.vocabulary.tags (taxonomy)</em> in Drupal\Core\Config\UnmetDependenciesException::create() (line 98 of core/lib/Drupal/Core/Config/UnmetDependenciesException.php).

Drupal\Core\Config\UnmetDependenciesException::create('standard', Array) (Line: 469)
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'standard') (Line: 132)
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'standard') (Line: 145)
Drupal\Core\Extension\ModuleInstaller->install(Array, ) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, ) (Line: 1577)
install_install_profile(Array) (Line: 671)
install_run_task(Array, Array) (Line: 549)
install_run_tasks(Array) (Line: 117)
install_drupal(Object) (Line: 44)


I downloaded Drupal 8.4.4 using Drush

 $ drush dl drupal 
πŸ› Bug report
Status

Closed: duplicate

Version

10.0 ✨

Component
ConfigurationΒ  β†’

Last updated 3 days ago

Created by

πŸ‡΅πŸ‡­Philippines romskie

Live updates comments and jobs are added and updated live.
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.

  • I'm having the same issue while installing D10:

    Environment:
    Local installation: MacOS Monterey (v. 12.6.3)
    PHP 8.1.17
    mysql Ver 8.0.30 for macos12 on arm64 (MySQL Community Server - GPL)

    Multiple attempts - all getting the same result.
    I've tried installing Drupal using Chrome as well as Firefox

    Any guidance on how to solve this would be appreciated.

    An AJAX HTTP request terminated abnormally.
    Debugging information follows.
    Path: /core/install.php?rewrite=ok&langcode=en&profile=standard&continue=1&id=1&op=do_nojs&op=do
    StatusText: error
    ReadyState: 0

    Error Page:

    Drupal\\Core\\Config\\UnmetDependenciesException: 
    Configuration objects provided by standard have unmet dependencies: core.entity_form_display.node.article.default (path), 
    
    user.role.authenticated (shortcut), 
    
    user.role.content_editor (path, toolbar)
    
    
    
    
    
    in 
    /Library/WebServer/Documents/filc2/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php on line 100 
    #0 
    /Library/WebServer/Documents/filc2/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(526): Drupal\\Core\\Config\\UnmetDependenciesException::create('standard', Array)\
    n#1 
    /Library/WebServer/Documents/filc2/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(132): Drupal\\Core\\Config\\ConfigInstaller->checkConfigurationToInstall('module', 'standard')\
    n#2 /Library/WebServer/Documents/filc2/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(191): Drupal\\Core\\ProxyClass\\Config\\ConfigInstaller->checkConfigurationToInstall('module', 'standard')\
    n#3 
    /Library/WebServer/Documents/filc2/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\\Core\\Extension\\ModuleInstaller->install(Array, false)\
    n#4 
    /Library/WebServer/Documents/filc2/web/core/includes/install.core.inc(1657): Drupal\\Core\\ProxyClass\\Extension\\ModuleInstaller->install(Array, false)\
    n#5 
    /Library/WebServer/Documents/filc2/web/core/includes/install.core.inc(698): install_install_profile(Array)\
    n#6 /Library/WebServer/Documents/filc2/web/core/includes/install.core.inc(569): install_run_task(Array, Array)\
    n#7 /Library/WebServer/Documents/filc2/web/core/includes/install.core.inc(119): install_run_tasks(Array, NULL)\
    n#8 
    /Library/WebServer/Documents/filc2/web/core/install.php(48): install_drupal(Object(Composer\\Autoload\\ClassLoader))\
    n#9 
    {main}, referer: http://filc2.local/core/install.php?rewrite=ok&langcode=en&profile=standard&continue=1&id=1&op=start 
  • See #5. This is a duplicate issue. A common cause is not setting max_allowed_packet.

  • @cilefen thanks for your response
    Globally set max_allowed_packet to 256M (268435456) -client and server side; It did not make any difference, still unable to install drupal on my local.
    Getting the same error.

  • UPDATE

    Regardless of how many tweaks I did (different browsers, different database, started from scratch multiple times, changed on mysql variables, etc), it did not work.

    What I ended up doing was installing the site using drush command:
    https://www.drush.org/11.x/commands/site_install/

    So, first install Drupal using composer:
    composer create-project drupal/recommended-project project_name

    Then created 'files' directories for private and public files and tweaked the settings.php file and made apache the owner, and created a database for the new site.

    Up to hear same as before; then installed site with Drush:

    cd web
    ../vendor/bin/drush site:install standard --site-name="site_name" --db-prefix="pref_" --locale=en --site-mail=site@email.com --account-name=account_name --account-mail=site@email.com --account-pass="account_password" --db-url=mysql://db_user:db_pwd@localhost:3306/db_name

    I'm all set now.

  • Faced same issue today while installing drupal through Docker. Able to fix it After changing database name

Production build 0.71.5 2024