vitox345 Posted September 12, 2013 Share Posted September 12, 2013 Prestashop 1.5.5 fresh installationWhen I import the images of the products or combinations I always get this error "Error copying image" . Of course the picture is not copied. This problem did not exist in version 1.5.4.1.Some help? Link to comment Share on other sites More sharing options...
vivek.sakhilati Posted September 19, 2013 Share Posted September 19, 2013 forge solution: Open - Classes/Tools.php Change line number 1408 From: "return @copy($source, $destination, $stream_context);" to: "return @copy($source, $destination);" It should work, it is a small bug in prestashop 1.5.5 Regards Vivek Sakhilati Link to comment Share on other sites More sharing options...
globosoftware.net Posted September 19, 2013 Share Posted September 19, 2013 forge solution: Open - Classes/Tools.php Change line number 1408 From: "return @copy($source, $destination, $stream_context);" to: "return @copy($source, $destination);" It should work, it is a small bug in prestashop 1.5.5 Regards Vivek Sakhilati Solved . Thank Vivek Link to comment Share on other sites More sharing options...
MToscan Posted September 19, 2013 Share Posted September 19, 2013 Yeah that was it, thank you!!! Link to comment Share on other sites More sharing options...
vitox345 Posted September 19, 2013 Author Share Posted September 19, 2013 forge solution: Open - Classes/Tools.php Change line number 1408 From: "return @copy($source, $destination, $stream_context);" to: "return @copy($source, $destination);" It should work, it is a small bug in prestashop 1.5.5 Regards Vivek Sakhilati Thank You Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 19, 2013 Share Posted September 19, 2013 It has been updated on github here, https://github.com/PrestaShop/PrestaShop/blob/development/classes/Tools.php However, I believe in this file it is line 1412 correct? 1 Link to comment Share on other sites More sharing options...
anthonylkm0613 Posted October 15, 2013 Share Posted October 15, 2013 Dear All, i tried this solution but still have problems. on of my files is in http://www.bestonlineperfume.com/img/p/Gucci-Flora-by-Gucci-Eau-de-Parfum-50ml.png but it still keep telling below: Error copying image: http://www.bestonlineperfume.com/img/p/Gucci-Flora-by-Gucci-Eau-de-Parfum-50ml.png i have changed the tools.php but no different from before. could i know why? thx Regards, Anthony Link to comment Share on other sites More sharing options...
anthonylkm0613 Posted October 26, 2013 Share Posted October 26, 2013 finally i found that the path on the csv should be "../img/upload/afdfd.jpg".. 1 Link to comment Share on other sites More sharing options...
MarkoP Posted February 24, 2014 Share Posted February 24, 2014 thanks, anthonylkm0613 Link to comment Share on other sites More sharing options...
oracle178 Posted April 30, 2014 Share Posted April 30, 2014 Hi all, I had this problem too, and I think that the solution is very simple. Check the image dimensions, if the width is larger than 5000px, reduce to no more than 5000px, and then try to upload the image again. It helped me, maybe someone will help too. Sorry for my english, hopefully understand what I wrote Link to comment Share on other sites More sharing options...
tsprings Posted June 26, 2014 Share Posted June 26, 2014 finally i found that the path on the csv should be "../img/upload/afdfd.jpg".. This worked for me in 1.6. (Relative path rather than full url.) Link to comment Share on other sites More sharing options...
kousi Posted October 13, 2016 Share Posted October 13, 2016 for me its not working,when i import the product the image i snot added in 1.6.1.7version ..its showing Error copying image ..please justify Link to comment Share on other sites More sharing options...
gps000 Posted October 20, 2016 Share Posted October 20, 2016 Use absolute url "urltoimage" and disable mod security <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> Link to comment Share on other sites More sharing options...
KenYe Posted December 20, 2016 Share Posted December 20, 2016 Hmm, I tried all of above suggestions but none works for me. Everything else goes in fine except the images. 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts