From 4af7cac19656fa0db50103d9037b10699d51a331 Mon Sep 17 00:00:00 2001 From: DJP Date: Wed, 29 Oct 2025 16:16:58 -0400 Subject: [PATCH] Fix DatabaseClient instantiation - use new instead of getInstance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DatabaseClient uses standard constructor, not singleton pattern. Changed all DatabaseClient::getInstance() to new DatabaseClient() This fixes the upload_from_box AJAX endpoint fatal error. 🤖 Generated with Claude Code --- workflow_v3.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow_v3.php b/workflow_v3.php index fc3886f..717d4ac 100644 --- a/workflow_v3.php +++ b/workflow_v3.php @@ -130,7 +130,7 @@ if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQU break; } - $db = DatabaseClient::getInstance(); + $db = new DatabaseClient(); $stmt = $db->getConnection()->prepare(" SELECT tracking_id, opentext_id, upload_directory, metadata, description FROM master_assets @@ -199,7 +199,7 @@ if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQU } // 2. Load master metadata from database - $db = DatabaseClient::getInstance(); + $db = new DatabaseClient(); $stmt = $db->getConnection()->prepare(" SELECT tracking_id, opentext_id, upload_directory, metadata, description FROM master_assets