Adding translation to a content after a fresh install throws an error.
Here's the steps to reproduce:
1. install standard profile.
2. install "Content Translation" module.
3. go to admin/config/regional/language/add. add a new language (e.g. Persian)
4. go to admin/config/regional/content-language.
5. mark these checkboxes: "Content" -> "article". then, save.
6. go to node/add/article. add article (i filled the title, and body fields)
7. click the translate tab in the article page.
8. click "Add" for the "Not translated" language.
(example url: fa/node/1/translations/add/en/fa)
9. click save.
10. error page is displayed like this:
[info] Article test page - en has been updated.
[error] InvalidArgumentException: Invalid translation language (fa) specified. in Drupal\Core\Entity\ContentEntityBase->addTranslation() (line 674 of /var/www/menu-links/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
The website has encountered an error. Please try again later.
The bug has a lot of other symptoms. here's an image from the front page:
(the content is shown duplicated. clicking the pencil for each of them, opens the dropdowns for both)
and modifying the title in the translated content doesn't seem to work. it always reverts back to the english title.
Comment | File | Size | Author |
---|---|---|---|
bug-screenshot-cropped.png | 21.6 KB | herom |
Comments
Comment #1
Gábor HojtsyTagging.
Comment #2
swentel CreditAttribution: swentel commentedThere's other problems too, see #2105407: Changing language settings for fields ends in a fatal error
Another problem is that you currently can't click on the 'Add language' button in chrome (hitting enter works), some weird javascript error, see #2101427: Follow-up: Browser validation error with Chrome on hidden required fields, even on forms that don't allow client-side validation which I raised to major.
Looking for this actual bug now.
Comment #3
swentel CreditAttribution: swentel commentedCould not reproduce the exact error as describe, but getting another one when clicking on the 'add translation' button.
Comment #4
hass CreditAttribution: hass commented#2113001: InvalidArgumentException when adding a translation has been closed as duplicate.
Comment #4.0
hass CreditAttribution: hass commenteds/tile/title
Comment #5
herom CreditAttribution: herom commentedrepeating the steps on current HEAD, I can't reproduce the error anymore, and translations are added fine. probably fixed elsewhere.