From eaa8a66a9b54008ad5d27fa4d64dca123e2b5812 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 20 Feb 2025 10:08:59 +0100 Subject: [PATCH] related to #2311 avoid loading user cache on install --- install.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 9ec235025..738cd03c0 100644 --- a/install.php +++ b/install.php @@ -479,7 +479,9 @@ else session_set_cookie_params(0, cookie_path()); register_shutdown_function('session_write_close'); - $user = build_user(1, true); + // we don't load user cache because since Piwigo 15.4.0 the calculation of user + // cache requires $logger which is not instanciated + $user = build_user(1, false); log_user($user['id'], false); $user['preferences']['show_whats_new_'.get_branch_from_version(PHPWG_VERSION)] = false;