Fatal error: Uncaught Error: Call to a member function count() on array in /srv/public_html/vendor/magento/module-catalog/Model/Product.php:1533 Stack trace: #0 /srv/public_html/vendor/magento/module-configurable-product/Helper/Data.php(52): Magento\Catalog\Model\Product->getMediaGalleryImages() #1 /srv/public_html/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(262): Magento\ConfigurableProduct\Helper\Data->getGalleryImages(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /srv/public_html/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php(239): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getOptionImages() #3 /srv/public_html/app/code/Kommercekreator/CustomProduct/view/frontend/templates/customtext/index.phtml(12): Magento\ConfigurableProduct\Block\Product\View\Type\Configurable->getJsonConfig() #4 /srv/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/srv/public_htm...') #5 /srv/public_html/vendor in /srv/public_html/vendor/magento/module-catalog/Model/Product.php on line 1533