alnv / contao-catalog-manager-bundle

Catalog Manager
https://catalog-manager.org/
5 stars 0 forks source link

Warning: Undefined array key "operator" #22

Open berecont opened 7 months ago

berecont commented 7 months ago

Contao 4.13.40 Catalog Manager 3.0.12

Debug Mode bringt im Frontend folgende Warnung

ErrorException:
Warning: Undefined array key "operator"

  at C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Helper\Toolkit.php:768
  at Alnv\ContaoCatalogManagerBundle\Helper\Toolkit::convertComboWizardToModelValues('[{"option":null,"option2":null,"option3":""}]', 'ctlg_type')
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Library\Options.php:197)
  at Alnv\ContaoCatalogManagerBundle\Library\Options::setFilter()
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Library\Options.php:170)
  at Alnv\ContaoCatalogManagerBundle\Library\Options::getEntities()
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Library\Options.php:88)
  at Alnv\ContaoCatalogManagerBundle\Library\Options::getOptions()
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Helper\CatalogWizard.php:145)
  at Alnv\ContaoCatalogManagerBundle\Helper\CatalogWizard->Alnv\ContaoCatalogManagerBundle\Helper\{closure}(null)
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Widget.php:1332)
  at Contao\Widget::getAttributesFromDca(array('sorting' => true, 'name' => 'Anzeigemedium', 'label' => array('Anzeigemedium', 'Wähle das Anzeigemedium aus.'), 'eval' => array('tl_class' => 'w50', 'allowHtml' => true, 'decodeEntities' => true, 'multiple' => false, 'role' => 'miscellaneous', 'useAsAlias' => '', 'mandatory' => true, 'size' => 1, 'chosen' => true, 'submitOnChange' => false, 'translatableFor' => '*'), 'sql' => 'blob NULL', 'options_callback' => object(Closure), 'relation' => array('load' => 'lazy', 'field' => 'anzeigemedium', 'table' => 'ctlg_type', 'type' => 'hasOne'), 'filter' => true, 'inputType' => 'select'), 'belegungmedium', 'Transparent', 'belegungmedium', 'ctlg_belegung')
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Views\View.php:445)
  at Alnv\ContaoCatalogManagerBundle\Views\View->parseField('Transparent', 'belegungmedium', array('stop' => '', 'start' => '', 'published' => '', 'alias' => 'a038xyz75e', 'pid' => 0, 'id' => 346, 'tstamp' => 1712141410, 'sorting' => 768, 'lid' => 0, 'language' => '', 'belegungstandort' => 'Bahnübergang Horn', 'belegungmedium' => 'Transparent', 'belegungslot' => 'Slot 1', 'belegungkunde' => 'EBG', 'belegungstatus' => null, 'belegungjahr' => '2024', 'belegungkw' => null, 'belegungdatumstart' => 1711922400, 'belegungdatumende' => 1715464800), array('fastMode' => false, 'ignoreFieldsFromParsing' => array()))
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Views\View.php:277)
  at Alnv\ContaoCatalogManagerBundle\Views\View->parseEntity(array('stop' => '', 'start' => '', 'published' => '', 'alias' => 'a038xyz75e', 'pid' => 0, 'id' => 346, 'tstamp' => 1712141410, 'sorting' => 768, 'lid' => 0, 'language' => '', 'belegungstandort' => 'Bahnübergang Horn', 'belegungmedium' => 'Transparent', 'belegungslot' => 'Slot 1', 'belegungkunde' => 'EBG', 'belegungstatus' => null, 'belegungjahr' => '2024', 'belegungkw' => null, 'belegungdatumstart' => 1711922400, 'belegungdatumende' => 1715464800))
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Views\Listing.php:19)
  at Alnv\ContaoCatalogManagerBundle\Views\Listing->parse()
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Modules\Listing.php:67)
  at Alnv\ContaoCatalogManagerBundle\Modules\Listing->compile()
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\classes\Hybrid.php:230)
  at Contao\Hybrid->generate()
     (C:\laragon\www\zackbum\vendor\alnv\catalog-manager-bundle\src\Modules\Listing.php:52)
  at Alnv\ContaoCatalogManagerBundle\Modules\Listing->generate()
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\elements\ContentModule.php:98)
  at Contao\ContentModule->generate()
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:622)
  at Contao\Controller::getContentElement(object(ContentModel), 'main')
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\modules\ModuleArticle.php:197)
  at Contao\ModuleArticle->compile()
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\modules\Module.php:214)
  at Contao\Module->generate()
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\modules\ModuleArticle.php:70)
  at Contao\ModuleArticle->generate(false)
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:550)
  at Contao\Controller::getArticle(object(ArticleModel), false, false, 'main')
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:392)
  at Contao\Controller::getFrontendModule('0', 'main')
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\pages\PageRegular.php:194)
  at Contao\PageRegular->prepare(object(PageModel))
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\pages\PageRegular.php:61)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (C:\laragon\www\zackbum\vendor\contao\core-bundle\src\Resources\contao\controllers\FrontendIndex.php:320)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (C:\laragon\www\zackbum\vendor\symfony\http-kernel\HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (C:\laragon\www\zackbum\vendor\symfony\http-kernel\HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (C:\laragon\www\zackbum\vendor\symfony\http-kernel\Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (C:\laragon\www\zackbum\public\index.php:44)

Eine Anpassung von vendor\alnv\catalog-manager-bundle\src\Helper\Toolkit.php:768 auf if (isset($arrQuery['operator']) && isset($GLOBALS['CM_OPERATORS'][$arrQuery['operator']]) && $GLOBALS['CM_OPERATORS'][$arrQuery['operator']]['token']) { lässt die Warnung aussen vor.

alnv commented 6 months ago

Ist gefixt in v3.0.17