Announcement

#1 2010-07-16 09:46:23

samb
Guest

Error uploading large files

I get this error Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3200 bytes) in /home/sambend1/public_html/piwigo/admin/include/functions_upload.inc.php on line 254

Doesn't make sense. If 67 mb of memory is allowed and it uses 3 and it becomes exhausted?

What should I do to fix this?

 

#2 2010-07-16 09:50:16

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: Error uploading large files

Hi samb,

samb wrote:

Doesn't make sense. If 67 mb of memory is allowed and it uses 3 and it becomes exhausted?

No, the PHP message is unclear. It means that PHP tries to allocate an additional block of 3002 bytes and this would go beyond the limit.

samb wrote:

What should I do to fix this?

What is the size of your file?
How do you upload it? (there are several ways to add photos)


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#3 2010-07-16 10:01:30

samb
Guest

Re: Error uploading large files

3 megabytes
I tried ftp sync and normal upload and new/advanced uploader

 

#4 2010-07-16 10:05:55

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: Error uploading large files

It seems that you php.ini is set on 64M for the memory_limit setting. And adding a 3MB photo (which is not a "large" file by the way) should not be a problem at all.

The FTP sync takes even less memory.

Can you try pLoader to add photos? (ie Administration > Photos > Add > Piwigo Uploader)


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#5 2010-07-16 10:32:51

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: Error uploading large files

the fileSIZE of a jpg is nothing from interest, the dimension widthxhigh of the picture is the important limit.
on my account i also have a memorylimit of 65mb, thats no problem with a 5 MB File from my Eos 20D (a noisy Original from a 8MP Camera), but a clean file from my 5D (12MP' Kamera) with a fileSIZE only 2Megabyte i can't convert, not enough memory.
JPG is Compressed, the reality in needing servermemory looks more like uncompressed TIF

Offline

 

#6 2010-07-16 10:40:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: Error uploading large files

mol wrote:

the fileSIZE of a jpg is nothing from interest, the dimension widthxhigh of the picture is the important limit.

You're right. samb what are the dimensions of your photo?

pLoader doesn't do resize on server, so you won't have this problem (but FTP+Synchronization does do resize so it should not have produced the error)


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact