From 1b75df73efd054f829f2b215a2b0f8a96e785801 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 21 Oct 2025 13:19:00 -0600 Subject: [PATCH 1/2] fix for #3966 Signed-off-by: Andy Miller --- system/src/Grav/Installer/Install.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Installer/Install.php b/system/src/Grav/Installer/Install.php index 8b228b652..a74d35b6c 100644 --- a/system/src/Grav/Installer/Install.php +++ b/system/src/Grav/Installer/Install.php @@ -300,7 +300,14 @@ ERR; }); } $manifest = $service->promote($this->location, $this->getVersion(), $this->ignores); - $this->lastManifest = $service->getLastManifest() ?? $manifest; + $this->lastManifest = $manifest; + if (method_exists($service, 'getLastManifest')) { + // SafeUpgradeService in Grav < 1.7.50.1 does not expose getLastManifest(). + $lastManifest = $service->getLastManifest(); + if (null !== $lastManifest) { + $this->lastManifest = $lastManifest; + } + } Installer::setError(Installer::OK); } else { Installer::install( From 20809f3fea8f7cc498eaa1c4fd2d68b4a259e8fe Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 21 Oct 2025 13:22:01 -0600 Subject: [PATCH 2/2] prepare for release Signed-off-by: Andy Miller --- CHANGELOG.md | 6 ++++++ system/defines.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 354a5cd30..aa5392a0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.7.50.2 +## 10/21/2025 + +1. [](#bugfix) + * Fix for `SafeUpgradeService::getLastManifest()` fatal error on upgrade [#3966](https://github.com/getgrav/grav/issues/3966) + # v1.7.50.1 ## 10/20/2025 diff --git a/system/defines.php b/system/defines.php index 07195db95..480ebcb44 100644 --- a/system/defines.php +++ b/system/defines.php @@ -9,7 +9,7 @@ // Some standard defines define('GRAV', true); -define('GRAV_VERSION', '1.7.50.1'); +define('GRAV_VERSION', '1.7.50.2'); define('GRAV_SCHEMA', '1.7.0_2020-11-20_1'); define('GRAV_TESTING', false);