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->MagentoFrameworkInterception{closure}()
#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->MagentoFrameworkInterception{closure}(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?