Magento – Product images dissappear after re-index

importmagento-1.9product-imagesreindex

I am in the process of importing a bunch of configurable and simple products.

All was good until, the last few products.

After importing the csv file for the product images, and visiting the product in admin the image is imported correctly. However I have the re-index message obviously.

After running the re-index however all of the images for that product are gone.

I went into the database to try and see what was going on. I found the images still listed in the table 'catalog_product_entity_varchar'

So I deleted all the rows with the image that I was importing. Then I went to import the image again. And same problem. The image shows up until I run the re-index.

What can I do?

I just checked a bunch of the other simple products that I had made and ensured the images were there. But now they seem to not be there either in the admin. However on the front end of the site the images load when they are selected. So it appears the issues is really that the product images are not being shown in admin but do in fact exist, and are being properly associated with the product.

So why arent they showing in admin?

Best Answer

I ran into this issue before, take a look at this SCRIPT, simply create a one column csv, and run the script. Make sure to make full backup before, just in case.

Related Topic