csv-Import Artikelbilder - Fehler

Liebes Forum :slight_smile: :slight_smile: ich versuche gerade den Import von Artikelbildern über csv-Dateien. Egal, was ich mache, beim Import kommt immer eine derartige Meldung (etwas länger): Unable to guess the mime type as no guessers are available (Did you enable the php\_fileinfo extension?) Stack Trace: #0 F:\xampp\htdocs\testshop3\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\File\File.php(87): Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser-\>guess('F:\\xampp\\htdocs...') #1 F:\xampp\htdocs\testshop3\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\File\File.php(64): Symfony\Component\HttpFoundation\File\File-\>getMimeType() #2 F:\xampp\htdocs\testshop3\engine\Shopware\Models\Media\Media.php(1006): Symfony\Component\HttpFoundation\File\File-\>guessExtension() #3 F:\xampp\htdocs\testshop3\engine\Shopware\Models\Media\Media.php(462): Shopware\Models\Media\Media-\>setFileInfo() #4 F:\xampp\htdocs\testshop3\engine\Shopware\Controllers\Backend\ImportExport.php(1670): Shopware\Models\Media\Media-\>setFile(Object(Symfony\Component\HttpFoundation\File\File)) #5 F:\xampp\htdocs\testshop3\engine\Shopware\Controllers\Backend\ImportExport.php(1557): Shopware\_Controllers\_Backend\_ImportExport-\>importImages('F:\\xampp\\htdocs...') #6 F:\xampp\htdocs\testshop3\engine\Library\Enlight\Controller\Action.php(159): Shopware\_Controllers\_Backend\_ImportExport-\>importAction() #7 F:\xampp\htdocs\testshop3\engine\Library\Enlight\Controller\Dispatcher\Default.php(528): Enlight\_Controller\_Action-\>dispatch('importAction') #8 F:\xampp\htdocs\testshop3\engine\Library\Enlight\Controller\Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #9 F:\xampp\htdocs\testshop3\engine\Shopware\Kernel.php(141): Enlight\_Controller\_Front-\>dispatch() #10 F:\xampp\htdocs\testshop3\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpCache\HttpCache.php(472): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 F:\xampp\htdocs\testshop3\engine\Shopware\Components\HttpCache\AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #12 F:\xampp\htdocs\testshop3\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpCache\HttpCache.php(243): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #13 F:\xampp\htdocs\testshop3\engine\Shopware\Components\HttpCache\AppCache.php(102): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #14 F:\xampp\htdocs\testshop3\shopware.php(109): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #15 {main} Kann die jemand deuten ? Woran kann das liegen?

Du führst den Import lokal auf deinem Rechner aus? Häng doch mal einen Auszug aus deiner CSV ins Forum…

Hallo, ja, das ist auf einem lokalen System - zum Test. Hier ein Beispiel einer csv-Datei mit einem Bild: ordernumber;image;main;description;position;width;height;relations SW10002;http://localhost/testshop3/media/image/bild1.jpg;1;;1;;;

ich möchte noch einmal nachfragen, ob jemand dafür eine Lösung weiß, sonst ist für mich der ganze Import leider nicht machbar.

Guten Morgen, die Fehlermeldung ist uns im Support bisher noch nicht begegnet, aber ich gehe aufgrund der Fehlermeldung von einer fehlenden Systemvoraussetzung aus, da die Meldung ja darauf hindeutet, dass das Uploadscript den Filetyp nicht bestimmen kann. Hier solltest du einmal überprüfen (ggf. in der PHP-Info) ob die Erweiterung php_fileinfo bei dir aktiv ist. Wenn du nach der Fehlermeldung “Unable to guess the mime type as no guessers are available” googelst findest du auch viele Hinwiese auf php_fileinfo. Grüße Moritz

1 „Gefällt mir“

ja, daran lag es. Nur merkwürdig, dass das nicht automatisch so eingestellt ist bzw. dass es sonst noch nicht vorgekommen ist. Ich weiß leider nicht wie man einen Beitrag als erledigt kennzeichnet. Vielen Dank