horshamartshop Posted May 20, 2015 Share Posted May 20, 2015 Hi,I am trying to upload image via CSV, the image is based here and is accessible. http://www.artdiscount2you.co.uk/15-large_default/12x12.jpgBut whenever i copy that URL into all the other url fields in the csv i get error image cannot be copied error.Any ideas? Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 Hard to say. I would debug the AdminImportController class step-by-step. Link to comment Share on other sites More sharing options...
horshamartshop Posted May 20, 2015 Author Share Posted May 20, 2015 Thanks for the advice, I have no idea how to do that or what to look for.Cheers Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 Ask for help https://www.prestashop.com/forums/forum/235-job-offers/. Some issues need to be fixed right at your shop. Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 Hi Your image url is: http://www.artdiscount2you.co.uk/15-large_default/12x12.jpg Do you have a folder called "15-large-default". This almost looks like something created by PS. If this folder exists, call it something else and change all the URL's in the CSV to the new folder name. Then it should work. Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 Hi,I noticed that so copied the image to the following folder http://www.artdiscount2you.co.uk/img/p/1/5/15.jpg Unfortunately i still get the same error message, but if i upload the image in the backend it works fine. But that just isnt practical for thousands of products i intend to add.Thanks Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 Hi http://www.artdiscount2you.co.uk/img/p/1/5/15.jpg This folder is where PS creates images, so you may be getting an error based on the fact that the folder may already exist and the import is trying to recreate it. Create a separate folder under the main artdiscount2you.co.uk folder. Call it testimages. Place your images in this folder and point to this folder in the CSV file. Try this. Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 That didnt work... either Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 Can you show us some records from the CSV file and what version of PS are you using? Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 (edited) Chunky2.zip 1.6.0.9 Edited May 21, 2015 by horshamartshop (see edit history) Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 I think there is something wrong with this Combinations file. Have you tried with one record in the CSV. When you use "Import CSV" option in BO, have you checked the columns match with your file correctly, especially the image column? Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 Hi,What do you think is wrong with it? it imports all data except the image file. What should the header be? I copied that from a template import file.Thanks Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 (edited) Here's an example of a record that does work: 2|Color:color:1|Orange:1||REF123456789||||||10|1||1|1|http://localhost/test/import/images/251365_Images.jpg|0| My file is pipe ( | ) separated, not comma, but you can define this in the BO "CSV Import". Input your data to this format and it should work. Edited May 21, 2015 by prestatent (see edit history) Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 Ok so i hosted the file on a friend godaddy site and the import worked. So its obviously a permissions/module issue with the webhost. Any ideas what issues/permissions could be causing this so i can be better equipped to point them in the right direction?Thanks Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 Permissions should be 755 Link to comment Share on other sites More sharing options...
horshamartshop Posted May 21, 2015 Author Share Posted May 21, 2015 Hi,Yes permissions are already 755.Its very peculiar issue i must say. Link to comment Share on other sites More sharing options...
prestatent Posted May 21, 2015 Share Posted May 21, 2015 (edited) Can you manually FTP a file to this folder? Are permissions 755 on your upload folder and the http://www.artdiscount2you.co.uk/img/ folders? Edited May 21, 2015 by prestatent (see edit history) Link to comment Share on other sites More sharing options...
irrelevant Posted May 23, 2015 Share Posted May 23, 2015 If you already have the images on your own webserver. rather than using http, you can refer to them by local path name. e.g. /var/www/ps/testimages/15.jpg - obviously the exact path will depend on your hosting setup. This is also likely to be quicker to import. 1 Link to comment Share on other sites More sharing options...
Recommended Posts