coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: RolfHeinen on July 30, 2007, 02:47:14 PM

Title: Fatal error: Allowed memory size of 16777216 bytes exhausted with 1200x1600 Reso
Post by: RolfHeinen on July 30, 2007, 02:47:14 PM
Hello,
I've read the postings about all the problem's with uploading pictures. But nothing could help. I've read, that a picture with 1200x1600 (high resolution) needs 5,49MB. In my php.ini the memory_limit is 16M. I've resized the picture to 818 x 1125  Pixels; and i can add it to the album. But what is the reason, while the original picture caused the error??
Here the Debug-Iinfo (i hope it helps):

USER:
------------------
Array
(
    [ID] => 72ce54aebd7b5134e6059c02dd6ea839
    [am] => 1
    [lang] => german
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
           
Title: Re: Fatal error: Allowed memory size of 16777216 bytes exhausted with 1200x1600
Post by: Joachim Müller on July 30, 2007, 07:53:40 PM
Quote from: RolfHeinen on July 30, 2007, 02:47:14 PM
Here the Debug-Iinfo (i hope it helps):
No, it doesn't help. Nobody has asked for it. Do exactly as suggested in the upload troubleshooting section of the docs (http://upload%20troubleshooting%20section%20of%20the%20docs). Read the sticky thread "Trouble-shooting the upload process -> Fatal error: Allowed memory size of X bytes exhausted (http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690)" extra-thoroughly as well.
Title: Re: Fatal error: Allowed memory size of 16777216 bytes exhausted with 1200x1600 Reso
Post by: RolfHeinen on July 31, 2007, 11:32:50 AM
Sorry for giving you to much information without a request (Debug-Info)!
I have read the "Trouble-shooting the upload process -> Fatal error: Allowed memory size of X bytes exhausted" thread before posting that. The permissons are ok (i added a picture successfully in the same album), the memory limit is 16M, so i assumed it must be possible to add a picture with resolution 1600x1200. I can't edit the php.ini, so the "tricks" to resize the images before uploading will work. But i don't want the users of the album to resize their images (beacuse most of them don't know how to do that). And i really want to know the reason why i doesn't work.
Title: Re: Fatal error: Allowed memory size of 16777216 bytes exhausted with 1200x1600
Post by: Joachim Müller on July 31, 2007, 06:58:17 PM
What other reason do you want to hear, except that you're out of memory?
Restrict the file size users can upload to something that will definitely work if you can't teach your users to resize on their client. Not sure what else to say.

Marking thread as "solved".