Magmi Images not appearing [closed]
Asked Answered
L

2

8

I am importing products with Magmi but I can't get the images appearing, I have gone through the other questions but with no luck.

When I upload I dont get any images not found errors and it looks like it appears in the backend as it says hover to view image, but when I hover over it just dissapers like there is no image there.

I've got this in my "Read Local Images From" media/import in Magmi I am assuming this is public_html/media/import?

And I have the images in there and in my csv column I have image-name.jpg

Has anyone had this issue before and found a fix?

Library answered 24/7, 2012 at 10:10 Comment(6)
Values in image column should be /image-name.jpg.Note the /Weisbart
@Weisbart that dosen't seemed to have worked either :S, Where should the images be and where should I tell Magmi to read the local images from?Library
All images should be in media/import.There should not be any sub folders.Magmi will automatically pickup images.Btw,Have you enabled image attributes processor plugin for magmiWeisbart
Pl share part of csv file.Need to more information to provide solutionWeisbart
@Weisbart I have columns named image, small_image, thumbnail. And in each of these columns has the image name for example 30.1221.jpg. I have noticed that when I have imported and look in the db the image paths are in catalog/product/3/0 for exmaple depending on the image name but it seems Magmi hasn't put the images in these right folders after import.Library
This type of question doesn't really belong on Stack Overflow, as it's not a programming question. You should take a look at area51.stackexchange.com/proposals/25439/magento and see about getting a proper place to put these kind of questionsTacita
Y
6

Thats a sample of how i am use it. I notice that i need to upload the diff sizes to have them in the products.

sku,image,small_image,thumbnail,media_gallery,store,websites 4101078,/4101078-marquise-ring.jpg,/4101078-marquise-ring-s.jpg,/4101078-marquise-ring-t.jpg,/4101078-marquise-ring-2.jpg;/4101078-marquise-ring-3.jpg;/4101078-marquise-ring-4.jpg,,

Works perfect to me,

Try regenerate the images after the importation from the cashe menu

Yung answered 24/7, 2012 at 13:2 Comment(0)
R
3

The file path is case sensitive in Linux. Don't forget to put in the right cases in your csv.

Like blakcaps mentioned, the value of image, small_image and thumbnail should always start with a slash. Say, if the path of your picture is "public_html/media/import/myfolder/Abc.jpg", it should look like this in your csv file.

   sku, image, small_image, thumbnail 
   sku_abc, /myfolder/Abc.jpg, /myfolder/Abc.jpg, /myfolder/Abc.jpg

And remember to give your web server read/write permission to "media" folder.

Riparian answered 1/8, 2012 at 10:4 Comment(10)
I have put all my images in media/import and in my csv /image-name.jpg. After I have imported I dont get any errors saying that the image can't be found so it seems like it is finding the image, but it seems that Magmi isn't improting the image form the media/import folder to the catalog/product/../.. etc folder.Library
edit "conf/ImageAttributeItemProcessor.conf" in your magmi folder and change IMG:sourcedir to something like "IMG:sourcedir = "/absolute/path/to/image/folder" and see if it works. In order to go to the bottom of this, you should consider go to the function copyImageFile() in "magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php" and see what is happening there. You should be able to follow the flow by adding a few "$this->log()" statements;Riparian
I have just tried that but dosn't seem to have made a differance, When i go into a product after import it has the box which says hover for preview but when I do this it then just dissapers, not sure if this will help you figure it out. It is just like the images and folders are't being made in the media/catalog/product folder. Can you help me out with where to put the logs in the file?Library
I doubt it actually found the image. You should find this line "$exists=($this->getImageFSPath($imgfile,true)!==false);" at around 518; add this line below it: $this->log( "###" . $exists?"image found":"image not found" . "at $imgfile" , "warning"); if image found this point there is no problem with your csv and it is something to do with folder and file creation. else it is about your csv and magmi setting.Riparian
I added that line and ran the import again, no erros showed on the import screen after importing unless it is ment to show the image somewhere else. Checked the product in magento and same as before no image is showing?Library
In the magmi config page above where the dropdown box is to select file import this line shows not sure if this has anything to do with it? Notice: Uninitialized string offset: 0 in /home/toysfoir/public_html/upload/magmi/inc/magmi_config.php on line 141Library
what is the version of your magmi install? You should be able to view the output in shell /home/toysfoir/public_html/upload/magmi/cli/magmi.cli.php" -mode=create -CSV:filename="csvfilename" -IMG:sourcedir="/path/to/imagefolder" BTW, /home/toysfoir/public_html/upload is your magento root folder right?Riparian
My Magmi is v0.7.17a and I dont have access to shell so wont be able to run that command. My Magento is installed in /public_html my magmi is installed in /public_html/upload is this maybe why there is this problem?Library
Hone Could I add something in the magmi config page under the Filesystem Path to magento directory: box? To say that magenot is installed in the directory above /upload?Library
open "magmi/conf/magmi.ini" and check basedir. change to "../../.." if it is a different value. Hopefully this is the issue.Riparian

© 2022 - 2025 — McMap. All rights reserved.