From 9f66fed1ecdcfea059b2299803ba4d64527f88f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:20:05 +0300 Subject: [PATCH] Add try-catch to version check --- app/Utilities/Versions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Utilities/Versions.php b/app/Utilities/Versions.php index d16055f2f..831d820e2 100644 --- a/app/Utilities/Versions.php +++ b/app/Utilities/Versions.php @@ -84,7 +84,14 @@ class Versions $versions = []; // Check core first - $url = 'core/version/' . $info['akaunting'] . '/' . $info['php'] . '/' . $info['mysql'] . '/' . $info['companies']; + try { + $url = 'core/version/' . $info['akaunting'] . '/' . $info['php'] . '/' . $info['mysql'] . '/' . $info['companies']; + } catch (\Exception $e) { + // Handle exception + report($info, 'Error fetching core version'); + + return $versions; + } # Installed modules start $modules = Arr::wrap($modules);