diff --git a/ProcessMaker/Models/EnvironmentVariable.php b/ProcessMaker/Models/EnvironmentVariable.php index 97554fce2a..8aaea1cf0c 100644 --- a/ProcessMaker/Models/EnvironmentVariable.php +++ b/ProcessMaker/Models/EnvironmentVariable.php @@ -60,9 +60,10 @@ public function getValueAttribute() } catch (Exception $e) { Log::error( 'Can not decrypt environment variable: ' . - $this->attributes['name'] . + ($this->attributes['name'] ?? 'unknown') . "\n" . $e->getMessage() . - "\n" . $e->getTraceAsString() + "\n" . $e->getTraceAsString(), + ['attributes' => $this->attributes] ); return null;