@[deleted]Thanks this did correct the issue The fix function addResponse($vars, &$errors) { $vars = $this->getId(); $vars = 0; if ($message = $this->getLastMessage()) $vars = $message->getId();VS function addResponse($vars, &$errors) { $vars = $this->getId(); $vars = 0; $vars = $this->getLastMessage()->getId();