This is follow-up of #2900599: Improvements needed for multilingual content.

It seems that situation is not any better after parent issue commit.

An attempt to create order in English language is fine.

An attempt to create order in any other language fails with HTTP 500 Error and two error log messages listed below.

Lokacija
http://mysite.com/checkout

Dovoditelj
http://mysite.cpm/checkout

Poruka
InvalidArgumentException: Invalid translation language (en) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 783 of /home/mysite/public_html/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Lokacija
http://mysite.com/checkout

Dovoditelj
http://mysite.com/checkout

Poruka
Drupal\Core\Entity\EntityStorageException: Invalid translation language (en) specified. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of /home/mysite/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

It seems that "en" language is hardcoded somewhere where "translation language" should be specified.

Steps to reproduce (with latest .dev):

1. Create multilingual site and multilingual Products with "Content Translation" module enabled and adjusted accordingly.

2. Select "Show language selector on create and edit pages" checkbox for "Order" content type at "Content language" settings.

3. Create some multilingual products.

4. Add some products to cart.

5. Checkout with any Order form node language selected but English.

6. Order is not created with HTTP 500 error and two errors in log.

Comments

devad created an issue. See original summary.

devad’s picture

Issue summary: View changes
devad’s picture

wvd_vegt’s picture

Same here, parent issue does not fix this one

devad’s picture

At the end I have decided not to translate my product content type but to create products independently in two languages. It's not the best solution because translation is better for search engines but at least I have avoided HTTP 500 error.

karthikeyan-manivasagam’s picture

Status: Active » Closed (cannot reproduce)