Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Undefined array key "enabled" #2410

Closed
Ernestopheles opened this issue Jan 25, 2023 · 2 comments
Closed

Warning: Undefined array key "enabled" #2410

Ernestopheles opened this issue Jan 25, 2023 · 2 comments
Labels
Milestone

Comments

@Ernestopheles
Copy link
Contributor

Ernestopheles commented Jan 25, 2023

isotope 2.8.9 php 8.2 contao 4.13.15 dev

Bei Aufruf der Demo

ErrorException:
Warning: Undefined array key "enabled"

at vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/ProductType.php:174
at Isotope\Model\ProductType->Isotope\Model{closure}(array('name' => 'description', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 12))
at array_filter(array('type' => array('name' => 'type', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 0), 'pages' => array('name' => 'pages', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 1), 'name' => array('name' => 'name', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 2), 'alias' => array('name' => 'alias', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 3), 'sku' => array('enabled' => '1', 'name' => 'sku', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 4), 'teaser' => array('enabled' => '1', 'name' => 'teaser', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 5), 'shipping_weight' => array('enabled' => '1', 'name' => 'shipping_weight', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 6), 'price' => array('enabled' => '1', 'name' => 'price', 'legend' => 'pricing_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 7), 'images' => array('name' => 'images', 'legend' => 'media_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 8), 'published' => array('name' => 'published', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 9), 'start' => array('name' => 'start', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 10), 'stop' => array('name' => 'stop', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 11), 'description' => array('name' => 'description', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 12), 'gtin' => array('name' => 'gtin', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 13), 'tracks' => array('name' => 'tracks', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 14), 'date' => array('name' => 'date', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 15), 'shipping_exempt' => array('name' => 'shipping_exempt', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 16), 'shipping_price' => array('name' => 'shipping_price', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 17), 'baseprice' => array('name' => 'baseprice', 'legend' => 'pricing_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 18), 'meta_title' => array('name' => 'meta_title', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 19), 'meta_description' => array('name' => 'meta_description', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 20), 'meta_keywords' => array('name' => 'meta_keywords', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 21), 'protected' => array('name' => 'protected', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 22), 'guests' => array('name' => 'guests', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 23), 'cssID' => array('name' => 'cssID', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 24)), object(Closure))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/ProductType.php:173)
at Isotope\Model\ProductType->getEnabledAttributesByPosition(array('type' => array('name' => 'type', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 0), 'pages' => array('name' => 'pages', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 1), 'name' => array('name' => 'name', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 2), 'alias' => array('name' => 'alias', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 3), 'sku' => array('enabled' => '1', 'name' => 'sku', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 4), 'teaser' => array('enabled' => '1', 'name' => 'teaser', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 5), 'shipping_weight' => array('enabled' => '1', 'name' => 'shipping_weight', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 6), 'price' => array('enabled' => '1', 'name' => 'price', 'legend' => 'pricing_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 7), 'images' => array('name' => 'images', 'legend' => 'media_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 8), 'published' => array('name' => 'published', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 9), 'start' => array('name' => 'start', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 10), 'stop' => array('name' => 'stop', 'legend' => 'publish_legend', 'tl_class' => '', 'mandatory' => '', 'enabled' => '1', 'position' => 11), 'description' => array('name' => 'description', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 12), 'gtin' => array('name' => 'gtin', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 13), 'tracks' => array('name' => 'tracks', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 14), 'date' => array('name' => 'date', 'legend' => 'general_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 15), 'shipping_exempt' => array('name' => 'shipping_exempt', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 16), 'shipping_price' => array('name' => 'shipping_price', 'legend' => 'shipping_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 17), 'baseprice' => array('name' => 'baseprice', 'legend' => 'pricing_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 18), 'meta_title' => array('name' => 'meta_title', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 19), 'meta_description' => array('name' => 'meta_description', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 20), 'meta_keywords' => array('name' => 'meta_keywords', 'legend' => 'meta_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 21), 'protected' => array('name' => 'protected', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 22), 'guests' => array('name' => 'guests', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 23), 'cssID' => array('name' => 'cssID', 'legend' => 'expert_legend', 'tl_class' => '', 'mandatory' => '', 'position' => 24)))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/ProductType.php:137)
at Isotope\Model\ProductType->getAttributes()
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/Product/Standard.php:1006)
at Isotope\Model\Product\Standard->setRow(array('id' => 213, 'pid' => 0, 'gid' => 0, 'tstamp' => 1566480090, 'language' => 'de', 'dateAdded' => 1566458760, 'type' => 22, 'orderPages' => 'a:2:{i:0;s:2:"82";i:1;s:2:"83";}', 'inherit' => null, 'fallback' => '', 'alias' => 'stone', 'gtin' => '', 'sku' => '111111', 'name' => 'Stein', 'teaser' => null, 'description' => null, 'meta_title' => '', 'meta_description' => null, 'meta_keywords' => null, 'baseprice' => '', 'shipping_weight' => 'a:2:{s:4:"unit";s:2:"kg";s:5:"value";s:2:"10";}', 'shipping_exempt' => '', 'shipping_pickup' => '', 'shipping_price' => '0.00', 'images' => 'a:1:{i:0;a:4:{s:3:"src";s:9:"stone.jpg";s:3:"alt";s:0:"";s:4:"desc";s:0:"";s:9:"translate";s:3:"all";}}', 'protected' => '', 'groups' => null, 'guests' => '', 'cssID' => '', 'published' => '1', 'start' => '', 'stop' => '', 'contao' => 0, 'version' => '', 'date' => '', 'tracks' => '', 'size' => '', 'colour' => '', 'images_fallback' => 'a:1:{i:0;a:5:{s:3:"src";s:9:"stone.jpg";s:3:"alt";s:0:"";s:4:"link";s:0:"";s:4:"desc";s:0:"";s:9:"translate";s:4:"none";}}', 'product_categories' => '82'))
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:149)
at Contao\Model->__construct(object(Result))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/TypeAgent.php:48)
at Isotope\Model\TypeAgent->__construct(object(Result))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/TypeAgent.php:314)
at Isotope\Model\TypeAgent::createModelFromDbResult(object(Result))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/TypeAgent.php:377)
at Isotope\Model\TypeAgent::buildModelType(object(Result))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/TypeAgent.php:342)
at Isotope\Model\TypeAgent::createCollectionFromDbResult(object(Result), 'tl_iso_product')
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/TypeAgent.php:266)
at Isotope\Model\TypeAgent::find(array('column' => array('tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1674669600') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1674669660')', 'tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), 'value' => array(), 'return' => 'Collection', 'order' => null, 'filters' => array(), 'sorting' => array('dateAdded' => object(Sort)), 'group' => 'tl_iso_product.id', 'table' => 'tl_iso_product', 'limit' => 0, 'offset' => 0))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/Product.php:501)
at Isotope\Model\Product::find(array('column' => array('tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1674669600') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1674669660')', 'tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), 'value' => array(), 'return' => 'Collection', 'order' => null, 'filters' => array(), 'sorting' => array('dateAdded' => object(Sort)), 'group' => 'tl_iso_product.id'))
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:957)
at Contao\Model::findBy(array('tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1674669600') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1674669660')', 'tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), array(), array('column' => array('tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1674669600') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1674669660')', 'tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), 'value' => array(), 'return' => 'Collection', 'order' => null, 'filters' => array(), 'sorting' => array('dateAdded' => object(Sort))))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/Product.php:159)
at Isotope\Model\Product::findPublishedBy(array('tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1674669600') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1674669660')', 'tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), array(), array('order' => null, 'filters' => array(), 'sorting' => array('dateAdded' => object(Sort))))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/Product.php:338)
at Isotope\Model\Product::findAvailableBy(array('tl_iso_product.pid=0', 'c.page_id IN (42,19,31,84,3,5,7,9,11,13,15,17,46,56,60,62,82,94,21,23,25,27,29,33,35,37,90,48,50,54,86,87,92,52,1)', 'tl_iso_product.dateAdded>=1359072000'), array(), array('order' => null, 'filters' => array(), 'sorting' => array('dateAdded' => object(Sort))))
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/ProductList.php:348)
at Isotope\Module\ProductList->findProducts()
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/ProductList.php:209)
at Isotope\Module\ProductList->compile()
(vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
at Contao\Module->generate()
(vendor/codefog/contao-haste/library/Haste/Frontend/AbstractFrontendModule.php:52)
at Haste\Frontend\AbstractFrontendModule->generate()
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/Module.php:115)
at Isotope\Module\Module->generate()
(vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/ProductList.php:104)
at Isotope\Module\ProductList->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(ContentModel), '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), true, false, '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), 1, true)
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:44)

@aschempp aschempp added the bug label Feb 24, 2023
@aschempp aschempp added this to the 2.8.10 milestone Feb 24, 2023
aschempp added a commit that referenced this issue Feb 24, 2023
@aschempp
Copy link
Member

fixed in 815112e

@Ernestopheles
Copy link
Contributor Author

Thank you @aschempp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants