flapdoodle Posted October 16, 2014 Share Posted October 16, 2014 Running version 1.6 I am getting an error when using CSV import. It says 'Error copying image' I have checked file permissions on the server, no issues there. I have checked the umage url, they work. I have tried multiple sources. I have searched the forums and found fixes for older versions, but those seem to have been fixed in 1.6. Any ideas? Thanks in advance! 1 Link to comment Share on other sites More sharing options...
NemoPS Posted October 17, 2014 Share Posted October 17, 2014 Are image sources on the same server as the site? if not, can you try with one? Link to comment Share on other sites More sharing options...
prestamax Posted October 17, 2014 Share Posted October 17, 2014 (edited) How do your reference your images in the csv file (image path)? Edited October 17, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
PhilCorleone Posted October 17, 2014 Share Posted October 17, 2014 img/p/image.png ? Link to comment Share on other sites More sharing options...
flapdoodle Posted October 17, 2014 Author Share Posted October 17, 2014 They are on the same site, however I am using the full address. ie. http://www.mydomain.com/images/image.jpg The image links work if I put them in a browser. Is this a problem? should i be pointing it to local files? Link to comment Share on other sites More sharing options...
prestamax Posted October 17, 2014 Share Posted October 17, 2014 Actually there shouldn't be a problem if using the full address. Link to comment Share on other sites More sharing options...
flapdoodle Posted October 17, 2014 Author Share Posted October 17, 2014 That is what I figured. So anyone have any ideas why I am still getting "error copying image" ? Link to comment Share on other sites More sharing options...
prestamax Posted October 18, 2014 Share Posted October 18, 2014 What about image size? How big are your images? Could it be that they are too big for the server to handle? Link to comment Share on other sites More sharing options...
NemoPS Posted October 18, 2014 Share Posted October 18, 2014 It might be failing here if (!ImageManager::checkImageMemoryLimit($url)) return false; just as a test (try with 1 line) comment that out from adminimportcontroller, line 1019 (1.6.0.9) Link to comment Share on other sites More sharing options...
flapdoodle Posted October 20, 2014 Author Share Posted October 20, 2014 What about image size? How big are your images? Could it be that they are too big for the server to handle? The images are on the server already, and if I manually add them one by one, they work. Link to comment Share on other sites More sharing options...
prestamax Posted October 21, 2014 Share Posted October 21, 2014 (edited) The images are on the server already, and if I manually add them one by one, they work. They may work but the question is how big are your images? If your uploading a csv file your server has to move all images from the place where you have uploaded them to the img folder for the products. If the file size of your images is too big and your server has to move and resize let's say hundred or even more images the memory limit of your server may be not sufficient. You can do the test as Nemo suggested. Go to your prestashop folder controller and look for AdminImportController.php and go there to line 1019 if (!ImageManager::checkImageMemoryLimit($url)) return false; and change it to if (!ImageManager::checkImageMemoryLimit($url)) // return false; Then you should see if your memory limit is sufficient or not. How big (file size) is one photo and how many items are you tryin to upload? Edited October 21, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
flapdoodle Posted October 21, 2014 Author Share Posted October 21, 2014 Currently I only have one line in the CSV file for testing purposes, all images I have tried have been 100kb or less. Link to comment Share on other sites More sharing options...
prestamax Posted October 21, 2014 Share Posted October 21, 2014 How about trying a relative path ./../images/your-image.jpg (if your images folder is in your root directory) ... just for testing purposes ... 1 Link to comment Share on other sites More sharing options...
flapdoodle Posted October 21, 2014 Author Share Posted October 21, 2014 Local path worked. "../../images/image.jpg" copied over just fine. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts