Fatal error: Uncaught Error: Call to a member function count() on null in /opt/bitnami/apache2/htdocs/magento/app/design/frontend/Magease/Yuntheme/Magento_Catalog/templates/product/view/gallery.phtml:64 Stack trace: #0 /opt/bitnami/apache2/htdocs/magento/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /opt/bitnami/apache2/htdocs/magento/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Gallery\Interceptor), '/opt/bitnami/ap...', Array) #2 /opt/bitnami/apache2/htdocs/magento/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/opt/bitnami/ap...') #3 /opt/bitnami/apache2/htdocs/magento/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #4 /opt/bitnami/apache2/htdocs/magento/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 /opt/bitna in /opt/bitnami/apache2/htdocs/magento/app/design/frontend/Magease/Yuntheme/Magento_Catalog/templates/product/view/gallery.phtml on line 64