The installer fails if you select a language that is already included in the installation profile.

Drupal\Core\Entity\EntityStorageException: configurable_language entity with ID es already exists. in Drupal\Core\Entity\EntityStorageBase->save() (line 386 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Drupal\Core\Entity\EntityStorageBase->save(Object)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object)
Drupal\Core\Entity\Entity->save()
install_import_translations(Array)
install_run_task(Array, Array)
install_run_tasks(Array)
install_drupal()

Comments

Gábor Hojtsy’s picture

Status: Needs work » Postponed (maintainer needs more info)

Is this not already fixed in #2336743: When more than one language is added in the profile, the installer ignores those? That has a test that includes German shipped with the profile AND also tests with German selected as installer language.

Gábor Hojtsy’s picture

+++ b/core/includes/install.core.inc
@@ -1536,70 +1537,128 @@ function install_profile_themes(&$install_state) {
-  $language = ConfigurableLanguage::createFromLangcode($langcode);
+  if (!($language = entity_load('configurable_language', $langcode))) {
+    // Create the language if not already shipped with a profile.
+    $language = ConfigurableLanguage::createFromLangcode($langcode);
+  }

This code from that patch :)

k4v’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok, right, this is fixed by the other patch.

Gábor Hojtsy’s picture

Issue tags: -sprint