Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\Product\Type\Simple::getUsedProducts() in /home/promab/public_html/app/design/frontend/Magento/supremeopti/Magento_Catalog/templates/product/view/gallery.phtml:8 Stack trace: #0 /home/promab/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/promab/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Gallery\Interceptor), '/home/promab/pu...', Array) #2 /home/promab/public_html/generated/code/Magento/Catalog/Block/Product/View/Gallery/Interceptor.php(505): Magento\Framework\View\Element\Template->fetchView('/home/promab/pu...') #3 /home/promab/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Catalog\Block\Product\View\Gallery\Interceptor->fetchView('/home/promab/pu...') #4 /home/promab/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\ in /home/promab/public_html/app/design/frontend/Magento/supremeopti/Magento_Catalog/templates/product/view/gallery.phtml on line 8