diff --git a/src/Entity/Task.php b/src/Entity/Task.php index 09edc21d..b7d3384d 100644 --- a/src/Entity/Task.php +++ b/src/Entity/Task.php @@ -139,6 +139,17 @@ public function getData() { if (!isset($this->unserializedData)) { $data = $this->get('data')[0]; if ($data) { + //DEBUG + if (!@unserialize($data->value) && $data->value !== serialize(FALSE)) { + $debug = [ + 'type' => $this->getType(), + 'server' => $this->getServerId(), + 'index' => $this->getIndexId(), + 'data' => $data->value, + ]; + trigger_error("Could not unserialize task data: " . var_export($debug, TRUE), E_USER_WARNING); + } + //DEBUG END $this->unserializedData = unserialize($data->value); if (!empty($this->unserializedData['#entity_type'])) { $this->unserializedData = \Drupal::entityTypeManager()