在清除缓存后,缩略图图像不显示Magento


Thumbnail images not displayed Magento after clearing cache

几乎所有的缩略图图像不显示后,我清除Magento缓存从后端。问题是只有缩略图的集合和类似的产品和相关的产品图像。所有类别和产品页面的图片似乎都很好。

为了排除故障,我做了以下操作:

  1. 使媒体文件夹全局读写和可执行(chmod -R 777 ./media)
  2. 再次清空缓存,然后加载页面。
  3. 删除/var/www/media/catalog/products/cache.. Magento的缓存文件夹,重新创建缓存,仍然没有图像显示
  4. 将PHP内存限制增加到512MB

任何其他猜测,我需要尝试解决这个问题。它只有小缩略图,一切都很好,直到我从后端删除缓存。

检查缩略图选项是否在admin中分配给图像,

如果指定,则交叉检查您的数据库是否具有该值

第一步:获取缩略图属性id;

mysql> select * from eav_attribute where attribute_code = 'thumbnail';
第二步:现在使用下面的查询 检查缩略图的图像路径
mysql> select * from catalog_product_entity_varchar where attribute_id = 'here_your_thum_img_attr_id' AND entity_id = 'here_product_id';