Image Memory Limit
Permalink
Hello,
I've been having what seems like a common problem uploading high quality photos. If the photos are over approximately 3MB in size I'm getting a memory limit error and the image isn't uploading.
Now, I've seen many ideas on here to solve this issue, I've tried a few and they've sprung up 500 internal errors.
What's the best and most straightforward way to ensure I can upload images over 3MB and there be no issue?
Thank you.
Alex
I've been having what seems like a common problem uploading high quality photos. If the photos are over approximately 3MB in size I'm getting a memory limit error and the image isn't uploading.
Now, I've seen many ideas on here to solve this issue, I've tried a few and they've sprung up 500 internal errors.
What's the best and most straightforward way to ensure I can upload images over 3MB and there be no issue?
Thank you.
Alex
We found that we had to contact our hosting service to have our upload limit increased. Sometimes they set the post_upload_limit very low. Once they increased the limit, we had no further problems.
PHP Setting ---> ini.php
Change this line:
upload_max_filesize = 10M
post_max_size = 10M
Save ---> logout from the server --> login (now search in the admin-panel "Environment Information" its under: "/dashboard/system/environment/info" and you will see in the details)
Anyway i think 3mb its fine for full screen images (4m and more its to much. Especially for mobile web!!)...Its more for "download" and not for web galleries.
Change this line:
upload_max_filesize = 10M
post_max_size = 10M
Save ---> logout from the server --> login (now search in the admin-panel "Environment Information" its under: "/dashboard/system/environment/info" and you will see in the details)
Anyway i think 3mb its fine for full screen images (4m and more its to much. Especially for mobile web!!)...Its more for "download" and not for web galleries.
Thank you for your reply.
Where would I find ini.php?
Also when I do find it what do I change those two lines to?
Thank you for your help.
Where would I find ini.php?
Also when I do find it what do I change those two lines to?
Thank you for your help.
Yes (change from 3 to 10). You can talk with your host company maybe.
If you wrote this lines (delete this after!) in your theme:
Than look at the html - you will see long list of data. You also find the path to ini.php (use control+f to find this)
Maybe backup the original ini.php before you do this changes (if you "destroy" something - use the original again)
If you wrote this lines (delete this after!) in your theme:
<?php phpinfo(); ?>
Than look at the html - you will see long list of data. You also find the path to ini.php (use control+f to find this)
Maybe backup the original ini.php before you do this changes (if you "destroy" something - use the original again)
Hello,
Sorry for the delay in getting back to you.
I located the php.ini file on my server.
The 'upload_max_filesize' and the 'post_max_size' are both set to 80M. However the issue still exists.
What values should they be or what else could be causing me to still not be able to upload large photos?
Thanks.
Alex
Sorry for the delay in getting back to you.
I located the php.ini file on my server.
The 'upload_max_filesize' and the 'post_max_size' are both set to 80M. However the issue still exists.
What values should they be or what else could be causing me to still not be able to upload large photos?
Thanks.
Alex