Magento Admin Error – Image File Was Not Found

adminerrorimagemoduleproduct

I have a custom module with two controllers, one for admin and one for frontend:
http://dev.magento18.com/admin/example_myadmincontroller/preview/id/2/
http://dev.magento18.com/example/mycontroller/?id=1&storeId=1

mycontrollerAction(){
  $html = Mage::helper('mymodule/helpername')->myHelperFunction();
  ...
}

myadmincontrollerAction(){
  $html = Mage::helper('mymodule/helpername')->myHelperFunction();
  ...
}   

Both controllers call the same helper. Inside helper I do:

myHelperFunction(){
  $_product = Mage::getModel('catalog/product')->load(1);
  //if product doesn't have image it will display placeholder on frontend, 
  //in backend triggers error Image file was not found.
  $imgSrc = Mage::helper('catalog/image')->init($_product, 'image');
  ...
  return $html
}

If product doesn't have image, it will display placeholder on frontend. But in backend the same helper triggers error Image file was not found.. Has anybody had the same issue, how could I pass this error and make it display placeholder also in admin?

Best Answer

try this i hade the same issue and works

Go to admin > System > Configuration > Catalog > Product Image Placeholders

and upload some Image Place Holders…