Just updated to 8.9.6, but still the same problem. When adding a translation it seems like the node gets saved but viewing it results in the error:

InvalidArgumentException: Invalid translation language (en) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 873 in /core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Even if the node has 0 content it is not working.

Comments

sic created an issue. See original summary.

sic’s picture

Title: Cannot add english translations for nodes (InvalidArgumentException: Invalid translation language (en) specified) » Can add but not view english translations for nodes (InvalidArgumentException: Invalid translation language (en) specified)
Issue summary: View changes
sic’s picture

The patch from https://www.drupal.org/node/2137815#comment-11986627 did not fix the issue for me.

sic’s picture

If I add a node in english and add a german translation it works, not nice versa. So maybe the title should be "Drupal requires all original nodes to be in english when adding a translation".

matsbla’s picture

What permission do the user have?

Can you give steps to reproduce?

codersukanta’s picture

Status: Active » Postponed (maintainer needs more info)

Kindly provide details for issue reproduction as asked in #5.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

kristen pol’s picture

Issue tags: +Bug Smash Initiative

Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" almost two years ago, and there has been no activity here since that time.

Since we need more information to move forward with this issue, I am keeping the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

Thanks!

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Yes, this does need steps to reproduce in order to investigate. As explained in #10 they information has not been provided in over 2 years. Therefor I am closing this issue.

If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Thanks!