Invalid argument supplied for foreach() Error in magento 2.3 The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)I got the error 'Unable to serialize value' after upgrading the magento version to the 2.2.1The image content is not valid in magento 2.2.2Could not create an acl object: Invalid XMLMagento 2: Error in magento2 product list when i have reviews with ratingMagento2.2.4 : Uninstall a theme throw exceptions?Magento 2.3 Inject helper into controller object type error?Deleted ShipperHQ module causing error in “All Customers” section of Magento 2Magento2.3 : Layered Navigation issueMagento 2.2.6- After Migration all default Payment Methods are not working fineMsrpPriceCalculator Exception
Variable with quotation marks "$()"
University's motivation for having tenure-track positions
How do you keep chess fun when your opponent constantly beats you?
How can a C program poll for user input while simultaneously performing other actions in a Linux environment?
Make it rain characters
Why can't devices on different VLANs, but on the same subnet, communicate?
Presidential Pardon
Does Parliament need to approve the new Brexit delay to 31 October 2019?
60's-70's movie: home appliances revolting against the owners
What do I do when my TA workload is more than expected?
Why can't wing-mounted spoilers be used to steepen approaches?
US Healthcare consultation for visitors
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Can a flute soloist sit?
Are spiders unable to hurt humans, especially very small spiders?
What can I do if neighbor is blocking my solar panels intentionally?
Button changing its text & action. Good or terrible?
Identify 80s or 90s comics with ripped creatures (not dwarves)
Huge performance difference of the command find with and without using %M option to show permissions
What would this chord progression be called?
Are there continuous functions who are the same in an interval but differ in at least one other point?
Invalid argument supplied for foreach() Error in magento 2.3
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)I got the error 'Unable to serialize value' after upgrading the magento version to the 2.2.1The image content is not valid in magento 2.2.2Could not create an acl object: Invalid XMLMagento 2: Error in magento2 product list when i have reviews with ratingMagento2.2.4 : Uninstall a theme throw exceptions?Magento 2.3 Inject helper into controller object type error?Deleted ShipperHQ module causing error in “All Customers” section of Magento 2Magento2.3 : Layered Navigation issueMagento 2.2.6- After Migration all default Payment Methods are not working fineMsrpPriceCalculator Exception
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am getting this error on some Products on Magento 2.3 when I try to view them:
1 exception(s): Exception #0 (Exception): Warning: Invalid argument
supplied for foreach() in
/www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php
on line 215
Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php on line 215
#0 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php(215): MagentoFrameworkAppErrorHandler->handler(2, 'Invalid argumen...', '/www/htdocs/w01...', 215, Array)
#1 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options.phtml(19): MagentoCatalogBlockProductViewOptions->getJsonConfig()
#2 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#3 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewOptions), '/www/htdocs/w01...', Array)
#4 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#5 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#6 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#7 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#8 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#9 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#10 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#11 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(512): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#12 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): MagentoFrameworkViewElementAbstractBlock->getChildHtml('', true)
#13 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options/wrapper.phtml(15): MagentoCatalogBlockProductViewInterceptor->getChildHtml('', true)
#14 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#15 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#16 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#17 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#18 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#19 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#20 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#21 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#22 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#23 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#24 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#25 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(543): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#26 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(791): MagentoFrameworkViewElementAbstractBlock->getChildChildHtml('options_contain...', '', true)
#27 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/form.phtml(37): MagentoCatalogBlockProductViewInterceptor->getChildChildHtml('options_contain...')
#28 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#29 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#30 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#31 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#32 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#33 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#34 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#35 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info')
#36 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info')
#37 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info')
#38 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info', false)
#39 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info', false)
#40 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('product.info.ma...', false)
#41 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.ma...')
#42 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.ma...')
#43 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.ma...', false)
#44 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.ma...', false)
#45 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
#46 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#47 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content')
#48 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('content', false)
#49 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('content', false)
#50 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main', false)
#51 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#52 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main')
#53 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main', false)
#54 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main', false)
#55 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#56 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#57 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('columns')
#58 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('columns', false)
#59 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('columns', false)
#60 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#61 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#62 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.content')
#63 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main.content', false)
#64 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main.content', false)
#65 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#66 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#67 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper')
#68 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#69 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false)
#70 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
#71 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#72 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root')
#73 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('root', true)
#74 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayoutInterceptor->renderElement('root')
#75 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#76 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#77 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#78 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#79 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Page.php(258): MagentoFrameworkViewLayoutInterceptor->getOutput()
#80 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Layout.php(171): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#81 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#82 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#83 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#84 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#85 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#86 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()
#87 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttpInterceptor->launch()
#88 /www/htdocs/w018f7f2/pema/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#89 main
Any Ideas?
product error magento2.3 exception
New contributor
add a comment |
I am getting this error on some Products on Magento 2.3 when I try to view them:
1 exception(s): Exception #0 (Exception): Warning: Invalid argument
supplied for foreach() in
/www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php
on line 215
Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php on line 215
#0 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php(215): MagentoFrameworkAppErrorHandler->handler(2, 'Invalid argumen...', '/www/htdocs/w01...', 215, Array)
#1 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options.phtml(19): MagentoCatalogBlockProductViewOptions->getJsonConfig()
#2 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#3 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewOptions), '/www/htdocs/w01...', Array)
#4 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#5 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#6 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#7 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#8 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#9 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#10 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#11 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(512): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#12 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): MagentoFrameworkViewElementAbstractBlock->getChildHtml('', true)
#13 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options/wrapper.phtml(15): MagentoCatalogBlockProductViewInterceptor->getChildHtml('', true)
#14 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#15 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#16 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#17 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#18 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#19 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#20 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#21 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#22 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#23 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#24 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#25 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(543): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#26 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(791): MagentoFrameworkViewElementAbstractBlock->getChildChildHtml('options_contain...', '', true)
#27 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/form.phtml(37): MagentoCatalogBlockProductViewInterceptor->getChildChildHtml('options_contain...')
#28 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#29 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#30 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#31 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#32 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#33 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#34 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#35 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info')
#36 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info')
#37 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info')
#38 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info', false)
#39 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info', false)
#40 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('product.info.ma...', false)
#41 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.ma...')
#42 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.ma...')
#43 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.ma...', false)
#44 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.ma...', false)
#45 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
#46 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#47 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content')
#48 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('content', false)
#49 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('content', false)
#50 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main', false)
#51 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#52 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main')
#53 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main', false)
#54 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main', false)
#55 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#56 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#57 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('columns')
#58 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('columns', false)
#59 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('columns', false)
#60 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#61 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#62 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.content')
#63 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main.content', false)
#64 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main.content', false)
#65 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#66 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#67 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper')
#68 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#69 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false)
#70 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
#71 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#72 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root')
#73 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('root', true)
#74 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayoutInterceptor->renderElement('root')
#75 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#76 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#77 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#78 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#79 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Page.php(258): MagentoFrameworkViewLayoutInterceptor->getOutput()
#80 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Layout.php(171): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#81 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#82 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#83 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#84 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#85 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#86 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()
#87 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttpInterceptor->launch()
#88 /www/htdocs/w018f7f2/pema/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#89 main
Any Ideas?
product error magento2.3 exception
New contributor
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday
add a comment |
I am getting this error on some Products on Magento 2.3 when I try to view them:
1 exception(s): Exception #0 (Exception): Warning: Invalid argument
supplied for foreach() in
/www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php
on line 215
Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php on line 215
#0 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php(215): MagentoFrameworkAppErrorHandler->handler(2, 'Invalid argumen...', '/www/htdocs/w01...', 215, Array)
#1 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options.phtml(19): MagentoCatalogBlockProductViewOptions->getJsonConfig()
#2 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#3 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewOptions), '/www/htdocs/w01...', Array)
#4 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#5 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#6 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#7 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#8 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#9 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#10 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#11 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(512): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#12 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): MagentoFrameworkViewElementAbstractBlock->getChildHtml('', true)
#13 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options/wrapper.phtml(15): MagentoCatalogBlockProductViewInterceptor->getChildHtml('', true)
#14 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#15 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#16 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#17 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#18 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#19 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#20 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#21 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#22 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#23 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#24 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#25 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(543): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#26 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(791): MagentoFrameworkViewElementAbstractBlock->getChildChildHtml('options_contain...', '', true)
#27 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/form.phtml(37): MagentoCatalogBlockProductViewInterceptor->getChildChildHtml('options_contain...')
#28 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#29 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#30 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#31 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#32 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#33 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#34 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#35 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info')
#36 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info')
#37 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info')
#38 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info', false)
#39 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info', false)
#40 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('product.info.ma...', false)
#41 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.ma...')
#42 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.ma...')
#43 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.ma...', false)
#44 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.ma...', false)
#45 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
#46 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#47 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content')
#48 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('content', false)
#49 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('content', false)
#50 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main', false)
#51 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#52 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main')
#53 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main', false)
#54 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main', false)
#55 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#56 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#57 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('columns')
#58 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('columns', false)
#59 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('columns', false)
#60 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#61 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#62 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.content')
#63 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main.content', false)
#64 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main.content', false)
#65 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#66 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#67 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper')
#68 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#69 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false)
#70 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
#71 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#72 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root')
#73 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('root', true)
#74 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayoutInterceptor->renderElement('root')
#75 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#76 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#77 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#78 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#79 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Page.php(258): MagentoFrameworkViewLayoutInterceptor->getOutput()
#80 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Layout.php(171): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#81 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#82 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#83 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#84 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#85 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#86 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()
#87 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttpInterceptor->launch()
#88 /www/htdocs/w018f7f2/pema/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#89 main
Any Ideas?
product error magento2.3 exception
New contributor
I am getting this error on some Products on Magento 2.3 when I try to view them:
1 exception(s): Exception #0 (Exception): Warning: Invalid argument
supplied for foreach() in
/www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php
on line 215
Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php on line 215
#0 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/Block/Product/View/Options.php(215): MagentoFrameworkAppErrorHandler->handler(2, 'Invalid argumen...', '/www/htdocs/w01...', 215, Array)
#1 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options.phtml(19): MagentoCatalogBlockProductViewOptions->getJsonConfig()
#2 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#3 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewOptions), '/www/htdocs/w01...', Array)
#4 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#5 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#6 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#7 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#8 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#9 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#10 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#11 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(512): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#12 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): MagentoFrameworkViewElementAbstractBlock->getChildHtml('', true)
#13 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/options/wrapper.phtml(15): MagentoCatalogBlockProductViewInterceptor->getChildHtml('', true)
#14 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#15 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#16 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#17 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#18 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#19 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#20 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#21 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info.op...')
#22 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.op...')
#23 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.op...')
#24 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.op...', true)
#25 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(543): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.op...', true)
#26 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(791): MagentoFrameworkViewElementAbstractBlock->getChildChildHtml('options_contain...', '', true)
#27 /www/htdocs/w018f7f2/pema/vendor/magento/module-catalog/view/frontend/templates/product/view/form.phtml(37): MagentoCatalogBlockProductViewInterceptor->getChildChildHtml('options_contain...')
#28 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/www/htdocs/w01...')
#29 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewInterceptor), '/www/htdocs/w01...', Array)
#30 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): MagentoFrameworkViewElementTemplate->fetchView('/www/htdocs/w01...')
#31 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/Template.php(301): MagentoCatalogBlockProductViewInterceptor->fetchView('/www/htdocs/w01...')
#32 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Element/AbstractBlock.php(668): MagentoFrameworkViewElementTemplate->_toHtml()
#33 /www/htdocs/w018f7f2/pema/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): MagentoFrameworkViewElementAbstractBlock->toHtml()
#34 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(557): MagentoCatalogBlockProductViewInterceptor->toHtml()
#35 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('product.info')
#36 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info')
#37 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info')
#38 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info', false)
#39 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info', false)
#40 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('product.info.ma...', false)
#41 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('product.info.ma...')
#42 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('product.info.ma...')
#43 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('product.info.ma...', false)
#44 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('product.info.ma...', false)
#45 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
#46 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#47 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('content')
#48 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('content', false)
#49 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('content', false)
#50 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main', false)
#51 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#52 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main')
#53 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main', false)
#54 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main', false)
#55 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#56 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#57 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('columns')
#58 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('columns', false)
#59 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('columns', false)
#60 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#61 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#62 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('main.content')
#63 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('main.content', false)
#64 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('main.content', false)
#65 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#66 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#67 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('page.wrapper')
#68 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#69 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayoutInterceptor->renderElement('page.wrapper', false)
#70 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
#71 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#72 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayoutInterceptor->renderNonCachedElement('root')
#73 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): MagentoFrameworkViewLayout->renderElement('root', true)
#74 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayoutInterceptor->renderElement('root')
#75 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewLayout->getOutput()
#76 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewLayoutInterceptor->___callParent('getOutput', Array)
#77 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewLayoutInterceptor->MagentoFrameworkInterceptionclosure()
#78 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#79 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Page.php(258): MagentoFrameworkViewLayoutInterceptor->getOutput()
#80 /www/htdocs/w018f7f2/pema/vendor/magento/framework/View/Result/Layout.php(171): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#81 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#82 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#83 /www/htdocs/w018f7f2/pema/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkAppResponseHttpInterceptor))
#84 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#85 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#86 /www/htdocs/w018f7f2/pema/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()
#87 /www/htdocs/w018f7f2/pema/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttpInterceptor->launch()
#88 /www/htdocs/w018f7f2/pema/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#89 main
Any Ideas?
product error magento2.3 exception
product error magento2.3 exception
New contributor
New contributor
edited yesterday
ARUNPRABAKARAN M
454113
454113
New contributor
asked yesterday
KenKen
182
182
New contributor
New contributor
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday
add a comment |
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday
add a comment |
1 Answer
1
active
oldest
votes
Invalid argument supplied for foreach() is the warning
occurs when you pass null to foreach() instead of array.
if it is related to product then may be your product collection return an instance instead of array. So use this
return $collection->getData();
instead of
return $collection;
in your getProductCollection()
function
I hope this will help
It is related to a few Products. Not all. How do i usereturn $collection->getData();
Not very familiar with magento.
– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not findreturn $collection;
– Ken
yesterday
You can find thegetProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well
– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Ken is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269652%2finvalid-argument-supplied-for-foreach-error-in-magento-2-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Invalid argument supplied for foreach() is the warning
occurs when you pass null to foreach() instead of array.
if it is related to product then may be your product collection return an instance instead of array. So use this
return $collection->getData();
instead of
return $collection;
in your getProductCollection()
function
I hope this will help
It is related to a few Products. Not all. How do i usereturn $collection->getData();
Not very familiar with magento.
– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not findreturn $collection;
– Ken
yesterday
You can find thegetProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well
– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
add a comment |
Invalid argument supplied for foreach() is the warning
occurs when you pass null to foreach() instead of array.
if it is related to product then may be your product collection return an instance instead of array. So use this
return $collection->getData();
instead of
return $collection;
in your getProductCollection()
function
I hope this will help
It is related to a few Products. Not all. How do i usereturn $collection->getData();
Not very familiar with magento.
– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not findreturn $collection;
– Ken
yesterday
You can find thegetProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well
– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
add a comment |
Invalid argument supplied for foreach() is the warning
occurs when you pass null to foreach() instead of array.
if it is related to product then may be your product collection return an instance instead of array. So use this
return $collection->getData();
instead of
return $collection;
in your getProductCollection()
function
I hope this will help
Invalid argument supplied for foreach() is the warning
occurs when you pass null to foreach() instead of array.
if it is related to product then may be your product collection return an instance instead of array. So use this
return $collection->getData();
instead of
return $collection;
in your getProductCollection()
function
I hope this will help
answered yesterday
Muhammad HashamMuhammad Hasham
2,8162831
2,8162831
It is related to a few Products. Not all. How do i usereturn $collection->getData();
Not very familiar with magento.
– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not findreturn $collection;
– Ken
yesterday
You can find thegetProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well
– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
add a comment |
It is related to a few Products. Not all. How do i usereturn $collection->getData();
Not very familiar with magento.
– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not findreturn $collection;
– Ken
yesterday
You can find thegetProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well
– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
It is related to a few Products. Not all. How do i use
return $collection->getData();
Not very familiar with magento.– Ken
yesterday
It is related to a few Products. Not all. How do i use
return $collection->getData();
Not very familiar with magento.– Ken
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Yes because not every time you got null in your collection instance that's why it occurs in few products
– Muhammad Hasham
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not find
return $collection;
– Ken
yesterday
Okay, where do i find that function? I have tried in list.phtml but can not find
return $collection;
– Ken
yesterday
You can find the
getProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well– Muhammad Hasham
yesterday
You can find the
getProductCollection()
function in your module block. if my answer is helpful please mark my answer correct and upvote my answer. so it helps other readers as well– Muhammad Hasham
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
Sorry but i can not find the file where i have to change the function. can you give me the filename and path so i can try? I am new to magento.
– Ken
yesterday
add a comment |
Ken is a new contributor. Be nice, and check out our Code of Conduct.
Ken is a new contributor. Be nice, and check out our Code of Conduct.
Ken is a new contributor. Be nice, and check out our Code of Conduct.
Ken is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269652%2finvalid-argument-supplied-for-foreach-error-in-magento-2-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
kindly mention your Magento version and PHP version
– ARUNPRABAKARAN M
yesterday
Magento 2.3 PHP v. 7.2
– Ken
yesterday