Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINTENANCE] Update to TYPO3 12 #322

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

markusweigelt
Copy link
Contributor

No description provided.

@markusweigelt markusweigelt changed the title Update to Typo3 12 Update to TYPO3 12 Oct 21, 2024
@stweil
Copy link
Contributor

stweil commented Oct 21, 2024

Related issue: #321.

@markusweigelt markusweigelt changed the title Update to TYPO3 12 [MAINTENANCE] Update to TYPO3 12 Oct 21, 2024
Documentation/Index.rst Outdated Show resolved Hide resolved
@markusweigelt markusweigelt requested a review from stweil October 22, 2024 08:52
@markusweigelt markusweigelt requested review from beatrycze-volk and removed request for stweil October 22, 2024 09:39
Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I could successfully install a local DFG viewer with TYPO3 12 and load some digitized books.

@stweil
Copy link
Contributor

stweil commented Oct 24, 2024

The latest PR code with the latest Kitodo.Presentation (git master) no longer works for me (tested with TYPO3 11).

Reverting the last 3 commits (d3d9181) works better, but still produces an "Oops".

@stweil
Copy link
Contributor

stweil commented Oct 24, 2024

A fresh installation with TYPO3 12, kitodo/presentation dev-master, slub/dfgviewer dev-master + your commits, slub/slub-digitalcollections dev-master + your commits + patch for ext_emconf.php works with Oops:

Thu, 24 Oct 2024 12:52:09 +0000 [WARNING] request="7eba4f38b3d90" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key 1 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 588 
Thu, 24 Oct 2024 12:52:09 +0000 [ALERT] request="7eba4f38b3d90" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 20241024125201ce5f9f14- Exception: TYPO3\CMS\Core\Context\LanguageAspectFactory::createFromSiteLanguage(): Argument #1 ($language) must be of type TYPO3\CMS\Core\Site\Entity\SiteLanguage, null given, called in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php on line 588, in file /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php:722 - {"exception":"TypeError: TYPO3\\CMS\\Core\\Context\\LanguageAspectFactory::createFromSiteLanguage(): Argument #1 ($language) must be of type TYPO3\\CMS\\Core\\Site\\Entity\\SiteLanguage, null given, called in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php on line 588 and defined in /var/www/typo3_12/vendor/typo3/cms-core/Classes/Context/LanguageAspectFactory.php:31\nStack trace:\n#0 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(588): TYPO3\\CMS\\Core\\Context\\LanguageAspectFactory::createFromSiteLanguage()\n#1 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(490): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItemsForLanguageMenu()\n#2 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(362): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItems()\n#3 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/HierarchicalMenuContentObject.php(55): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->makeMenu()\n#4 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\HierarchicalMenuContentObject->render()\n#5 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#6 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#7 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#8 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectArrayContentObject.php(43): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#9 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectArrayContentObject->render()\n#10 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#11 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(184): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#12 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(167): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderContentObject()\n#13 /var/www/typo3_12/var/cache/code/fluid_template/partial_ControlBar_97fe694674d31fe5.php(93): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderStatic()\n#14 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(262): partial_ControlBar_97fe694674d31fe5->section_85fe027d04e3fb36()\n#15 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(329): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderSection()\n#16 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/RenderViewHelper.php(164): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderPartial()\n#17 /var/www/typo3_12/var/cache/code/fluid_template/layout_KitodoPage_html_e009461cd6a0b021.php(84): TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper::renderStatic()\n#18 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(204): layout_KitodoPage_html_e009461cd6a0b021->render()\n#19 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(330): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->render()\n#20 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(87): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->renderFluidView()\n#21 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->render()\n#22 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#23 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#24 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#25 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(224): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#26 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(195): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageBodyContent()\n#27 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(135): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageContent()\n#28 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchSuggest.php(47): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->handle()\n#29 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchSuggest->process()\n#30 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchInDocument.php(64): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#31 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchInDocument->process()\n#32 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/Embedded3dViewer.php(60): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#33 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\Embedded3dViewer->process()\n#34 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/DOMDocumentValidation.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#35 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\DOMDocumentValidation->process()\n#36 /var/www/typo3_12/vendor/slub/dfgviewer/Classes/Middleware/SruMiddleware.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#37 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Slub\\Dfgviewer\\Middleware\\SruMiddleware->process()\n#38 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentLengthResponseHeader.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#39 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentLengthResponseHeader->process()\n#40 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ShortcutAndMountPointRedirect.php(93): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#41 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ShortcutAndMountPointRedirect->process()\n#42 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/ResponsePropagation.php(34): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#43 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\ResponsePropagation->process()\n#44 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/OutputCompression.php(44): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#45 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\OutputCompression->process()\n#46 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyHeaders.php(56): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#47 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyHeaders->process()\n#48 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PrepareTypoScriptFrontendRendering.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#49 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PrepareTypoScriptFrontendRendering->process()\n#50 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TypoScriptFrontendInitialization.php(112): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#51 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TypoScriptFrontendInitialization->process()\n#52 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageArgumentValidator.php(113): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#53 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageArgumentValidator->process()\n#54 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PreviewSimulator.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#55 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PreviewSimulator->process()\n#56 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageResolver.php(102): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#57 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageResolver->process()\n#58 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/StaticRouteResolver.php(63): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#59 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\StaticRouteResolver->process()\n#60 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyReporter.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#61 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyReporter->process()\n#62 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteBaseRedirectResolver.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#63 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteBaseRedirectResolver->process()\n#64 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/FrontendUserAuthenticator.php(72): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#65 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\FrontendUserAuthenticator->process()\n#66 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(79): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#67 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\BackendUserAuthenticator->process()\n#68 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#69 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\RequestTokenMiddleware->process()\n#70 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/MaintenanceMode.php(51): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#71 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\MaintenanceMode->process()\n#72 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteResolver.php(53): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#73 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteResolver->process()\n#74 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/EidHandler.php(48): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#75 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\EidHandler->process()\n#76 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#77 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process()\n#78 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#79 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\VerifyHostHeader->process()\n#80 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TimeTrackerInitialization.php(46): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#81 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TimeTrackerInitialization->process()\n#82 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#83 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(83): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()\n#84 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/Application.php(59): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()\n#85 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(95): TYPO3\\CMS\\Frontend\\Http\\Application->handle()\n#86 /var/www/typo3_12/public/index.php(20): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#87 /var/www/typo3_12/public/index.php(21): {closure}()\n#88 {main}\n\nNext Exception: TYPO3\\CMS\\Core\\Context\\LanguageAspectFactory::createFromSiteLanguage(): Argument #1 ($language) must be of type TYPO3\\CMS\\Core\\Site\\Entity\\SiteLanguage, null given, called in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php on line 588 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php:722\nStack trace:\n#0 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#1 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#2 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#3 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectArrayContentObject.php(43): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#4 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectArrayContentObject->render()\n#5 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#6 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(184): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#7 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(167): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderContentObject()\n#8 /var/www/typo3_12/var/cache/code/fluid_template/partial_ControlBar_97fe694674d31fe5.php(93): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderStatic()\n#9 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(262): partial_ControlBar_97fe694674d31fe5->section_85fe027d04e3fb36()\n#10 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(329): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderSection()\n#11 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/RenderViewHelper.php(164): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderPartial()\n#12 /var/www/typo3_12/var/cache/code/fluid_template/layout_KitodoPage_html_e009461cd6a0b021.php(84): TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper::renderStatic()\n#13 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(204): layout_KitodoPage_html_e009461cd6a0b021->render()\n#14 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(330): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->render()\n#15 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(87): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->renderFluidView()\n#16 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->render()\n#17 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#18 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#19 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#20 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(224): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#21 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(195): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageBodyContent()\n#22 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(135): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageContent()\n#23 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchSuggest.php(47): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->handle()\n#24 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchSuggest->process()\n#25 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchInDocument.php(64): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#26 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchInDocument->process()\n#27 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/Embedded3dViewer.php(60): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#28 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\Embedded3dViewer->process()\n#29 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/DOMDocumentValidation.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#30 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\DOMDocumentValidation->process()\n#31 /var/www/typo3_12/vendor/slub/dfgviewer/Classes/Middleware/SruMiddleware.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#32 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Slub\\Dfgviewer\\Middleware\\SruMiddleware->process()\n#33 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentLengthResponseHeader.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#34 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentLengthResponseHeader->process()\n#35 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ShortcutAndMountPointRedirect.php(93): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#36 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ShortcutAndMountPointRedirect->process()\n#37 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/ResponsePropagation.php(34): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#38 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\ResponsePropagation->process()\n#39 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/OutputCompression.php(44): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#40 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\OutputCompression->process()\n#41 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyHeaders.php(56): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#42 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyHeaders->process()\n#43 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PrepareTypoScriptFrontendRendering.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#44 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PrepareTypoScriptFrontendRendering->process()\n#45 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TypoScriptFrontendInitialization.php(112): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#46 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TypoScriptFrontendInitialization->process()\n#47 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageArgumentValidator.php(113): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#48 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageArgumentValidator->process()\n#49 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PreviewSimulator.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#50 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PreviewSimulator->process()\n#51 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageResolver.php(102): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#52 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageResolver->process()\n#53 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/StaticRouteResolver.php(63): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#54 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\StaticRouteResolver->process()\n#55 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyReporter.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#56 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyReporter->process()\n#57 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteBaseRedirectResolver.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#58 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteBaseRedirectResolver->process()\n#59 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/FrontendUserAuthenticator.php(72): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#60 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\FrontendUserAuthenticator->process()\n#61 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(79): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#62 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\BackendUserAuthenticator->process()\n#63 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#64 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\RequestTokenMiddleware->process()\n#65 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/MaintenanceMode.php(51): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#66 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\MaintenanceMode->process()\n#67 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteResolver.php(53): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#68 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteResolver->process()\n#69 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/EidHandler.php(48): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#70 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\EidHandler->process()\n#71 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#72 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process()\n#73 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#74 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\VerifyHostHeader->process()\n#75 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TimeTrackerInitialization.php(46): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#76 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TimeTrackerInitialization->process()\n#77 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#78 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(83): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()\n#79 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/Application.php(59): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()\n#80 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(95): TYPO3\\CMS\\Frontend\\Http\\Application->handle()\n#81 /var/www/typo3_12/public/index.php(20): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#82 /var/www/typo3_12/public/index.php(21): {closure}()\n#83 {main}","code":"20241024125201ce5f9f14"}
Thu, 24 Oct 2024 12:52:09 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "originalIiifMetadata" not set, using default value "0". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Thu, 24 Oct 2024 12:52:09 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "displayIiifDescription" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Thu, 24 Oct 2024 12:52:09 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "displayIiifRights" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Thu, 24 Oct 2024 12:52:09 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "displayIiifLinks" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Thu, 24 Oct 2024 12:52:23 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "storagePid" not set, using default value "0". Probably FlexForm for controller "Slub\Dfgviewer\Controller\UriController" is not read. 
Thu, 24 Oct 2024 12:52:26 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "useInternalProxy" not set, using default value "0". Probably FlexForm for controller "Kitodo\Dlf\Controller\PageViewController" is not read. 
Thu, 24 Oct 2024 12:52:27 +0000 [WARNING] request="7eba4f38b3d90" component="Kitodo.Dlf.Controller.AbstractController": Setting "pageStep" not set, using default value "5". Probably FlexForm for controller "Kitodo\Dlf\Controller\NavigationController" is not read. 

Documentation/Index.rst Outdated Show resolved Hide resolved
@markusweigelt
Copy link
Contributor Author

markusweigelt commented Oct 28, 2024

I found some missing parameter checks and updated all branches of the comment #322 (comment).

Maybe it would be better if an error hint appeared in the frontend when a parameter is missing to render something. However, that should not be part of this issue.

Does it also fix the second error mentioned in #322 (comment)? Cause i didn´t get this error atm.

@stweil
Copy link
Contributor

stweil commented Oct 28, 2024

I still get an exception for http://localhost:8080/ after updating all three extensions:

root@typo3_11:/var/www/typo3_12# Mon, 28 Oct 2024 18:15:49 +0000 [ALERT] request="8b1b797b067d5" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 20241028181548542796c7- Exception: PHP Warning: Undefined array key 1 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 588, in file /var/www/typo3_12/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:141 - {"exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: Undefined array key 1 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 588 in /var/www/typo3_12/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:141\nStack trace:\n#0 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(588): TYPO3\\CMS\\Core\\Error\\ErrorHandler->handleError()\n#1 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(490): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItemsForLanguageMenu()\n#2 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(362): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItems()\n#3 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/HierarchicalMenuContentObject.php(55): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->makeMenu()\n#4 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\HierarchicalMenuContentObject->render()\n#5 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#6 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#7 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#8 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectArrayContentObject.php(43): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#9 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectArrayContentObject->render()\n#10 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#11 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(184): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#12 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(167): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderContentObject()\n#13 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/Traits/CompileWithContentArgumentAndRenderStatic.php(75): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderStatic()\n#14 [internal function]: TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper->render()\n#15 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#16 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#17 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#18 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#19 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(57): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#20 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(37): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNode()\n#21 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(329): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNodes()\n#22 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(307): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->TYPO3Fluid\\Fluid\\Core\\ViewHelper\\{closure}()\n#23 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/SectionViewHelper.php(95): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->renderChildren()\n#24 [internal function]: TYPO3Fluid\\Fluid\\ViewHelpers\\SectionViewHelper->render()\n#25 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#26 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#27 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#28 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#29 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(284): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#30 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(329): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderSection()\n#31 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/RenderViewHelper.php(164): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderPartial()\n#32 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/Traits/CompileWithRenderStatic.php(31): TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper::renderStatic()\n#33 [internal function]: TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper->render()\n#34 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#35 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#36 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#37 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#38 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(57): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#39 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(37): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNode()\n#40 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/RootNode.php(29): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNodes()\n#41 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/ParsingState.php(117): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode->evaluate()\n#42 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(204): TYPO3Fluid\\Fluid\\Core\\Parser\\ParsingState->render()\n#43 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(330): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->render()\n#44 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(87): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->renderFluidView()\n#45 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->render()\n#46 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()\n#47 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()\n#48 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()\n#49 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(224): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()\n#50 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(195): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageBodyContent()\n#51 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(135): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageContent()\n#52 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchSuggest.php(47): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->handle()\n#53 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchSuggest->process()\n#54 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchInDocument.php(64): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#55 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchInDocument->process()\n#56 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/Embedded3dViewer.php(61): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#57 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\Embedded3dViewer->process()\n#58 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/DOMDocumentValidation.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#59 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\DOMDocumentValidation->process()\n#60 /var/www/typo3_12/vendor/slub/dfgviewer/Classes/Middleware/SruMiddleware.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#61 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Slub\\Dfgviewer\\Middleware\\SruMiddleware->process()\n#62 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentLengthResponseHeader.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#63 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentLengthResponseHeader->process()\n#64 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ShortcutAndMountPointRedirect.php(93): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#65 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ShortcutAndMountPointRedirect->process()\n#66 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/ResponsePropagation.php(34): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#67 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\ResponsePropagation->process()\n#68 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/OutputCompression.php(44): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#69 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\OutputCompression->process()\n#70 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyHeaders.php(56): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#71 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyHeaders->process()\n#72 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PrepareTypoScriptFrontendRendering.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#73 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PrepareTypoScriptFrontendRendering->process()\n#74 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TypoScriptFrontendInitialization.php(112): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#75 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TypoScriptFrontendInitialization->process()\n#76 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageArgumentValidator.php(113): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#77 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageArgumentValidator->process()\n#78 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PreviewSimulator.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#79 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PreviewSimulator->process()\n#80 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageResolver.php(102): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#81 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageResolver->process()\n#82 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/StaticRouteResolver.php(63): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#83 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\StaticRouteResolver->process()\n#84 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyReporter.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#85 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyReporter->process()\n#86 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteBaseRedirectResolver.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#87 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteBaseRedirectResolver->process()\n#88 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/FrontendUserAuthenticator.php(72): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#89 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\FrontendUserAuthenticator->process()\n#90 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(79): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#91 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\BackendUserAuthenticator->process()\n#92 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#93 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\RequestTokenMiddleware->process()\n#94 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/MaintenanceMode.php(51): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#95 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\MaintenanceMode->process()\n#96 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteResolver.php(53): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#97 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteResolver->process()\n#98 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/EidHandler.php(48): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#99 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\EidHandler->process()\n#100 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#101 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process()\n#102 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#103 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\VerifyHostHeader->process()\n#104 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TimeTrackerInitialization.php(46): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#105 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TimeTrackerInitialization->process()\n#106 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#107 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(83): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()\n#108 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/Application.php(59): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()\n#109 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(95): TYPO3\\CMS\\Frontend\\Http\\Application->handle()\n#110 /var/www/typo3_12/public/index.php(20): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#111 /var/www/typo3_12/public/index.php(21): {closure}()\n#112 {main}","code":"20241028181548542796c7"}

The same exception also occurs while viewing a document page.
The issues in the METS files now only produce warnings in the log file.

@stweil
Copy link
Contributor

stweil commented Oct 28, 2024

Could it be that the exception is related to the Solr search (I don't run a Solr server in my test)? I now disabled TYPO3's Fluid template caching to get a cleaner cache, here partially edited to mark the relevant stack part which starts in SruMiddleware.php:

root@typo3_11:/var/www/typo3_12# Mon, 28 Oct 2024 19:21:41 +0000 [ALERT] request="fb320c7384a13" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler": Oops, an error occurred! Code: 202410281921349f578e87- Exception: PHP Warning: Undefined array key 1 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 588, in file /var/www/typo3_12/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:141 - {"exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: Undefined array key 1 in /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 588 in /var/www/typo3_12/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:141
Stack trace:
#0 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(588): TYPO3\\CMS\\Core\\Error\\ErrorHandler->handleError()
#1 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(490): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItemsForLanguageMenu()
#2 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php(362): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->prepareMenuItems()
#3 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/HierarchicalMenuContentObject.php(55): TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\AbstractMenuContentObject->makeMenu()
#4 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\HierarchicalMenuContentObject->render()
#5 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()
#6 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()
#7 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()
#8 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectArrayContentObject.php(43): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()
#9 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectArrayContentObject->render()
#10 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()
#11 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(184): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()
#12 /var/www/typo3_12/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php(167): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderContentObject()
#13 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/Traits/CompileWithContentArgumentAndRenderStatic.php(75): TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper::renderStatic()\n#14 [internal function]: TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper->render()\n#15 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#16 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#17 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#18 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#19 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(57): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#20 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(37): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNode()\n#21 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(329): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNodes()\n#22 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(307): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->TYPO3Fluid\\Fluid\\Core\\ViewHelper\\{closure}()\n#23 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/SectionViewHelper.php(95): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->renderChildren()\n#24 [internal function]: TYPO3Fluid\\Fluid\\ViewHelpers\\SectionViewHelper->render()\n#25 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#26 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#27 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#28 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#29 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(284): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#30 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(329): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderSection()\n#31 /var/www/typo3_12/vendor/typo3fluid/fluid/src/ViewHelpers/RenderViewHelper.php(164): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->renderPartial()\n#32 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/Traits/CompileWithRenderStatic.php(31): TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper::renderStatic()\n#33 [internal function]: TYPO3Fluid\\Fluid\\ViewHelpers\\RenderViewHelper->render()\n#34 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(272): call_user_func()\n#35 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php(260): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->callRenderMethod()\n#36 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php(79): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper->initializeArgumentsAndRender()\n#37 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php(135): TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke()\n#38 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(57): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate()\n#39 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php(37): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNode()\n#40 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/RootNode.php(29): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\AbstractNode->evaluateChildNodes()
#41 /var/www/typo3_12/vendor/typo3fluid/fluid/src/Core/Parser/ParsingState.php(117): TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode->evaluate()
#42 /var/www/typo3_12/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php(204): TYPO3Fluid\\Fluid\\Core\\Parser\\ParsingState->render()
#43 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(330): TYPO3Fluid\\Fluid\\View\\AbstractTemplateView->render()
#44 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/FluidTemplateContentObject.php(87): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->renderFluidView()
#45 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(709): TYPO3\\CMS\\Frontend\\ContentObject\\FluidTemplateContentObject->render()
#46 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(656): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->render()
#47 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(625): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSingle()
#48 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php(605): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGetSeparated()
#49 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(224): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->cObjGet()
#50 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(195): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageBodyContent()
#51 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/RequestHandler.php(135): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->generatePageContent()

#52 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchSuggest.php(47): TYPO3\\CMS\\Frontend\\Http\\RequestHandler->handle()
#53 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchSuggest->process()
#54 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/SearchInDocument.php(64): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#55 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\SearchInDocument->process()
#56 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/Embedded3dViewer.php(61): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#57 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\Embedded3dViewer->process()
#58 /var/www/typo3_12/vendor/kitodo/presentation/Classes/Middleware/DOMDocumentValidation.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#59 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Kitodo\\Dlf\\Middleware\\DOMDocumentValidation->process()
#60 /var/www/typo3_12/vendor/slub/dfgviewer/Classes/Middleware/SruMiddleware.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()

#61 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): Slub\\Dfgviewer\\Middleware\\SruMiddleware->process()
#62 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentLengthResponseHeader.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#63 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentLengthResponseHeader->process()
#64 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ShortcutAndMountPointRedirect.php(93): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#65 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ShortcutAndMountPointRedirect->process()
#66 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/ResponsePropagation.php(34): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#67 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\ResponsePropagation->process()\n#68 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/OutputCompression.php(44): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#69 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\OutputCompression->process()\n#70 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyHeaders.php(56): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#71 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyHeaders->process()\n#72 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PrepareTypoScriptFrontendRendering.php(58): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#73 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PrepareTypoScriptFrontendRendering->process()\n#74 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TypoScriptFrontendInitialization.php(112): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#75 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TypoScriptFrontendInitialization->process()\n#76 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageArgumentValidator.php(113): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#77 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageArgumentValidator->process()\n#78 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PreviewSimulator.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#79 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PreviewSimulator->process()\n#80 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/PageResolver.php(102): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#81 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\PageResolver->process()\n#82 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/StaticRouteResolver.php(63): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#83 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\StaticRouteResolver->process()\n#84 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/ContentSecurityPolicyReporter.php(42): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#85 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\ContentSecurityPolicyReporter->process()\n#86 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteBaseRedirectResolver.php(90): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#87 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteBaseRedirectResolver->process()\n#88 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/FrontendUserAuthenticator.php(72): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#89 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\FrontendUserAuthenticator->process()\n#90 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(79): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#91 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\BackendUserAuthenticator->process()\n#92 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#93 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\RequestTokenMiddleware->process()\n#94 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/MaintenanceMode.php(51): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#95 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\MaintenanceMode->process()\n#96 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/SiteResolver.php(53): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#97 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\SiteResolver->process()\n#98 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/EidHandler.php(48): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#99 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\EidHandler->process()\n#100 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#101 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process()\n#102 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#103 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\VerifyHostHeader->process()\n#104 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Middleware/TimeTrackerInitialization.php(46): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#105 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Frontend\\Middleware\\TimeTrackerInitialization->process()\n#106 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#107 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(83): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()\n#108 /var/www/typo3_12/vendor/typo3/cms-frontend/Classes/Http/Application.php(59): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()\n#109 /var/www/typo3_12/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(95): TYPO3\\CMS\\Frontend\\Http\\Application->handle()\n#110 /var/www/typo3_12/public/index.php(20): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#111 /var/www/typo3_12/public/index.php(21): {closure}()\n#112 {main}","code":"202410281921349f578e87"}

@markusweigelt
Copy link
Contributor Author

markusweigelt commented Oct 29, 2024

@stweil The problem is due to a missing language. Please add another language to the SiteConfiguration or, in the TypoScript file of your DFG-Viewer Instance, remove the ,1 from special.value.

The documentation is not sufficient in this regard and the rollout of the distribution does not yet work 100% (the SiteConfiguration is not created). However, this is not part of the TYPO3 12 update. It did not work before either.

@markusweigelt markusweigelt requested a review from stweil October 29, 2024 09:26
@stweil
Copy link
Contributor

stweil commented Oct 29, 2024

The problem is due to a missing language. Please add another language to the SiteConfiguration or, in the TypoScript file of your DFG-Viewer Instance, remove the ,1 from special.value.

I had created a site configuration (with en_US.UTF-8) before and now added a 2nd language. I also updated special.value. Both actions did not change the exception.

@markusweigelt
Copy link
Contributor Author

markusweigelt commented Oct 29, 2024

Frontend cache and Maintenence -> Flush TYPO3 and PHP cache is surely cleared too?

If it still does not work, can you send me your SiteConfiguration? In TYPO3 12 it is located in the installation folder under /config/sites/dfg-viewer? ID´s in special.value TypoScript value must be available in SiteConfiguration -> config.yaml languages -> languageId

@beatrycze-volk beatrycze-volk added the ✔️ feature A new feature or enhancement. label Nov 5, 2024
@beatrycze-volk beatrycze-volk added this to the DFG-Viewer 6.2.0 milestone Nov 5, 2024
@markusweigelt
Copy link
Contributor Author

@beatrycze-volk fyi consider changes of PR slub/slub_digitalcollections#94 for testing.

@stweil
Copy link
Contributor

stweil commented Nov 14, 2024

Could you please rebase the PR to fix the conflicts? I'd like to run a new test.

composer.json Outdated Show resolved Hide resolved
@markusweigelt markusweigelt requested a review from stweil November 14, 2024 11:29
Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

The latest code now works for me with TYPO3 12. Maybe the number of commits can be reduced by squashing some (or all) of them.

There remain a few warnings in the TYPO3 log (maybe most or even all unrelated to this pull request):

Setting "displayIiifDescription" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Setting "displayIiifLinks" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Setting "displayIiifRights" not set, using default value "1". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Setting "originalIiifMetadata" not set, using default value "0". Probably FlexForm for controller "Kitodo\Dlf\Controller\MetadataController" is not read. 
Setting "pageStep" not set, using default value "5". Probably FlexForm for controller "Kitodo\Dlf\Controller\NavigationController" is not read. 
Setting "storagePid" not set, using default value "0". Probably FlexForm for controller "Slub\Dfgviewer\Controller\UriController" is not read. 
Setting "useInternalProxy" not set, using default value "0". Probably FlexForm for controller "Kitodo\Dlf\Controller\PageViewController" is not read. 

@markusweigelt
Copy link
Contributor Author

The latest code now works for me with TYPO3 12. Maybe the number of commits can be reduced by squashing some (or all) of them.

I think that is part of the release management when the branch is merged into master. At that point, it should be squashed. Before that, it retains the possibility to revert or analyze the history.

There remain a few warnings in the TYPO3 log (maybe most or even all unrelated to this pull request):

I think it is unrelated. Maybe the log level is too sensitive in AbstractController of Kitodo.Presentation and should be adjusted to DEBUG or better INFO.

A PR for that has been created. kitodo/kitodo-presentation#1376

@stweil
Copy link
Contributor

stweil commented Dec 9, 2024

@markusweigelt, could you please rebase your pull request and fix the conflicts?

@stweil
Copy link
Contributor

stweil commented Dec 9, 2024

The calendar views for newspapers seem to be broken (see #327).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔️ feature A new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants