Macaroni Posted July 1, 2010 Share Posted July 1, 2010 My installation is not allowing product images to be uploaded in the Back Office.Problem Description.When in the "2. Images" form (view picture here), uploading an image results in a blank image being added, and instead of showing the form again with the image in it, it loads to a blank page (view picture here) which has the source code stopping at a point during the line beginning (view txt file of it here)Failed solution ideas.I tried uploading different images in case it was the images itself, including images which previously uploaded fine, and are still in the shop.I upgraded a while ago and there was no problem (i uploaded products last week on tuesday), and so i tried to upgrade again to see if that would fix the problem, but it persists. I've tried on multiple browsers and on multiple systems.Usefull info.After upgrading, prestashop reverted my logo (backoffice -> preferences -> appearance) and favico.I went to change the logo and favico back and the same problem occurred, with the html page being displayed stopping at the exact same point.I then tried just changing the favico, and that worked (loaded a .ico file), but changing the logo itself resulted in the same problem occuring (attempted with both .jpg and .png).There have been no recent changes other than the mentioned tests, a successful product upload on tuesday, and a successful sale that evening.Manual Override Ahoy!In the shop, the products with "blank" images seem to be trying to link to what the images should be called (40-90-home.jpg etc) but the images are not in the img folder. By manually resizing the images to the different sizes and using an ftp program, i can "cheat" the images in and it works, but it is very slow to do this, and beyond possible for my client once i'm gone.So...Has anyone got any ideas or encountered a similar problem? Link to comment Share on other sites More sharing options...
rocky Posted July 1, 2010 Share Posted July 1, 2010 You might be getting a "memory exhausted" error. You can go edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on' so you get an error message instead of a blank page to be sure. Make sure that the images you are uploading aren't higher resolution than necessary. If they are an appopriate size and you are still getting errors, try editing your php.ini file and increasing the memory_limit and max_execution_time. Link to comment Share on other sites More sharing options...
Macaroni Posted July 1, 2010 Author Share Posted July 1, 2010 Thank you for your reply rocky :]Aah, that error option is very handy.I recieved the following message: Warning: exec() has been disabled for security reasons in /home/rainbowt/public_html/presta/images.inc.php on line 82 I searched the forms and googles for similar situations; This led me to contacting my host, and they said the server had recent security upgrades, may could have caused this; They got me a custom.ini file and it's fixed :]Thanks again ^___^ Link to comment Share on other sites More sharing options...
WfcGooner Posted July 14, 2010 Share Posted July 14, 2010 Hi,I have exactly the same problem although following my host giving a custom php.ini file it's still not working. So a couple of hints might help me:1) Where did your host put the custom php.ini file?2) How can I check to see if the exec is on within the custom php.ini (i.e. how do I edit it)?Sorry for these basic-level questions! Link to comment Share on other sites More sharing options...
JG Estiot Posted March 19, 2011 Share Posted March 19, 2011 I have the same problem. It's a memory problem in the script during image manipulation (images.inc.php on line 155) and increasing the size of the memory does not seem to change anything. I host my own sites so I was able to increase the PHP memory limit to over 128M and even reboot the server to make sure that it sticks. No changes. What I would be interested in knowing is how to switch image resizing off on uploads. I don't mind the automatic creation of the thumbnail used to represent the upload on the order form, I just do not want the original customer image to be changed in anyway.Just a little parting comment to the dude who offers his paid services in this threat and who also has a line in his signature asking people to vote so that prestashop modules are free. Do I detect a little paradox here?CheersJG Link to comment Share on other sites More sharing options...
JG Estiot Posted March 19, 2011 Share Posted March 19, 2011 I have solved the issue and I hope this can help somebody else.Since I have my own server on the web, it was not difficult for me to increase the PHP limits for script execution time and memory limits. However, I kept getting the error saying that the 64M was not enough when I had raised it to 128M. I finally got the hint and found that the php.ini that was in the root folder of my prestashop was causing the problem. I edited it and changed the 64M to 128M and all is now working fine Link to comment Share on other sites More sharing options...
Recommended Posts