alnv/catalog-manager

Undefined array key "languages" in Toolkit

Opened this issue · 0 comments

bezin commented

Hi @alnv,

thanks for this extension. I took over a project that uses CM and am tasked with upgrading it to the latest LTS and PHP version.
However CM does not seem to be compatible with PHP 8.2.

Contao 4.13.30
PHP 8.2.9
CM 1.32.36

ErrorException:
Warning: Undefined array key "languages"

  at vendor/alnv/catalog-manager/library/alnv/Toolkit.php:225
  at CatalogManager\Toolkit::parseCatalog()
     (vendor/alnv/catalog-manager/library/alnv/CatalogFieldBuilder.php:51)
  at CatalogManager\CatalogFieldBuilder->initialize()
     (vendor/alnv/catalog-manager/library/alnv/CatalogParser.php:21)
  at CatalogManager\CatalogParser->initialize()
     (vendor/alnv/catalog-manager/library/alnv/CatalogParser.php:38)
  at CatalogManager\CatalogParser->getAllEvents()
     (vendor/contao/calendar-bundle/src/Resources/contao/classes/Events.php:175)
  at Contao\Events->getAllEvents()
     (vendor/contao/calendar-bundle/src/Resources/contao/modules/ModuleEventlist.php:171)
  at Contao\ModuleEventlist->compile()
     (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
  at Contao\Module->generate()
     (vendor/contao/calendar-bundle/src/Resources/contao/modules/ModuleEventlist.php:85)
  at Contao\ModuleEventlist->generate()
     (vendor/contao/core-bundle/src/Resources/contao/elements/ContentModule.php:98)
  at Contao\ContentModule->generate()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:622)
  at Contao\Controller::getContentElement()
     (vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:197)
  at Contao\ModuleArticle->compile()
     (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
  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:550)
  at Contao\Controller::getArticle()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:392)
  at Contao\Controller::getFrontendModule()
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:199)
  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)