简体   繁体   中英

Magento: catalog & product images not uploading

For some reason catalog images are not uploading properly, with no error messages or anything in ./var/log/exception.log or ./var/log/system.log or /var/log/httpd/magento/error.log - simply it just seems to ignore the image file.

Perhaps relatedly, catalog_product_entity_media_gallery doesn't seem to be updating at all when I upload product images, hence uploaded images show in the front end but not in the back end at all. On re-save they are removed.

I'm unsure where to start with debugging, been looking around for a while with no luck!

This just started happening a few days ago after importing a few products. Before then it was working fine.

This can happen when importing products and not assigning them to the admin store (store id 0).

for example, if you load a product for store 1 (default store) and then save images to this store's version of the product, then they will not be visible in the admin area.

images must be assigned to store 0's version of the product for them to be visible in the admin.

I am guessing you have created your products and assigned only to store 1, and then saved the procucts images to this.

I would try re-importing your products, and not setting a store id before saving, this will automatically add them to the admin store for you and your issues should vanish :)

David, before you start changing permissions and looking for more complex reasons for the problem try this:

Use either Internet Explorer or Chrome and you should be right.

I had the same issue where I could not upload images using the Magento admin to product pages. What I found was simply that I was using Firefox and something to do with Flash or Java was causing the issue.

It is working fine for me now.

通过更新到最新版本的Magento社区版,已修复此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM