From e00bb350b55160d61c65c99597f842645b275117 Mon Sep 17 00:00:00 2001 From: parallaxis-mcgoldrick <43951441+parallaxis-mcgoldrick@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:08:04 +0200 Subject: [PATCH 1/2] [FIX] Import custom GalleryProcessor instead of processor from fluid_styled_content I get the following error in TYPO3 v12: #1427455378 UnexpectedValueException Processor class or service name "gallery" does not exist! This has to do with fluid_styled_content now using identifiers for setting the DataProcessors inside the TypoScript configuration and not the full class name anymore. The origin of this error seems to be that in your Services.php you register "headless-gallery" as an identifier for "TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor" and not for your custom DataProcessor "FriendsOfTYPO3\Headless\DataProcessing\GalleryProcessor" so the identifier is overridden and the DataProcessing of the regular images stops working. --- Configuration/Services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/Services.php b/Configuration/Services.php index 9b45a400..3e40c5ce 100644 --- a/Configuration/Services.php +++ b/Configuration/Services.php @@ -31,7 +31,7 @@ use TYPO3\CMS\Core\Configuration\Features; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Form\Controller\FormFrontendController; -use TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor; +use FriendsOfTYPO3\Headless\DataProcessing\GalleryProcessor; use TYPO3\CMS\FrontendLogin\Controller\LoginController; use function Symfony\Component\DependencyInjection\Loader\Configurator\service; From f99dd3b0581561b5cd8bec7d9b456a5b6460ba62 Mon Sep 17 00:00:00 2001 From: parallaxis-mcgoldrick <43951441+parallaxis-mcgoldrick@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:40:14 +0200 Subject: [PATCH 2/2] [FIX] Change order of imports --- Configuration/Services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/Services.php b/Configuration/Services.php index 3e40c5ce..b3f3ce34 100644 --- a/Configuration/Services.php +++ b/Configuration/Services.php @@ -17,6 +17,7 @@ use FriendsOfTYPO3\Headless\DataProcessing\DatabaseQueryProcessor; use FriendsOfTYPO3\Headless\DataProcessing\FilesProcessor; use FriendsOfTYPO3\Headless\DataProcessing\FlexFormProcessor; +use FriendsOfTYPO3\Headless\DataProcessing\GalleryProcessor; use FriendsOfTYPO3\Headless\DataProcessing\MenuProcessor; use FriendsOfTYPO3\Headless\DataProcessing\RootSitesProcessor; use FriendsOfTYPO3\Headless\Event\Listener\AfterLinkIsGeneratedListener; @@ -31,7 +32,6 @@ use TYPO3\CMS\Core\Configuration\Features; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Form\Controller\FormFrontendController; -use FriendsOfTYPO3\Headless\DataProcessing\GalleryProcessor; use TYPO3\CMS\FrontendLogin\Controller\LoginController; use function Symfony\Component\DependencyInjection\Loader\Configurator\service;