From fec0898289db4c0ac4f1d70d59f22af5f8e63414 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Thu, 12 Feb 2026 08:25:59 -0800 Subject: [PATCH] Fix logging when name attribute is unknown --- ProcessMaker/Models/EnvironmentVariable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;