Frontend läuft, aber Fehlermeldung 'Trying to access array offset on value of type ..
Irgendwie ist in dieser Installation der Wurm drin ... Die Seite läuft eigentlich, aber im DebugMode werden mir Fehlermeldungen angezeigt, mit denen ich leider nichts anfangen kann.
Stacktrace:
Code:
ErrorException:
Warning: Trying to access array offset on value of type null
at vendor/heimseiten/contao-article-image-bundle/src/Listener/HooksListener.php:36
at Heimseiten\ContaoArticleImageBundle\Listener\HooksListener->onParseTemplate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:291)
at Contao\Template->parse()
(vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43)
at Contao\FrontendTemplate->parse()
(vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:245)
at Contao\Module->generate()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:70)
at Contao\ModuleArticle->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:549)
at Contao\Controller::getArticle()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:391)
at Contao\Controller::getFrontendModule()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:190)
at Contao\PageRegular->prepare()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:60)
at Contao\PageRegular->getResponse()
(vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:320)
at Contao\FrontendIndex->renderPage()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/index.php:44)
In der dev.log finde ich außerdem folgende Einträge:
Code:
[2023-06-06T11:13:46.553193+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://www.omega-immobilien.de/contao?do=BackupDB&ref=mYlktVJq","method":"GET"} []
[2023-06-06T11:13:46.573661+02:00] security.DEBUG: Read existing security token from the session. {"key":"_security_contao_backend","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2023-06-06T11:13:46.707892+02:00] security.DEBUG: User was reloaded from a user provider. {"provider":"Contao\\CoreBundle\\Security\\User\\ContaoUserProvider","username":"xxx"} []
[2023-06-06T11:13:46.960644+02:00] security.DEBUG: Stored the security token in the session. {"key":"_security_contao_backend"} []
[2023-06-06T11:13:47.663820+02:00] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_route":"_wdt","_controller":"web_profiler.controller.profiler::toolbarAction","token":"b9a7d3"},"request_uri":"https://www.meine-domain.de/_wdt/b9a7d3","method":"GET"} []
[2023-06-06T11:13:59.328478+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] []
[2023-06-06T11:13:59.455102+02:00] request.INFO: Matched route "tl_page.4.root". {"route":"tl_page.4.root","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.4","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.4.root","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://www.meine-domain.de/","method":"GET"} []
[2023-06-06T11:13:59.492103+02:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2023-06-06T11:13:59.492746+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] []
[2023-06-06T11:13:59.708061+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was unable to generate route. Reason: 'Route 'page_routing_object' not found': Unable to generate a URL for the named route "page_routing_object" as such route does not exist. [] []
[2023-06-06T11:13:59.708795+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was unable to generate route. Reason: 'Route 'page_routing_object' not found': Unable to generate a URL for the named route "page_routing_object" as such route does not exist. [] []
[2023-06-06T11:13:59.709142+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was unable to generate route. Reason: 'Route 'page_routing_object' not found': Unable to generate a URL for the named route "page_routing_object" as such route does not exist. [] []
[2023-06-06T11:13:59.709379+02:00] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was unable to generate route. Reason: 'Route 'page_routing_object' not found': Unable to generate a URL for the named route "page_routing_object" as such route does not exist. [] []
[2023-06-06T11:13:59.830925+02:00] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Trying to access array offset on value of type null" at /homepages/13/1234/htdocs/contao2022/vendor/heimseiten/contao-article-image-bundle/src/Listener/HooksListener.php line 36 {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /homepages/13/1234/htdocs/contao2022/vendor/heimseiten/contao-article-image-bundle/src/Listener/HooksListener.php:36)"} []
[2023-06-06T11:14:00.448932+02:00] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_route":"_wdt","_controller":"web_profiler.controller.profiler::toolbarAction","token":"68881b"},"request_uri":"https://www.meine-domain.de/_wdt/68881b","method":"GET"} []
[2023-06-06T11:14:05.333810+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://www.meine-domain.de/contao?do=debug&key=disable&ref=H-F_LPLq&referer=ZG89QmFja3VwREImcmVmPW1ZbGt0Vkpx","method":"GET"} []
[2023-06-06T11:14:05.348292+02:00] security.DEBUG: Read existing security token from the session. {"key":"_security_contao_backend","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2023-06-06T11:14:05.466306+02:00] security.DEBUG: User was reloaded from a user provider. {"provider":"Contao\\CoreBundle\\Security\\User\\ContaoUserProvider","username":"xxx"} []
[2023-06-06T11:14:05.775742+02:00] security.DEBUG: Stored the security token in the session. {"key":"_security_contao_backend"} []
[2023-06-06T11:14:05.849124+02:00] app.DEBUG: Executing cron job "Contao\CoreBundle\Cron\LegacyCron::onMinutely" [] []
Die Seite läuft unter 4.13.24, daher kann ich das article-image-bundle nicht updaten. Hatte vermutet, dass es vielleicht dieser Erweiterung zusammenhängt ... ?