简体   繁体   English

在magento 1.9.1中手动上传后,产品缩略图不会显示在后端

[英]Product thumbnail images are not displayed in backend after manual upload in magento 1.9.1

Image thumbnails are not visible in admin. 图片缩略图在管理员中不可见。

I have manually uploaded images for products in admin. 我已经手动在管理员中上传了产品图片。 Images are visible in frontend. 图像在前端可见。 But not displayed in admin. 但未在管理员中显示。

It shows the text "roll over for preview", when rolled over it just become empty. 它显示文本“为预览而滚动”,将其变为空时。

Changed media folder permission to 777. and I have removed .htaccess file from /media folder too... 将媒体文件夹权限更改为777。我也从/ media文件夹中删除了.htaccess文件...

Plz see the image. 请看图片。

But the thumbnails are visible for existing products. 但是缩略图对于现有产品可见。

This is the existing product page. 这是现有产品页面。

Try This below Solution 请尝试以下解决方案

Open up the following file: 打开以下文件:

lib/Varien/File/Uploader.php

Find this line : 找到这行:

 chmod($destinationFile, 0640);

Replace it with this line: 替换为此行:

chmod($destinationFile, 0777);

This can be caused by wrong permissions set to uploaded files. 这可能是由于上载文件的权限设置错误造成的。 Open lib/Varien/File/Uploader.php and make sure following permission are set: 打开lib/Varien/File/Uploader.php并确保设置了以下权限:

Around line 219: 在219行附近:

chmod($destinationFile, 0666);

Around line 541: 围绕541行:

if (!(@is_dir($destinationFolder) || @mkdir($destinationFolder, 0777, true))) {

Note: This issue will also be fixed by applying patch SUPEE-7405 v1.1 注意:也可以通过应用补丁SUPEE-7405 v1.1来解决此问题。

increase your memory limit from php.ini or you can ask to your server support 从php.ini中增加内存限制,或者您可以请求服务器支持

memory_limit = 512M

no need to clear magento cache 无需清除magento缓存

add below code in php.ini file on root 在根目录下的php.ini文件中添加以下代码

memory_limit = 512M

in admin panel go to admin->system->cache management and click Flush Catalog Images Cache 在管理面板中,转到“管理”->“系统”->“缓存管理”,然后单击“刷新目录图像缓存”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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