Localhost installation on Drupal 11

Created on 25 December 2024, 26 days ago

Problem/Motivation

Got an error message upon module activation.
Refreshed page and everything seemed normal. Except for an error message sending me to the Reports page.
Message on the report page:

Définitions des entités/champs(fields)
La définition des entités et/ou des champs(fields) ne correspondent pas
Les changements suivants ont été détectés dans le type d'entité et les définitions des champs.
(Following changes have been detected in the entity type and in the field definitions).
Contenu (content)

Le champ node.layout_builder__layout nécessite d'être mis à jour.
(the field node.layout_builder__layout needs be updated)

So did a vendor/bin/drush updatedb.
Got the following message:

In Drupal.php line 169:

\Drupal::$container is not initialized yet. \Drupal::setContainer() must be
called with a real container.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇫🇷France anne-pierre

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @anne-pierre
  • 🇪🇸Spain julian_esimaginacion

    Hi Anne, I can't reproduce the error in localhost, in my case, DDEV & PHP 8.3 on a fresh installation. It's sound like an discrepancies between the definitions of entities (such as content types and fields) stored in the database and the current configurations in the code or schema.

    Pls, add $config['system.logging']['error_level'] = 'verbose'; in settings.php and if you see some errors in pages witch use Noahs, paste here the error :)

    Have a nice end of the year :)

  • 🇫🇷France anne-pierre

    Hi Julian,
    Thanks for the reply. With Noah uninstalled, I still get the same error.
    With $config['system.logging']['error_level'] = 'verbose'; in settings.php, no error appear on my pages.
    So maybe Noah is not the problem.
    I will install Noah again and let you know what I see.y new year
    Happy New Year.
    A-PP

  • 🇫🇷France anne-pierre

    Indeed, Noah uninstalled, the same error still appears.

Production build 0.71.5 2024