Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\Product\Type\Simple::getUsedProducts() in /var/www/clients/client1/web2/web/app/code/Garrampa/Catalog/Helper/Swatches.php:119 Stack trace: #0 /var/www/clients/client1/web2/web/app/code/Garrampa/Catalog/Helper/Swatches.php(73): Garrampa\Catalog\Helper\Swatches->getAllowProducts(Object(Magento\Catalog\Model\Product\Interceptor)) #1 /var/www/clients/client1/web2/web/var/view_preprocessed/pub/static/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml(1): Garrampa\Catalog\Helper\Swatches->getExtraImages(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /var/www/clients/client1/web2/web/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/client...') #3 /var/www/clients/client1/web2/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Gallery\Interceptor), '/var/www/client...', Array) #4 /v in /var/www/clients/client1/web2/web/app/code/Garrampa/Catalog/Helper/Swatches.php on line 119