hakkatil Posted September 6, 2013 Share Posted September 6, 2013 (edited) Hi to all, I installed prestashop 1.5.5 and configured it without any problems. I can upload category images without any problem but when I try to upload product images it gives me the "An error occurred while copying the image" error. I tried all of the solutions I can find on the net but no luck. What I did so far; - Safe mode if off - img and p directory permissions change to 777 - replaced tiny_mc with a couple different versions - sys_get_temp_dir is available on the Linux server - mod_security disabled - I did some changes FileUploader.php according to I found information on the net, and I replaced this file with the new dev file - I did some changes ImageManager.php according to I found information on the net, and I I replaced this file with the new dev file - I tried all the options under images->image quality In the log file I get this after trying to upload an image; [Fri Sep 06 12:37:17 2013] [error] [client 11.11.11.11] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open 'httpdocs/shop/img/p/6/9/69.jpg' for writing: No such file or directory in httpdocs/shop/classes/ImageManager.php on line 410, referer: index.php?controller=AdminProducts&id_product=9&updateproduct&token=d94628801072c3739646da66202456cf Any ideas? Edited September 6, 2013 by hakkatil (see edit history) 1 Link to comment Share on other sites More sharing options...
antohabio Posted September 13, 2013 Share Posted September 13, 2013 Same problem Link to comment Share on other sites More sharing options...
NemoPS Posted September 13, 2013 Share Posted September 13, 2013 Can you check if this folder really exists? shop/img/p/6/9/69.jpg Link to comment Share on other sites More sharing options...
vekia Posted September 19, 2013 Share Posted September 19, 2013 This issue is (with error related to copying image) probably reported on forge and fixed, solution: Quote 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 Link to comment Share on other sites More sharing options...
franky91 Posted September 27, 2013 Share Posted September 27, 2013 This issue is (with error related to copying image) probably reported on forge and fixed, solution: Quote i've follow your suggestion. but it's still not solving my problem. please visit http://www.prestashop.com/forums/topic/277889-error-when-adding-pictures-to-product/ thanks before Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 so your issue is a bit different, i don't know what's going on there. you've got error reporting mode ON ? Link to comment Share on other sites More sharing options...
franky91 Posted September 27, 2013 Share Posted September 27, 2013 so your issue is a bit different, i don't know what's going on there. you've got error reporting mode ON ? please visit here. That's the issue that i met now.. thanks before Link to comment Share on other sites More sharing options...
energise Posted November 22, 2013 Share Posted November 22, 2013 (edited) I tried the solution in post #4 but it didn't work. There might be a couple of different reasons for it. I found that resizing images to a lower resolution worked using Windows and FF but my client who uses a Mac and Safari still had problems. However, when she switched to Opera, it worked just fine. Hope that helps someone! Edited November 22, 2013 by energise (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts