Problem/Motivation
> Error: Call to a member function getTranslation() on null in Drupal\entity_share_client\Plugin\views\field\EntityLabel->render() (line 81 of modules/contrib/entity_share/modules/entity_share_client/src/Plugin/views/field/EntityLabel.php).
and corresponding warnings:
> Warning: Undefined array key 7293 in Drupal\entity_share_client\Plugin\views\field\EntityLabel->render() (line 78 of modules/contrib/entity_share/modules/entity_share_client/src/Plugin/views/field/EntityLabel.php).
which is this line:
$imported_entity = $this->loadedEntities[$entity_type_id][$value];
Which I don't understand, as we load all the entities in preRender()!
I don't get this locally either, so can't debug!
Entity 7293 is a node, so it's not even like it's something wacky.
Comments
Comment #2
joachim commentedOh wait!
I get it. It's because we've just done a DB import, but not dropped the {entity_import_status} table first!
So it has a log for a node that doesn't exist yet, or even at all!
Comment #3
joachim commentedDowngrading.
Would be a nice fix to have anyway.
The other views handlers need checking for this sort of things too.
Comment #4
joachim commented