From 066027a5003ddac2657dbc2590265e92b28c1f41 Mon Sep 17 00:00:00 2001 From: Jan Storm Date: Tue, 2 Apr 2024 15:53:14 +0200 Subject: [PATCH] [BUGFIX] Handle possible DBALException (#2153) We can ignore a missing database connection at this point. We cant do anything about a missing database connection. This Scenario is possible during first install. --- .../Configuration/SpooledConfigurationApplicator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Integration/Configuration/SpooledConfigurationApplicator.php b/Classes/Integration/Configuration/SpooledConfigurationApplicator.php index 416c748cb..ab5b46ff5 100644 --- a/Classes/Integration/Configuration/SpooledConfigurationApplicator.php +++ b/Classes/Integration/Configuration/SpooledConfigurationApplicator.php @@ -8,6 +8,7 @@ * LICENSE.md file that was distributed with this source code. */ +use Doctrine\DBAL\Exception\TableNotFoundException; use FluidTYPO3\Flux\Builder\ContentTypeBuilder; use FluidTYPO3\Flux\Builder\RequestBuilder; use FluidTYPO3\Flux\Content\ContentTypeManager; @@ -178,7 +179,7 @@ function (ProviderInterface $item1, ProviderInterface $item2) use ($sortingValue try { $this->contentTypeBuilder->registerContentType($providerExtensionName, $contentType, $provider); - } catch (PageNotFoundException $error) { + } catch (PageNotFoundException|TableNotFoundException $error) { // Suppressed: Flux bootstrap does not care if a page can be resolved or not. } catch (Exception $error) { if (!$applicationContext->isProduction()) {