Fatal error: Uncaught Error: Call to a member function count() on array in /data/web/magento2/vendor/magento/module-catalog/Model/Product.php:1533 Stack trace: #0 /data/web/magento2/vendor/magento/module-configurable-product/Helper/Data.php(52): Magento\Catalog\Model\Product->getMediaGalleryImages() #1 /data/web/magento2/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(262): Magento\ConfigurableProduct\Helper\Data->getGalleryImages(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /data/web/magento2/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(239): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getOptionImages() #3 /data/web/magento2/app/design/frontend/Ambitic/edelmetaal/Magento_ConfigurableProduct/templates/product/view/type/options/configurable.phtml(33): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getJsonConfig() #4 /data/web/magento2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include( in /data/web/magento2/vendor/magento/module-catalog/Model/Product.php on line 1533