Magmi Image Import

Sparetoolparts

Free Member
Oct 26, 2015
573
52
43
Hi Guys

I am trying to import images into my magento site using Magmi (image processor attribute)

the files are put into the correct media/import folder and everything seems to upload, but the images don't appear, when I log into the back of the site and look at a sku image section it is showing the broken image thumbnail. So I done a download/export of the file and see that the file path it is using is: e/n/image.jpg

the problem is when I browse my file structure I can't find the n folder only the e, so to me it looks like the n folder isn't getting created, I have got my host to make all folders inside media/ writable but still no luck any ideas?
 

ebafy

Free Member
Mar 9, 2016
32
1
Is this for a variation or simple product? are any of the images present when you actually login to your magento back to view the product image/s? have you tried to manually create the e/'n/ folder yourself? what are your magmi image processor settings? and what version of magmi are you running?
 
Upvote 0

Sparetoolparts

Free Member
Oct 26, 2015
573
52
43
Its Magmi v0.7.19_git

I have asked my host to change permission on the folder to 777 as advised on other forums but they are saying they can't stating:

We are technically able to change the permissions to 777 however the Apache server would not operate with files/directories with such high permissions. The highest permissions that can be set up are 755 and as I can see - they are already set up with this permissions.
 
Upvote 0

ebafy

Free Member
Mar 9, 2016
32
1
I've just checked this on a clients upload and we have the following permissions set

media/ 755
media/import 777


I would strongly advise going back to them with regards to your media/import permission and get this set to 777 as this should eradicate the problem (or at best rule this out).
 
Upvote 0

Sparetoolparts

Free Member
Oct 26, 2015
573
52
43
still no go with Magmi and the image import, but I now have noticed that magmi is putting the files in the wrong location they are currently being uploaded to:

protecteddirectory/magmi-git-0.7.19/media/catalog/product/etc

this is clearly two levels too deep in my file structure as of yet I haven't figured out how to sort it, but at least I now what is happening here are my file paths setting in magmi:

Filesystem Path to magento directory ../../
CSVs base directory ../../var/import
Image Search path /media/import

contents of csv file:
image small_image thumbnail media_gallery
ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0002.jpg

any ideas anyone?
 
Upvote 0

Sparetoolparts

Free Member
Oct 26, 2015
573
52
43
right guys this is not a fix but my work around, what Is after the images have been created inside the wrong directory, I simply download the directory to my machine, then upload it again into the media directory, this works a treat a little tedious but at least it works :)
 
Upvote 0
C

Crystal Web Designs

Hi Sparetoolparts,

Not sure if you still need help with this but a good way to solve the problem is to use full paths instead of relative ones. Eg avoid using ../ and also if you start a path with /media you maybe putting in the wrong path as a slash to start off with means to start at the root.

So depending on if you prefixed the path with another variable, a better path maybe
/home/username/public_html/var/media/import

But depends on your server setup. You should be able to find out your environment variables with PHP checking the $_SERVER array.
 
Upvote 0

goivvy

Free Member
  • Business Listing
    Nov 29, 2016
    108
    25
    www.goivvy.com
    still no go with Magmi and the image import, but I now have noticed that magmi is putting the files in the wrong location they are currently being uploaded to:

    protecteddirectory/magmi-git-0.7.19/media/catalog/product/etc

    this is clearly two levels too deep in my file structure as of yet I haven't figured out how to sort it, but at least I now what is happening here are my file paths setting in magmi:

    Filesystem Path to magento directory ../../
    CSVs base directory ../../var/import
    Image Search path /media/import

    contents of csv file:
    image small_image thumbnail media_gallery
    ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0001.jpg ENGINE CHAIN SAW CS 40EA_0002.jpg

    any ideas anyone?

    image search path should be without leading /:

    media/import

    csv base directory doesn't need ../..

    var/import

    that implies magmi.php is located at two level deep from magentoroot (where index.php file is):

    magentoroot/magmifolder/web/magmi.php
    magentoroot/media/import (your image files)
    magentoroot/var/import (your magmi csv files)

    if the path your magmi.php is:

    magentoroot/protecteddirectory/magmi-git-0.7.19/web/magmi.php

    then change Filesystem Path to magento directory to ../../..

    hope it helps
     
    Last edited:
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice