---
title: "Magento: 后台显示图片不能找到 Image file was not found on product tab"
author: "天梯梦"
date: "2016-08-30T02:22:18Z"
tags: []
categories: ["编程语言"]
slug: "magento-image-file-was-not-found-on-product-tab"
draft: false
lastmod: "2016-08-30T02:25:23Z"
id: 2321555
url: "https://justcoding.iteye.com/blog/2321555"
---

I was uploading some images from the magento backend, after so time, i got this error on my product tab.

There has been an error processing your request **Image file was not found**.

```
Trace:
#0 /home/camerala/public_html/app/code/core/Mage/Catalog/Helper/Image.php(163): Mage_Catalog_Model_Product_Image->setBaseFile('/s/c/screen_pro...')
#1 /home/camerala/public_html/app/design/adminhtml/default/default/template/aw_admingridimages/image.phtml(31): Mage_Catalog_Helper_Image->init(Object(Mage_Catalog_Model_Product), 'small_image')
#2 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/camerala/...')
#3 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#4 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#6 /home/camerala/public_html/app/code/local/AW/Admingridimages/Block/Renderer/Image.php(44): Mage_Core_Block_Abstract->toHtml()
#7 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column.php(128): AW_Admingridimages_Block_Renderer_Image->render(Object(Mage_Catalog_Model_Product))
#8 /home/camerala/public_html/app/design/adminhtml/default/default/template/widget/grid.phtml(161): Mage_Adminhtml_Block_Widget_Grid_Column->getRowField(Object(Mage_Catalog_Model_Product))
#9 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/camerala/...')
#10 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#11 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#12 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#13 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Template->_toHtml()
#14 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#15 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('grid', true)
#16 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Product.php(79): Mage_Core_Block_Abstract->getChildHtml('grid')
#17 /home/camerala/public_html/app/design/adminhtml/default/default/template/catalog/product.phtml(46): Mage_Adminhtml_Block_Catalog_Product->getGridHtml()
#18 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/camerala/...')
#19 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#20 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#22 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#23 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#24 /home/camerala/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#25 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#26 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#27 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#28 /home/camerala/public_html/app/design/adminhtml/default/default/template/page.phtml(74): Mage_Core_Block_Abstract->getChildHtml('content')
#29 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/camerala/...')
#30 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#31 /home/camerala/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#32 /home/camerala/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#33 /home/camerala/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Template->_toHtml()
#34 /home/camerala/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#35 /home/camerala/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#36 /home/camerala/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(180): Mage_Core_Controller_Varien_Action->renderLayout()
#37 /home/camerala/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_ProductController->indexAction()
#38 /home/camerala/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#39 /home/camerala/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#40 /home/camerala/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#41 /home/camerala/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#42 /home/camerala/public_html/index.php(95): Mage::run('', 'store')
```

 

 

解决方法:

I figure it out, This order contains a product which no longer exists in database. Error "**Image file was not found**" resolved after adding image place holder under:

 

**System -&gt; Configuration -&gt; Catalog -&gt; Product Image Placeholders and upload Base, Small image and Thumbnail**

 

Once uploaded, view back your order. The product which no longer exists will have this placeholder image.

 

I hope this will help someone for same issue. :-)

其实就是找到upload Base, Small image 和 Thumbnail, 然后上传默认图片就可以了!

[![Selection_110](http://justcode.ikeepstudying.com/wp-content/uploads/2016/08/Selection_110.png)](http://justcode.ikeepstudying.com/wp-content/uploads/2016/08/Selection_110.png)

 

 

更多参考:

[Magento: 解决搜索失效的问题 Search Not working](http://justcode.ikeepstudying.com/2016/06/magento-%e8%a7%a3%e5%86%b3%e6%90%9c%e7%b4%a2%e5%a4%b1%e6%95%88%e7%9a%84%e9%97%ae%e9%a2%98-search-not-working/)

[Magento 1.9.X 系列教程](http://justcode.ikeepstudying.com/2016/05/magento-1-9-x-%e7%b3%bb%e5%88%97%e6%95%99%e7%a8%8b/)

[Magento: 产品页面下jquery change函数失效 Call javascript function onchange product option on Magento product page](http://justcode.ikeepstudying.com/2016/05/magento-%e4%ba%a7%e5%93%81%e9%a1%b5%e9%9d%a2%e4%b8%8bjquery-change%e5%87%bd%e6%95%b0%e5%a4%b1%e6%95%88-call-javascript-function-onchange-product-option-magento-product-page/)

[Magento搬家、换域名、重新安装教程](http://justcode.ikeepstudying.com/2015/12/magento%e6%90%ac%e5%ae%b6-%e6%8d%a2%e5%9f%9f%e5%90%8d-%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b/)

 

原文: [Magento: 后台显示图片不能找到 Image file was not found on product tab](http://justcode.ikeepstudying.com/2016/08/magento-%e5%90%8e%e5%8f%b0%e6%98%be%e7%a4%ba%e5%9b%be%e7%89%87%e4%b8%8d%e8%83%bd%e6%89%be%e5%88%b0-image-file-was-not-found-on-product-tab/)