TypeError: Argument 1 passed to Drupal\views\Plugin\views\field\EntityOperations::getEntityTranslation() must implement interface Drupal\Core\Entity\EntityInterface, null given,

Created on 8 January 2020, almost 5 years ago
Updated 29 May 2023, over 1 year ago

when visiting content page following error occurs,

TypeError: Argument 1 passed to Drupal\views\Plugin\views\field\EntityOperations::getEntityTranslation() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /Applications/MAMP/htdocs/drupal-8.9/core/modules/views/src/Plugin/views/field/EntityOperations.php on line 142 in Drupal\views\Plugin\views\field\EntityOperations->getEntityTranslation() (line 69 of /Applications/MAMP/htdocs/drupal-8.9/core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php)

🐛 Bug report
Status

Closed: duplicate

Version

8.9 ⚰️

Component
Views 

Last updated about 5 hours ago

Created by

🇮🇳India Hardik_Patel_12 India

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India bhojwanipankaj05

    Hi folks,
    By applying #14 patch, this empty entity fetal error is being fixed but we can see empty entries will be there in the list. So I have found the solution for it like added UUID field on media views and it fixed the error and removed empty entries which was available only on media_field_data table not on media table.

Production build 0.71.5 2024