Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
- Something goes completely wrong when installing Drupal in a different language than English — a single simple installer test takes 7 minutes to complete.
Potential causes
- Recursive batch [unsupported] triggered by translation download.
- Translation is re-downloaded in every single step of the installer.
Most likely, it's a combination of both (1) + (2), since the verbose browser output shows a (batch) ?id=2
in the install.php
requests when the batch for installing the profile+modules is executed.
Comments
Comment #1
sunComment #2
Gábor HojtsyThe download should happen when you pick the language from then on the downloaded file should be used. The downloaded file will be parsed multiple times until it can be imported to the database (much later in the process). Until then, all requests need translation so they will parse the file. There are multiple batches handling translation (#1993452: Fix confusing UX by merging "Translate configuration" into "Finish translations" task). Not sure where are the bugs and what are just side effects of how this works.
Comment #3
valthebaldI have just fresh-installed latest 8.x in English, Spanish and German.
English site: installation 1 min 10 sec
Spanish: installation 1 min 50 sec + 30 sec importing translations
German: installation 1 min 30 sec + 20 sec importing translations.
Is the issue still relevant?
Comment #4
myforgedoteu CreditAttribution: myforgedoteu commentedI cannot reproduce, time are still correct and acceptable. I don't believe the issue is relevant anymore.
Comment #5
Gábor HojtsyThe original report was for the test system. But looks like it is not happening anymore. We made measures in the meantime to not download translations in most tests, even when testing the installer language features BTW. :)