Ankündigung

Einklappen
Keine Ankündigung bisher.

Error Array to string conversion

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

  • Error Array to string conversion

    ist das was generelles?

    PHP-Code:
                           if(!empty($arrOptions) && is_array($arrOptions) && !in_array($objAttribute->get('type'), $GLOBALS['PCT_CUSTOMCATALOG']['ignoreOptionFields']))                      {                          $arrOptionValues = array();                          foreach($arrOptions as $strOption)                          {                              if(isset($objRow->{$field.'_'.$strOption}))                              {                                  $arrOptionValues[$strOption] = $objRow->{$field.'_'.$strOption};                              }                         } 

    Stacktrace
    PHP-Code:
    ErrorExceptionWarning: Array to string conversion at system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Core/CustomCatalog.php:396 at PCT\CustomElements\Plugins\CustomCatalog\Core\Cust omCatalog->render() (system/modules/pct_customelements_plugin_customcatalog/templates/mod_customcatalog.html5:7at include('/:::/system/modules/pct_customelements_plugin_customcatalog/templates/mod_customcatalog.html5') (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:108at Contao\Template->inherit() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:295at Contao\Template->parse() (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43at Contao\FrontendTemplate->parse() (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:245at Contao\Module->generate() (system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleList.php:67at PCT\CustomElements\Plugins\CustomCatalog\FrontendModuleList->generate() (vendor/contao/core-bundle/src/Resources/contao/elements/ContentModule.php:98at Contao\ContentModule->generate() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:622at Contao\Controller::getContentElement() (vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:197at Contao\ModuleArticle->compile() (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214at Contao\Module->generate() (vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:70at Contao\ModuleArticle->generate() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:550at Contao\Controller::getArticle() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:392at Contao\Controller::getFrontendModule() (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:190at Contao\PageRegular->prepare() (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:60at Contao\PageRegular->getResponse() (vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:320at Contao\FrontendIndex->renderPage() (vendor/symfony/http-kernel/HttpKernel.php:163at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202at Symfony\Component\HttpKernel\Kernel->handle() (web/index.php:44

  • #2
    Mhhh... generell ist es erstmal nichts, was den Arbeitsprozess hemmt. Die Warning sollte nur bei aktiven Debug-Modus kommen.

    Frage ist, welches Attribut hier abgearbeitet wird. Es muss eins sein, dass optionale Felder bringt und nicht im globalen "ignorieren"-Array liegt. Kannst du es einschränken?

    $GLOBALS['PCT_CUSTOMCATALOG']['ignoreOptionFields']
    Zuletzt geändert von Tim; 16.12.2023, 08:23.
    http://www.premium-contao-themes.com

    Kommentar


    • #3
      Ja, ich debugge gerade nach einem Update von 4.1.4 auf 4.3.4, ist was größeres...
      Wo kann ich diese Globale eintragen? in die dcaconfig?

      Kommentar


      • #4
        Kannst du es einschränken?
        Die Globale steht in der config.php von CC. Dort sind die Standard-Attribute bereits hinterlegt. Weitere kannst du durch Ergänzung in der initconfig hinzufügen.
        http://www.premium-contao-themes.com

        Kommentar

        Lädt...
        X