Steps to reproduce:
1. Install Drupal 8.5.x (8.5.1 in this case, was working fine before 8.5)
2. enable Language, Content Translation, Content Moderation, and Workflows modules
3. add another language, like French
3. enable content translation on Basic Pages
4. add Default Comment field to Basic Pages (not via "Existing Fields")
5. add the Editorial workflow to Basic Pages
5. create an English Basic Page
6. translate that Basic Page and try to save
Expected behavior:
The node saves.
Current behavior:
You get an error saying "Non-translatable fields can only be changed when updating the original language."
Current Work-around:
Edit Baic Page Comment field and check the "Users may translate this field" checkbox. Now your Translation will save.
Issues:
* The error is not very clear and if your dealing with more than a few fields (like 50) this can take quite a while to debug
* Doing the above steps in a different order (say adding the comment field first, then enabling translation, or adding the existing Comment field) will not trigger the error as the checkbox get automatically ticked when following this order
Proposed Solutions:
(a) remove the "Users may translate this field requirement" for comment fields. After all, what does it mean that users can translate this field? It is not the ability to translate comments, or field meta-data like title and description. This field merely binds a type of comment to a type of node, right?
(b) Have a better error message telling users what field is the offender in the error message (or in Drupal logs)
Comments
Comment #2
nickgee commentedComment #3
nickgee commentedFollow up:
It turns out that checking the "Users may translate this field" has a few consequences:
Some thoughts on these:
I would also just add that this started with the 8.5 update.
Comment #5
pavlosdanThis looks like the same issue as I observed here: #3025039: New non translatable field on translatable content throws error since this one is older, I'll close that as a duplicate.
Comment #6
detroz commentedHi,
The deep problem of this issue looks like an issue of "Paragraphs" module #3004099: Allow to translate paragraphs from pending revisions.
As the patch suggested is on the core, a core issue exists too : #3015480: Allow skipping translation check at field level for non-translatable fields
Regards,
Detroz
Comment #7
dmitry.korhovIssue is reproducible even if comment module is uninstalled
Comment #9
ghost of drupal pastPlease test https://www.drupal.org/project/drupal/issues/3025039#comment-13658647
Comment #10
sanjayk commentedWhile testing https://www.drupal.org/project/drupal/issues/3025039#comment-13658647 and apply patch #16 still get the same error "Non-translatable fields can only be changed when updating the original language."
Comment #11
sanjayk commentedComment #13
deepak goyal commentedComment #16
nickgee commentedComment #17
lendudeI'm going to close this as a duplicate of either #3025039: New non translatable field on translatable content throws error or #3015675: Translations of nodes with comment settings field set to non-translatable returns EntityUntranslatableFieldsConstraint, both those issues are newer but both contain possible fixes and automated test, so I suggest continuing the work there.
If you feel this is addressing a different issue than either of those issue, feel free to re-open this issue.