Announcement

#1 2012-12-20 13:10:25

Valerie
Guest

Why does my gallery upload broken pictures?

Hello,
when I upload pictures in an album my gallery uploas some pictures that I can see well and some ones that are broken.
The maximum of the MB of a file I can upload is 8MB and every picture I upload is about 1-2-3MB. And all my pictures have the weight of about 4000 pixels and the height of about 3000 pixels.
So, why does it upload broken files? I tried to delete all the broken files and re-upload them a lot of times but they are still broken. And sometimes it doesn't even upload some pictures! It says there are some errors..
When I copied the URL of a broken pictures and pasted it on a new tab it gives me this: "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12000 bytes) in mysite.com/admin/include/image.class.php on line 732"
What should I do?

 

#2 2012-12-20 14:38:28

flop25
Piwigo Team
2006-07-06
7037

Re: Why does my gallery upload broken pictures?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-08-09 15:09:25

Craig
Guest

Re: Why does my gallery upload broken pictures?

This worked for me:

1. From Admin, go to Plugins >> LocalFiles editor.
2. Click "local config" file
3.  Put the following at the bottom but just above ?>
      ini_set('memory_limit','128M');
4. Save file
5. Try uploading your files again.

Apparently many web hosts have small default memory limits for PHP scripts.  I tried a bunch of other techniques, including creating a php.ini file which included the following:
post_max_size = 500M
upload_max_filesize = 300M
memory_limit = 128M

But none of this worked on my host (Godaddy).

 

#4 2013-08-09 15:12:59

flop25
Piwigo Team
2006-07-06
7037

Re: Why does my gallery upload broken pictures?

Craig wrote:

This worked for me:

1. From Admin, go to Plugins >> LocalFiles editor.
2. Click "local config" file
3.  Put the following at the bottom but just above ?>
      ini_set('memory_limit','128M');
4. Save file
5. Try uploading your files again.

Apparently many web hosts have small default memory limits for PHP scripts.  I tried a bunch of other techniques, including creating a php.ini file which included the following:
post_max_size = 500M
upload_max_filesize = 300M
memory_limit = 128M

But none of this worked on my host (Godaddy).

thx for sharing
indeed this is very dependent of the host


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact