Language module is installed without default languages
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3497957. --> Reported by: [catch](https://www.drupal.org/user/35733) Related to !400 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>People are reporting <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-13"><a href="https://www.drupal.org/project/drupal/issues/3002532" title="Status: Needs work">#3002532: Call to a member function set Weight() on null in Drupal\language\Configurable LanguageManager-&gt;updateLockedLanguageWeights()</a></span> in slack.</p> <p>The fatal error is a bug in core, but I think there is also a bug in Drupal CMS.</p> <p>If I install Drupal CMS via the UI without selecting any language or anything, I get language module installed, but I do not get the languages that language module ships with in config/install - e.g. my site is in English but I don't have 'English' as a configurable language. The fatal error does not happen if you have any languages in the database, only happens when there are zero.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Drop language module as a dependency of the drupal_cms_seo_basic recipe - it should be added as part of a multilingual recipe instead.</p> <p>Or at least add the correct default config to that recipe so it doesn't fatal.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3478921](https://www.drupal.org/node/3478921)
issue