Manuel Caro Posted August 30, 2013 Share Posted August 30, 2013 Hello I´m trying to import my products from a CSV file in a new prestashop installation (version 1.5.5.0), but I get this error in all the products: "Error copying image". Sorry for my english. Link to comment Share on other sites More sharing options...
RCP90 Posted August 30, 2013 Share Posted August 30, 2013 Do you have a sample of your CSV. Link to comment Share on other sites More sharing options...
Manuel Caro Posted August 30, 2013 Author Share Posted August 30, 2013 I´ve tried with this basic example to test: "1";"Alfajores de almendra";"http://www.mantecadosypolvorones.com/alfajores-almendra.jpg"'>http://www.mantecadosypolvorones.com/alfajores-almendra.jpg" "2";"Bombon de fruta";"http://www.mantecadosypolvorones.com/bombon-fruta.jpg"'>http://www.mantecadosypolvorones.com/bombon-fruta.jpg" also I´ve tried with images url without quotes: "1";"Alfajores de almendra";http://www.mantecadosypolvorones.com/alfajores-almendra.jpg "2";"Bombon de fruta";http://www.mantecadosypolvorones.com/bombon-fruta.jpg Link to comment Share on other sites More sharing options...
RCP90 Posted August 30, 2013 Share Posted August 30, 2013 (edited) I have my images in a sub folder in the root directory, not directly in the root directory as your link would suggest. I am also unsure of the prefix text you have at the beginning. The image url should look only like this and should be the absolute url, and not have any other prefixes or quotes. Example http:// www.mydomain. com/images/myimage.jpg in the CSV import section it will allow to download a sample CSV with the fields filled out. Edited August 30, 2013 by RCP90 (see edit history) Link to comment Share on other sites More sharing options...
Manuel Caro Posted August 30, 2013 Author Share Posted August 30, 2013 The "prefix" is the id field of the product. The same CSV file works perfectly in the 1.5.4.1 version. It can be a bug of 1.5.5.0 version. Sorry for my english. Link to comment Share on other sites More sharing options...
RCP90 Posted August 30, 2013 Share Posted August 30, 2013 (edited) Oh I see, sorry I misunderstood.That is 3 columns of your CSV, I thought that you were putting all of that information in the image URL column of your CSV. Edited August 30, 2013 by RCP90 (see edit history) Link to comment Share on other sites More sharing options...
nartesania Posted August 31, 2013 Share Posted August 31, 2013 Hi, I have same problem (only when I tried with csv, if I do it manually one by one it works correct) I have last version updated yesterday: 1.5.5.0.With wampserver 2.2 in a Windows preproduction server: I checked in last hours: -File permissions into the /imp folders, in special /img/tmp, /img/c and /img/p directories. -Permissions and forums for extra details. These are two examples of my categories and products csv lines (these lines work perfectly except for the impages issue): ID;Activo;Nombre;Categoria madre;Categoria madre buena;Categoria raiz;Descripcion;Meta-tðtulo;Meta-palabras clave;Meta-descripci«n;URL reescrita;imagen URL;ID/Nombre de la tienda 3;1;BISUTERIA;0;;1;BISUTERIA;;;;C:\Users\ARTESANA\Pictures\stock\1.jpg;C:\Users\ARTESANA\Pictures\stock\1.jpg; 111;1;ABALORIOS;1;BISUTERIA;0;ABALORIOS;;;;C:\Users\ARTESANA\Pictures\stock\111.jpg;C:\Users\ARTESANA\Pictures\stock\1.jpg; ID;Activo;Nombre;Categoras;Precio sin IVA o con IVA;id regla de impuestos;Precio mayorista;En rebaja (0/1);Importe del descuento;Porcentaje del descuento;Descuento desde (aaaa-mm-dd);Descuento hasta (aaaa-mm-dd);Referencia nõ;N› de referencia proveedor;Proveedor;Fabricante;EAN13;UPC;Ecotasa;Peso;Cantidad;Descripci½n breve;Descripci½n;Etiquetas (x,y,z...);Meta-ttulo;Meta-palabras clave;Meta-descripci½n;URL reescrita;Texto cuando haya disponible;Texto si se permiten pedidos en espera;Disponible al orden (0 = No, 1 = Si);Fecha en la que se aÏadieron productos;Mostrar Precio (0 = No, 1 = Si);URL's de las imÿgenes (x,y,z...);Elimine las imÿgenes existentes (0 = no, 1 = si);Caracterstica (Nombre:Valor:Posici½n);Solo disponible por Internet (0 = No, 1 = Si);Condition;ID / Nombre de la tienda 1111101;1;Cristal craquelado blanco 18mm;CRISTAL CHINO;2,8;;0,83;0;;;;;1111101;;;;;;;;3;Cristal craquelado blanco 18mm;Cristal craquelado blanco 18mm;;;;;C:\Users\ARTESANA\Pictures\stock\1111101.jpg;Available;;;;1;C:\Users\ARTESANA\Pictures\stock\1111101.jpg;0;;0;; 1111102;1;Ojo turco 12mm azul;CRISTAL CHINO;1,8;;0,48;0;;;;;1111102;;;;;;;;3;Ojo turco 12mm azul;Ojo turco 12mm azul;;;;;C:\Users\ARTESANA\Pictures\stock\1111102.jpg;Available;;;;1;C:\Users\ARTESANA\Pictures\stock\1111102.jpg;0;;0;; Thanks in advance. Regards, Nair Link to comment Share on other sites More sharing options...
tantan199 Posted September 4, 2013 Share Posted September 4, 2013 Hi, Classes/Tools.php line 1408 change "return @copy($source, $destination, $stream_context);" to "return @copy($source, $destination);" 2 Link to comment Share on other sites More sharing options...
iprestashop Posted September 6, 2013 Share Posted September 6, 2013 Hi, Classes/Tools.php line 1408 change "return @copy($source, $destination, $stream_context);" to "return @copy($source, $destination);" i'm really appreciate of you. As you said.i just do what you suggested,this issue has been solved. Link to comment Share on other sites More sharing options...
dhurley Posted September 9, 2013 Share Posted September 9, 2013 tantan's solution fixed it for me. So is this a bug? Should this be reported? This is a change that I will totally forget, and will be overwritten by the next update. Link to comment Share on other sites More sharing options...
nartesania Posted September 10, 2013 Share Posted September 10, 2013 It works! Thanks tantan199. Link to comment Share on other sites More sharing options...
webseo34 Posted September 14, 2013 Share Posted September 14, 2013 Hi, Classes/Tools.php line 1408 change "return @copy($source, $destination, $stream_context);" to "return @copy($source, $destination);" Ca marche, (Prestashop 1.5.5.0)! Thx tantan199 Link to comment Share on other sites More sharing options...
Karabisht Posted January 11, 2014 Share Posted January 11, 2014 (edited) Thanks for this solution. Regards Edited January 11, 2014 by katallozi (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts