Closed sportluffi closed 11 years ago
The exception is actually triggered in the parent class Mage_Catalog_Model_Product_Image
from the core.
Please refer to the method setBaseFile()
(on line 263) in my copy of Magento.
What is happening is that it is trying to build a path to a placeholder image, but that placeholder doesn't exist.
To figure out the place it's looking at, I'd add a Mage::log($baseFile)
statement to line 306.
This issue seems to be specific to your installation and will - as far as I can tell - also accure without the NicerImageNames extension.
you can solve this problem in a way $productMediaConfig = Mage::getModel('catalog/product_media_config'); try{ $baseImageUrl = Mage::helper('catalog/image')->init($product, 'image'); } catch(Exception $e) { $baseImageUrl = $productMediaConfig->getMediaUrl($product->getImage()); }
I'm getting a very huge amount of error-reports, all with the "Image file not found"-error. Running Magento 1.7.0.2 CE.