简体   繁体   中英

Magento 1.9.2.4 product thumbnail image not showing in grid/list view

I've installed Magento 1.9.2.4. I imported the products and the store data from magento 1.4 using sql. I putted the media folder from the old site to the new site. The thumbnail image is replaced by placeholder only in product listing, on every category. If I click on a product, I have all the images.

In the backend are checked all boxes from images. I have right permissions on media/catalog/product folder. I have php memory set to 2048M, so I don't think that this is the problem. I also have installed gd library.

Please give me an advice.
从我的网站打印屏幕

UPDATE: Fixed.

I didn't find a solution using cache images.

I used the following code to display images in the product category grid:

 <img src="<?php $product= Mage::getModel('catalog/product')->load($_product->getId());
         $thumbUrl = $product->getThumbnailUrl(200, 200);
           echo $thumbUrl; ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" width="200" height="200" />

It looks like the only thing that wasn't done in your migration was flushing the image cache. To do so, go into the admin backend and navigate to System > Cache Management > Flush Catalog Images Cache .

Note that this will affect load times of pages into cache again as it needs to regenerate the resized images.

并请检查媒体目录权限,暂时将其设置为777

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