Reputation: 21
I imported products and images through a CSV file. Able to view images in frontend but not in admin. It says No image when I open Images tab.
Can anyone help me in this regard.
Upvotes: 2
Views: 3878
Reputation: 1
Bogdan's answer worked for me on 1.7.2. After loading data, verify that you are seeing entries in the catalog_product_entity_media_gallery table for the 'media_gallery' attribute of the products you are loading:
SELECT *
FROM catalog_product_entity_media_gallery
WHERE attribute_id = (
SELECT attribute_id
FROM eav_attribute
WHERE attribute_code = 'media_gallery' )
Upvotes: 0
Reputation: 21
Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely resolve your image issue.
Upvotes: 2
Reputation: 5512
I had the same problem.
Did not manage to find an answer here, but I decided to post the solution that helped me.
Make sure that the following attributes exist and have valid values in import file:
_media_attribute_id
_media_image
_media_position
_media_is_disabled
This solved my problem under 1.7.2.
For previous versions try this solution if mine does not help: http://www.lexitconsulting.com/2012/06/fixing-the-magento-product-import-script/
Upvotes: 0