franky91 Posted September 27, 2013 Share Posted September 27, 2013 (edited) Hi, i'm a newbie on prestashop. Please lend me your helps and guidance to solve this issue.. I just freshly installed prestashop 1.5.5.0 and i got problem when i want to add pictures to my products. it says : "An error occurred while copying the image" , ( here is the screenshot ) i have also tried to upload from the other place, and it's run smoothly, i only got this problem when adding images on product. For your information, i've also tried to installed prestashop 1.5.5.0 on my localhost but it's run perfectly and there is no issue as stated above. Anybody can help me ? I am really appreciate your help ------------------------------------------------------------------------------------------------------------------------------------ Regards, franky Edited September 28, 2013 by franky91 (see edit history) 1 Link to comment Share on other sites More sharing options...
joan-varg Posted September 27, 2013 Share Posted September 27, 2013 Hi, same problem when adding image to product, but it works when adding image to category !! 2 days i'm looking for an issue, no way. thanks for help Link to comment Share on other sites More sharing options...
franky91 Posted September 27, 2013 Author Share Posted September 27, 2013 hi, joan.. if the image that you upload have been uploaded to "img/p" ?? i was try to upload an jpg file and i got none of them uploaded, but i notice that the image that i upload's is moved to "img/tmp" wasn't in jpg type. i really got confused of this issue... i need to solve it as soon as posible Link to comment Share on other sites More sharing options...
NemoPS Posted September 27, 2013 Share Posted September 27, 2013 Hi, can you try turning errors ON as suggested in my signature, and see if you get any feedback? Also, before uploading the image, open the developer console, in chrome, safari or firefox if possible, then access the 'network' tab, or 'console' on firebug, and upload the image. If it fails, you should be able to learn more about the error there! Link to comment Share on other sites More sharing options...
franky91 Posted September 28, 2013 Author Share Posted September 28, 2013 Hi, can you try turning errors ON as suggested in my signature, and see if you get any feedback? Also, before uploading the image, open the developer console, in chrome, safari or firefox if possible, then access the 'network' tab, or 'console' on firebug, and upload the image. If it fails, you should be able to learn more about the error there! hi, nemo1. Thansk for your respond. I have do as what you tell me to do. I've set PS_MODE_DEV to true. But on the console i got a blank page, so i don't know what's going on. on network tab all the status are also shown 200 OK i will update the screen shot on my post Link to comment Share on other sites More sharing options...
NemoPS Posted September 28, 2013 Share Posted September 28, 2013 I see, there might be an issue with the resizing function, as this is what triggers the message: elseif (!ImageManager::resize($tmpName, $new_path.'.'.$image->image_format)) $this->errors[] = Tools::displayError('An error occurred while copying the image.'); Can you make sure all your folders are at least set to 755 permission rights? Link to comment Share on other sites More sharing options...
franky91 Posted September 28, 2013 Author Share Posted September 28, 2013 I see, there might be an issue with the resizing function, as this is what triggers the message: elseif (!ImageManager::resize($tmpName, $new_path.'.'.$image->image_format)) $this->errors[] = Tools::displayError('An error occurred while copying the image.'); Can you make sure all your folders are at least set to 755 permission rights? yea... folder permission has been set to 777 recurrsive i just realized that now, a also can't upload image to category i really don't get it what's going wrong Link to comment Share on other sites More sharing options...
NemoPS Posted September 28, 2013 Share Posted September 28, 2013 Is there a chance you can try a simple php upload script in another folder of the same site? It might not be related to prestashop Link to comment Share on other sites More sharing options...
franky91 Posted September 29, 2013 Author Share Posted September 29, 2013 i've tried to upload an image with smaller resolution, and it's works properly now... thanks alot, it's my fault not checking it before. by the way, how to configure allowed resolution for product's images ? Link to comment Share on other sites More sharing options...
energise Posted November 22, 2013 Share Posted November 22, 2013 (edited) 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