Aalaa Posted August 28, 2013 Share Posted August 28, 2013 I have a problem with product customisation; when someone tries to upload a picture and clicks save, you are transferred to a blank page. Anyone had a similar problem and found a solution? This is one of the custom product pages: http://maccessory.or...ustom-skin.html Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 Hi! Can you first try turning on errors, as described in my signature? Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 Hey! Done. This is the error I get when trying to upload: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 28000 bytes) in /home3/aalaa/public_html/classes/ImageManager.php on line 174 Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 You need to increase your php memory limit then just change memory_limit in your php.ini file is it 256mb now? Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 I don't have access to a php.ini file And yes it's 256mb. Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 I see. Try adding this in ImageManger then, before that line you mentioned: @ini_set('memory_limit', '512M'); Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 Still not working Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 What's the average file size you try to upload? Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 I tried uploading large and small files. The smallest was 10kb and it still didn't work. Largest was 500kb. Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 hmmm. Try ini_set('memory_limit', '1024M'); But this is a lot, it should not be required. It looks like the GD library is sucking up tons of resources for some reason. Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 I changed that, it didn't have much of an effect. However I realised that when I upload a png image it redirects to a blank page, whereas when I upload a gif, or jpg it works, but when you save it you get a blank image as shown in this screenshot: http://i40.tinypic.com/sqquf7.png Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 I see! Can you check that the GD library is correctly installed and compiled on your server? Link to comment Share on other sites More sharing options...
Aalaa Posted August 28, 2013 Author Share Posted August 28, 2013 It's correctly installed. There was another similar poster who had the same problem as me in the end she just got this module. The post is pretty old though, I think I'll just get it and hope for the best Thank you for your help! I appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts