I get the following error instantly after enabling Slick media field formatter on an media entity image field which is referenced from a paragraph. Problem seems to initiate from Blazy module.

InvalidArgumentException: Invalid translation language (en) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 745 of /vagrant/drupal/current/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Comments

mErilainen created an issue. See original summary.

merilainen’s picture

Version: 8.x-1.0-beta4 » 8.x-1.x-dev
Assigned: Unassigned » merilainen
Status: Active » Needs review
StatusFileSize
new2.27 KB

Here is a patch to solve the issue against latest dev.

merilainen’s picture

There was an indentation problem in the previous patch.

gausarts’s picture

Thank you for contribution.

As mentioned at Slick Media issue, it is not tested against multilingual, yet.
The deleted line admits the lack of multilingual checks:
// @todo check for multilingual if OK without ::getTranslation().

Glad you come in and help ;) Please allow some delay to get back on this.

gausarts’s picture

Assigned: merilainen » Unassigned
Status: Needs review » Fixed

Committed. Thanks again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

anish.a’s picture

Same issue is happening for me. Using 8.x-2.4