diff --git a/classes/core/PKPApplication.php b/classes/core/PKPApplication.php index ae0d72fc370..a78850a9392 100644 --- a/classes/core/PKPApplication.php +++ b/classes/core/PKPApplication.php @@ -251,6 +251,10 @@ public function initializeLaravelContainer(): void */ protected function setTransactionIsolation(): void { + if (!Application::isInstalled()) { + return; + } + DB::statement(match (DB::connection()::class) { MySqlConnection::class => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED', PostgresConnection::class => 'SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED'