Score:-1

Why does Drupal\\Core\\Config\\UnmetDependenciesException occur on install?

nr flag

I tried to Install drupal on a Ubuntu 22.04.2 VM. I route the guest via NAT to my host. Then I created a folder in my webroot and let Apache point to it. After that, I downloaded the installation file via composer to the folder. and surf to the domain in the browser and get routed to the installation site just as expected. I can progress without errors (just a warning about clean URLs, but the installation is just for testing automation scripts, so no matter about UX) until the creation of the database. There I typed in the name of the database and the SQL credentials. Then I click on "Create and Continue" but after the site is loading a while, it stays on the site and I can not progress. When I refresh the site i get a long error message.

Error
The website encountered an unexpected error. Please try again later.

When I typed the domain in the browser again, I get a blank site with the same error. I tried to create the database before I start the installer, tried if the installer is creating on its own, the error does not change.

Maybe it has something to do with the VM setup? How can I setup the VM to install Drupal?

There are two exceptions in the webserver:

Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by standard have unmet dependencies: block_content.type.basic (block_content), comment.type.comment (comment), [a row of unmet dependency exceptions, all from ConfigInstaller.php and paths within the folder I created]

(It seemed like a attempt to create database tables that is going wrong.)

id flag
Hello. Errors like that are logged by the web server. Find out what the error is.
id flag
I strongly suggest Lando or DDEV if this is for development purposes.
xdobx avatar
nr flag
@cilefen Thanks for the suggestion, i check it out.
Score:1
id flag

This error often occurs when max_allowed_packet has not been set according to the Drupal database requirements.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.