1. install standard profile.
2. enable "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. warning is displayed like this:
Warning: Invalid argument supplied for foreach() in Drupal\content_translation\ContentTranslationController->entityFormAlter() (line 200 of core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationController.php).
Node side-effects experienced yet.
Comments
Comment #1
pedrop CreditAttribution: pedrop commentedThe same steps to reproduce, but hopefully not related to closed https://drupal.org/node/2103331 .
Comment #2
swentel CreditAttribution: swentel commentedWeird, can't reproduce this, could you check with latest HEAD ?
Comment #11
quietone CreditAttribution: quietone as a volunteer commentedswentel reported that they were not able to reproduce a few days after the issue was created.
I have been testing translation issues today, on 8.6.19-dev, and adding translated content does work. I used Persian as well to make sure it wasn't language specific.
If anyone has further info on how to reproduce this issue, please provide complete steps to reproduce the issue (starting from "Install Drupal core") in the issue summary and set the issue status back to "Active".