cancel
Showing results for 
Search instead for 
Did you mean: 

Image.php Error on View Cart

Image.php Error on View Cart

When I click on View / Edit Cart I get this error...

 

Fatal error: Uncaught Error: Call to a member function getData() on null in /home/cosemp/Domain.com/vendor/magento/module-catalog/Helper/Image.php:502 Stack trace: #0 /home/cosemp/Domain.com/vendor/magento/module-catalog/Helper/Image.php(472): Magento\Catalog\Helper\Image->initBaseFile() #1 /home/cosemp/Domain.com/vendor/magento/module-catalog/Helper/Image.php(530): Magento\Catalog\Helper\Image->applyScheduledActions() #2 /home/cosemp/Domain.com/app/design/frontend/Mgs/supro/Magento_Catalog/templates/product/image_with_borders.phtml(16): Magento\Catalog\Helper\Image->getUrl() #3 /home/cosemp/Domain.com/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/cosemp/sa...') #4 /home/cosemp/Domain.com/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\Image), '/home/cosemp/sa...', Array) #5 /home/cosemp/Domain.com/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template- in /home/cosemp/Domain.com/vendor/magento/module-catalog/Helper/Image.php on line 502