From d0bd802da61818a15bb8adfcc720bb693d587544 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Apr 2026 09:15:56 +0200 Subject: [PATCH] Bug 42374: Restore require Koha::Plugins (instead of use) See comment 4 for a detail explanation of the problem. Test plan: hit /cgi-bin/koha/installer/install.pl login with the DB credentials upgrade => Without this patch you get ``` ISBN_RANGE_MESSAGE is set to [] but that file does not exist! Trying to use the default locations ``` => With this patch applied: "Everything went okay. Update done." Signed-off-by: Jonathan Druart Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 40c925bf9b..7d7b7bb4df 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -49,7 +49,6 @@ use Koha; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Caches; use Koha::Installer::Output qw ( say_failure ); -use Koha::Plugins; use MARC::Record; use MARC::File::XML ( BinaryEncoding => 'utf8' ); @@ -23041,6 +23040,7 @@ if ( CheckVersion($DBversion) ) { ); } + require Koha::Plugins; Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins; SetVersion($DBversion);