Fatal error: Uncaught Error: Call to a member function count() on array in /var/www/vhosts/default/vendor/magento/module-catalog/Model/Product.php:1533 Stack trace: #0 /var/www/vhosts/default/vendor/magento/module-configurable-product/Helper/Data.php(52): Magento\Catalog\Model\Product->getMediaGalleryImages() #1 /var/www/vhosts/default/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(262): Magento\ConfigurableProduct\Helper\Data->getGalleryImages(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /var/www/vhosts/default/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(239): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getOptionImages() #3 /var/www/vhosts/default/vendor/magento/framework/Interception/Interceptor.php(58): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getJsonConfig() #4 /var/www/vhosts/default/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Swatches\Block\Product\Renderer\Conf in /var/www/vhosts/default/vendor/magento/module-catalog/Model/Product.php on line 1533