Kannst du es einschränken?
Ankündigung
Einklappen
Keine Ankündigung bisher.
Error Array to string conversion
Einklappen
X
-
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.
-
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?
Einen Kommentar schreiben:
-
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.
Einen Kommentar schreiben:
-
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:ErrorException: Warning: 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:7) at include('/:::/system/modules/pct_customelements_plugin_customcatalog/templates/mod_customcatalog.html5') (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:108) at Contao\Template->inherit() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:295) at Contao\Template->parse() (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43) at Contao\FrontendTemplate->parse() (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:245) at Contao\Module->generate() (system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleList.php:67) at PCT\CustomElements\Plugins\CustomCatalog\Frontend\ ModuleList->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:190) 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)
Stichworte: -

Einen Kommentar schreiben: