terminal42 / contao-pageimage

MIT License
12 stars 13 forks source link

Undefined array key "hasLink" #57

Closed mlwebworker closed 8 months ago

mlwebworker commented 8 months ago

Wie schon in https://github.com/terminal42/contao-pageimage/issues/52 tritt wieder der Fehler : Undefined array key "hasLink" im Debug-Modus auf

PHP 8.3.2 Contao: 5.3.0 contao-pageimage: 4.2.1

Hier der Stacktrace

ErrorException:
Warning: Undefined array key "hasLink"

  at vendor/terminal42/contao-pageimage/contao/templates/mod_pageimage.html5:6
  at include('/home/klangtau/public_html/josianeerni.com/contao_5_3_x/vendor/terminal42/contao-pageimage/contao/templates/mod_pageimage.html5')
     (vendor/contao/core-bundle/contao/library/Contao/TemplateInheritance.php:109)
  at Contao\Template->inherit()
     (vendor/contao/core-bundle/contao/library/Contao/Template.php:287)
  at Contao\Template->parse()
     (vendor/contao/core-bundle/contao/classes/FrontendTemplate.php:43)
  at Contao\FrontendTemplate->parse()
     (vendor/contao/core-bundle/contao/classes/FrontendTemplate.php:89)
  at Contao\FrontendTemplate->compile()
     (vendor/contao/core-bundle/contao/classes/FrontendTemplate.php:69)
  at Contao\FrontendTemplate->getResponse()
     (vendor/contao/core-bundle/src/Controller/AbstractFragmentController.php:103)
  at Contao\CoreBundle\Controller\AbstractFragmentController->Contao\CoreBundle\Controller\{closure}(object(FragmentTemplate), null)
     (vendor/contao/core-bundle/src/Twig/FragmentTemplate.php:130)
  at Contao\CoreBundle\Twig\FragmentTemplate->getResponse()
     (vendor/terminal42/contao-pageimage/src/Controller/PageimageController.php:48)
  at Terminal42\PageimageBundle\Controller\PageimageController->getResponse(object(FragmentTemplate), object(ModuleModel), object(Request))
     (vendor/contao/core-bundle/src/Controller/FrontendModule/AbstractFrontendModuleController.php:43)
  at Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController->__invoke(object(Request), object(ModuleModel), 'Seitenbild', null)
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(HttpKernel), object(Request), 2, false)
     (vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php:78)
  at Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render('/preview.php/_fragment?_path=_format%3Dhtml%26_locale%3Dde_CH%26_controller%3Dcontao.frontend_module.pageimage', object(Request), array('ignore_errors' => false))
     (vendor/symfony/http-kernel/Fragment/FragmentHandler.php:83)
  at Symfony\Component\HttpKernel\Fragment\FragmentHandler->render(object(FrontendModuleReference), 'forward', array('ignore_errors' => false))
     (vendor/contao/core-bundle/src/Fragment/FragmentHandler.php:65)
  at Contao\CoreBundle\Fragment\FragmentHandler->render(object(FrontendModuleReference))
     (vendor/contao/core-bundle/contao/modules/ModuleProxy.php:60)
  at Contao\ModuleProxy->generate()
     (vendor/contao/core-bundle/contao/library/Contao/Controller.php:413)
  at Contao\Controller::getFrontendModule(object(ModuleModel), 'Seitenbild')
     (vendor/contao/core-bundle/contao/pages/PageRegular.php:180)
  at Contao\PageRegular->prepare(object(PageModel))
     (vendor/contao/core-bundle/contao/pages/PageRegular.php:46)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (vendor/contao/core-bundle/contao/controllers/FrontendIndex.php:66)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/preview.php:46)
aschempp commented 8 months ago

Fixed in dd9480a5ccf96cde8b9bee2a0f98037fb7ed81bc