Nmedios Posted August 4, 2009 Share Posted August 4, 2009 Hi, I've installed the new Prestashop 1.2 on local and on my server, and every time I try to upload an image for a product I get this error message: "an error occurred while copying image" and I can't find a solution for this problem. Uploading categories images, flags or even the store logo doesn't show any error, so it's something that only happens with product images, even if I change the image size or I use different image types (jpg, png).Thanks for your help. Link to comment Share on other sites More sharing options...
TropischBruin Posted August 4, 2009 Share Posted August 4, 2009 Are the folder-rights OK?What is your server-log saying? Link to comment Share on other sites More sharing options...
Nmedios Posted August 4, 2009 Author Share Posted August 4, 2009 Hi the log says:PHP Notice: Array to string conversion in D:\wamp\www\compol\images.inc.php on line 117PHP Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory in D:\wamp\www\compol\images.inc.php on line 117Thanks Link to comment Share on other sites More sharing options...
TropischBruin Posted August 4, 2009 Share Posted August 4, 2009 What is on that line: 117? Link to comment Share on other sites More sharing options...
Nmedios Posted August 4, 2009 Author Share Posted August 4, 2009 Hi, that line is: list($sourceWidth, $sourceHeight, $type, $attr) = getimagesize($sourceFile);but that is a file that I didn't change at all, is the one that comes by default with the prestashop 1.2...Thx Link to comment Share on other sites More sharing options...
TropischBruin Posted August 4, 2009 Share Posted August 4, 2009 Is this a local server where you are testing on or a webserver? Link to comment Share on other sites More sharing options...
Nmedios Posted August 4, 2009 Author Share Posted August 4, 2009 Hi, the image upload error appears both in local and webserver. Link to comment Share on other sites More sharing options...
TropischBruin Posted August 4, 2009 Share Posted August 4, 2009 Have you used the same sourcefiles for both installations?If so, download a fresh install and copy this file to see if it solves the problem.Did you change any files of your shop? Link to comment Share on other sites More sharing options...
Marine-fr Posted August 11, 2009 Share Posted August 11, 2009 I have the same problem only update the product.I can uploaded the same image for category (I have no problem in category)thanks Marine Link to comment Share on other sites More sharing options...
Marine-fr Posted August 11, 2009 Share Posted August 11, 2009 Perhaps the detail of The error will help :Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory in /home/nomsite/www/images.inc.php on line 1171 erreurthe print_r($sourceFile) just before line 117 :Array ( [name] => Alacampagne1.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpjrbAEn [error] => 0 => 115221 ) Marine Link to comment Share on other sites More sharing options...
Marine-fr Posted August 11, 2009 Share Posted August 11, 2009 the problem is solved.It was the update of tinymce.Maryse Link to comment Share on other sites More sharing options...
chustaweb Posted August 24, 2009 Share Posted August 24, 2009 Hi Maryse,Could you explain how to solve this problem exactly?MANY THANKS !!! Link to comment Share on other sites More sharing options...
huhamanu Posted September 21, 2009 Share Posted September 21, 2009 No news? I have the same problem... Link to comment Share on other sites More sharing options...
Recommended Posts