How can I solve the error, images import successfully and images saved into catalog/product/desired folder, but images not shown front end backend. Images imported by using MAGMI.
5 Answers
Possible reason 1: You have wrong permissions on your /media/ folder.
Ensure you have writable permissions on this folder. Change permissions to 777 recursively. You can do it using SSH via this command (execute it in Magento directory):
Change ownership of the /media/ folder:
chmod -R 777 media/
Possible reason 2: Magento cannot resize images due low PHP memory limit. Magento resize images using GD library, however if there is no sufficient amount of memory for such operation Magento will return a placeholder image.
Increase your memory limit. You should open your .htaccess file and find this string:
php_value memory_limit 512M
Possible reason 3 : Uploader file
To fix this issue you had to revert change the permissions to more realistic values, 775 for folders and 644 for files. These can be changed here;
lib/Varien/File/Uploader.php
line 219, change 0640 to 0644 line 541, change 0750 to 0755
-
media permissions = 777, php_value memory_limit 99999M, Uploader.php = 777, still not working. Actually i am try to access imags from other server using magmi– zusCommented Sep 13, 2017 at 12:42
-
-
@zus Are you importing all the images from magmi using csv?– RaghavCommented Sep 13, 2017 at 13:18
-
yes, i am importing all images from magmi by remote like another server. my CSV: snag.gy/2oPART.jpg– zusCommented Sep 14, 2017 at 5:32
-
I'm unable to comment but I would suggest opening the image location directly in your browser or viewing the console to see if it gives you an exact error code to help rectify your issue.
For example if you're seeing an error message like the below it's likely permissions as Raghav mentions.
Failed to load resource: the server responded with a status of 403 (Forbidden)
-
In console, there is no error, like empty page : snag.gy/CXje2T.jpg– zusCommented Sep 13, 2017 at 12:52
-
@zus How acount if you go directly to the image location in your browser? Also, does it work OK without using Magmi? Commented Sep 13, 2017 at 12:57
-
Make sure i am imported images accessing from another server like remote using magmi.– zusCommented Sep 13, 2017 at 13:03
-
-
@zus The console mentions URL's which may contain credentials are depreciated, is this potentially the issue? I.e. are your images stored on a different server to your website (from what I understand) and is that webserver protected with authentication which your website may not be able to display? Perhaps a different browser may allow that depreciation if that is the case? Commented Sep 14, 2017 at 7:52
This issue occurred usually the file encoding. Switching from ANSI to UTF-8 resolved it. Magento says import successful, and the query logs showed movements.
You must have next fields in CSV
sku _attribute_set _type _category description image name price short_description status tax_class_id thumbnail visibility weight qty _product_websites is_in_stock
Please note that field is_in_stock
is mandatory even if qty more than 1.
-
I tried UTF-8 also, still not working, and make sure i am imported product images using MAGMI and accessing another server.– zusCommented Sep 13, 2017 at 13:01
-
@ zus Magmi, Magmi supports both local image & remote image import from URLs. it also supports image gallery to associate multiple images with a product All image import is done by using Image attributes processor:- wiki.magmi.org/index.php/Image_attributes_processor Commented Sep 14, 2017 at 12:27
Take look on following step:
Step 1- Give media folder permission chmod -R 777 media/*
Step 2- Check .htaccess file present in media folder or not . If not upload .htaccess file in media folder copy from any local magento directory.
Hope this would help you out , Step 2 is strongly recommended.