Ankündigung

Einklappen
Keine Ankündigung bisher.

Fehlermeldung bei Filterung

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Fehlermeldung bei Filterung

    Moin,
    folgende Fehlermeldung erhalte ich, wenn ich einen Filter (Textfilter, Checkbox, Wertebereich) anwende:
    PHP-Code:
    [2023-01-05T08:06:46.126087+01:00request.CRITICALUncaught PHP Exception TypeError"array_filter(): Argument #1 ($array) must be of type array, string given" at /.../system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Attributes/AttributeCallbacks.php line 284 {"exception":"[object] (TypeError(code: 0): array_filter(): Argument #1 ($array) must be of type array, string given at /.../system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Attributes/AttributeCallbacks.php:284)"} [] 
    Der Fehler ist erstmals nach dem Update von 4.1.x auf 4.4.12 aufgetreten. Wir haben dann probeweise die Zeile 284 in der Datei AttributeCallbacks.php auskommentiert, dann lieferten die Filter wieder Ergebnisse. Nach dem Update auf 4.4.15 hilft auskommentieren auch nichts mehr.
    Kann mit der Fehlermeldung leider nichts anfangen, deutet das auf einen Bug hin oder eine falsche Einstellung? Geändert wurde nichts, die Anweisungen bei den Updates habe ich immer befolgt.

    Contao 4.13.14
    PHP 8.1.13
    CE 4.5.5
    CC 4.4.15

    Stacktrace aus dem Debug-Modus:

    PHP-Code:

    ErrorException
    :
    WarningAttempt to read property "type" on null

      at system
    /modules/pct_customelements_attribute_tags/dca/tl_pct_customelement_filter.php:32
      at 
    require('/.../system/modules/pct_customelements_attribute_tags/dca/tl_pct_customelement_filter.php')
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Loader/FilterLoader.php:125)
      
    at PCT\CustomElements\Loader\FilterLoader::loadDcaFil e('tl_pct_customelement_filter''tags')
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Loader/FilterLoader.php:143)
      
    at PCT\CustomElements\Loader\FilterLoader::loadDcaFil es('tl_pct_customelement_filter')
         (
    system/modules/pct_customelements_plugin_customcatalog/dca/tl_pct_customelement_filter.php:356)
      
    at include('/.../system/modules/pct_customelements_plugin_customcatalog/dca/tl_pct_customelement_filter.php')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:120)
      
    at Contao\DcaLoader->loadDcaFiles(false)
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:75)
      
    at Contao\DcaLoader->load()
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1443)
      
    at Contao\Controller::loadDataContainer('tl_pct_custo melement_filter')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:378)
      
    at Contao\DcaExtractor->createExtract()
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:126)
      
    at Contao\DcaExtractor->__construct('tl_pct_customelement_filter')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:148)
      
    at Contao\DcaExtractor::getInstance('tl_pct_customele ment_filter')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/QueryBuilder.php:31)
      
    at Contao\Model\QueryBuilder::find(array('column' => array('tl_pct_customelement_filter.pid=?''tl_pct_customelement_filter.published=1'), 'value' => array(2), 'return' => 'Collection''order' => 'tl_pct_customelement_filter.sorting''table' => 'tl_pct_customelement_filter'))
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1231)
      
    at Contao\Model::buildFindQuery(array('column' => array('tl_pct_customelement_filter.pid=?''tl_pct_customelement_filter.published=1'), 'value' => array(2), 'return' => 'Collection''order' => 'tl_pct_customelement_filter.sorting''table' => 'tl_pct_customelement_filter'))
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1064)
      
    at Contao\Model::find(array('column' => array('tl_pct_customelement_filter.pid=?''tl_pct_customelement_filter.published=1'), 'value' => array(2), 'return' => 'Collection''order' => 'tl_pct_customelement_filter.sorting''table' => 'tl_pct_customelement_filter'))
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:957)
      
    at Contao\Model::findBy(array('tl_pct_customelement_f ilter.pid=?''tl_pct_customelement_filter.published=1'), array(2), array('column' => array('tl_pct_customelement_filter.pid=?''tl_pct_customelement_filter.published=1'), 'value' => array(2), 'return' => 'Collection''order' => 'tl_pct_customelement_filter.sorting'))
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Models/FilterModel.php:88)
      
    at PCT\CustomElements\Models\FilterModel::findPublish edByPid(2, array('order' => 'tl_pct_customelement_filter.sorting'))
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Core/FilterFactory.php:159)
      
    at PCT\CustomElements\Core\FilterFactory::findPublish edByPid(2)
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Core/FilterFactory.php:271)
      
    at PCT\CustomElements\Core\FilterFactory::createColle ctionByFilterset(array('2''4''5''6'))
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleList.php:87)
      
    at PCT\CustomElements\Plugins\CustomCatalog\FrontendModuleList->compile()
         (
    vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
      
    at Contao\Module->generate()
         (
    system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleList.php:67)
      
    at PCT\CustomElements\Plugins\CustomCatalog\FrontendModuleList->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:616)
      
    at Contao\Controller::getContentElement(object(Conten tModel), 'main')
         (
    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(false)
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:544)
      
    at Contao\Controller::getArticle(object(ArticleModel) , falsefalse'main')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:386)
      
    at Contao\Controller::getFrontendModule('0''main')
         (
    vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:190)
      
    at Contao\PageRegular->prepare(object(PageModel))
         (
    vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:60)
      
    at Contao\PageRegular->getResponse(object(PageModel), true)
         (
    vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:320)
      
    at Contao\FrontendIndex->renderPage(object(PageModel))
         (
    vendor/symfony/http-kernel/HttpKernel.php:163)
      
    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
         (
    vendor/symfony/http-kernel/HttpKernel.php:75)
      
    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1true)
         (
    vendor/symfony/http-kernel/Kernel.php:202)
      
    at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
         (
    web/index.php:44)
      
    at require('/.../web/index.php')
         (
    web/app.php:13

  • #2
    Hi,
    du hast ein ungespeichertes Bildgrößen-Feld. Gleiche Stelle in diesem Thread: https://forum.premium-contao-themes....6450#post26450
    http://www.premium-contao-themes.com

    Kommentar


    • #3
      Hi,
      super, erledigt, vielen Dank für die schnelle Hilfe!

      Kommentar

      Lädt...
      X