WSOD when EventInstance has invalid translation.

Created on 14 November 2024, 10 days ago

I have a site, where an eventinstance somehow ended up in a wrong translation state.
That means that now, I'm stuck - unable to edit, delete nor view the eventseries.

I cant even use "drush entity:delete" as it fails:

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

I've debugged my way to /src/Plugin/ComputedField/EventInstances.php where I can see that we use ->getTranslation without checking if it exists.

I'll add a merge request.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Recurring Events (Main module)

Created by

🇩🇰Denmark ras-ben Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024