diff --git a/module/VuFind/src/VuFind/Bootstrap.php b/module/VuFind/src/VuFind/Bootstrap.php index 95499d837763c1ab876871010164c8eba8f32246..8fc15b586a0b40aea762edb0d0e48ad521209bf7 100644 --- a/module/VuFind/src/VuFind/Bootstrap.php +++ b/module/VuFind/src/VuFind/Bootstrap.php @@ -318,6 +318,11 @@ class Bootstrap */ protected function initExceptionBased404s() { + // 404s not needed in console mode: + if (Console::isConsole()) { + return; + } + $callback = function ($e) { $exception = $e->getParam('exception'); if (is_object($exception)) {