MrNickH Posted July 25, 2012 Share Posted July 25, 2012 Hello.. This is probably a mega nooby question (though I'm no Web Server Idiot) Im having a slight issue with catalouge images. The first 5 products allowed me to upload images to them fine. And indeed those same images are working perfectly. Now the uploader on the product page simply bugs out whenever I try and upload a new image for a product. I have checked in the database for the image ID, and then check in the file system for the image, and no such image ever exists. We have changed nothing and its just started doing this :- (see attachment) when we pick and image and click upload. It refreshes then..that. The worst thing is that the uploaded still created directories for the image, and still maps them as if they existed. But no image is uploaded and no thumbnails are generated. Thankyou for your time everyone Oh and Im not out of drive space on the server or anything like that. I find it wierd the page isnt even throwing an error. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 25, 2012 Share Posted July 25, 2012 Hi MrNickH, In your config/config.inc.php file, please set "display_errors" to "on," and then reload the page, try again and let us know if you receive any error messages. -Mike Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 Yes. Fatal error : Allowed memory size of 33554432 bytes exhausted (tried to allocate 6816 bytes) in /home/mangatok/public_html/prestashop/images.inc.php on line 238 Obviously this error includes die() Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 For reference the line it points to is $destImage = imagecreatetruecolor($destWidth, $destHeight); So presumably the function image create true colour is failing in some manor? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 25, 2012 Share Posted July 25, 2012 Yes. Fatal error : Allowed memory size of 33554432 bytes exhausted (tried to allocate 6816 bytes) in /home/mangatok/public_html/prestashop/images.inc.php on line 238 Obviously this error includes die() Please contact your hosting provider and show them this error. They should be able to increase this value for you so that your site can work properly. -Mike Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 (edited) Yeah.. about that.. I am also kinda the host. At least I have something to work with now. Edit :Why did I have a feeling it would involve me messing about in php.ini Edited July 25, 2012 by MrNickH (see edit history) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 25, 2012 Share Posted July 25, 2012 Yeah.. about that.. I am also kinda the host. At least I have something to work with now. In that case, the value you will want to increase is your memory_limit. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 Thanks a lot for your help Ill let you know how I get on. Unfortunately I feel like there maybe more to it than this. Why did it work before? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 25, 2012 Share Posted July 25, 2012 It will work up until you pass that memory limit. Do you know what it is currently set to? Go ahead and give that a try and let us know if it works any better for you. -Mike Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 It was set to 32MB. I cant see why It wouldnt be able to handle the images I was giving it now but not before. After all the memory is only a temporary storage. Anyways I set it to 128MB (a certain server management software made that a ton easier). And all seems to be okay so far. Thanks a lot :- though I think that perhaps some cleanup should occur, if that kind of thing happens.. or memory limit checking to make sure the page perhaps doesnt blank out like that. I was of course concerned it was stuck in a turing loop. And therefore would exhaust the limit regardless of what it was. Im glad to hear this is not the case. (fingers crossed) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 25, 2012 Share Posted July 25, 2012 I'm glad I could help! As you can see in our System Requirements, we suggest no less than 64MB for this very reason. I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
MrNickH Posted July 25, 2012 Author Share Posted July 25, 2012 Something new everyday. Thanks Link to comment Share on other sites More sharing options...
MrNickH Posted August 1, 2012 Author Share Posted August 1, 2012 Okay this is a new one. Some images do it regardless. I have turned off the memory limit for testing. Same error. This is highly frustrating Link to comment Share on other sites More sharing options...
Recommended Posts