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?
Offline
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).
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
Offline