Tagged: error, Large Image, Memory
- This topic has 8 replies, 2 voices, and was last updated 9 years, 1 month ago by Bartosz.
-
AuthorPosts
-
27 January 2015 at 17:27 #5945slydawggParticipant
I’m running into an issue with uploading images over approximately 2MB into the Media Library with error messages that display something like:
Fatal error: Out of memory (allocated 83886080) (tried to allocate 12032 bytes) in /home/infocusa/public_html/wp-content/plugins/image-watermark/image-watermark.php on line 1272
Note: WP-CONFIG.PHP:
define('WP_MEMORY_LIMIT', '128M');
27 January 2015 at 17:36 #5946BartoszKeymasterTry changing this to a higher value.
Question is if your server accepts the changes you make in wp-config.php.
27 January 2015 at 19:19 #5947slydawggParticipantJust changed it to 300M and still got errors:
14mb image: = 6016×4016 pixels
Fatal error: Out of memory (allocated 131858432) (tried to allocate 24064 bytes) in /home/infocusa/public_html/wp-content/plugins/image-watermark/image-watermark.php on line 12723.5mb image: = 3008×2008 pixels
Fatal error: Out of memory (allocated 83623936) (tried to allocate 12032 bytes) in /home/infocusa/public_html/wp-content/plugins/image-watermark/image-watermark.php on line 12721.8 mb image: = 1800×1202 pixels
worked fineNote:
Same image resolution of the 14mb image but cropped to be 2500×1669 pixels
works fineIdeas? Basically, if it errors out, it just shows error and continues to say “Crunching” http://img42.com/bAeLI
28 January 2015 at 21:42 #5956slydawggParticipantAny thoughts?
2 February 2015 at 22:07 #5967BartoszKeymasterWhat image format are you trying to watermark?
Doeas this errors depend on how many images you upload?The change in wp config does not mean that it takes any effect. It might be limited by your server. Did you ask your hosting provided about the memmory limits? I’m asking this question again.
3 February 2015 at 15:16 #5970slydawggParticipantI am uploading JPG’s
I am trying to upload two images now: image that is 3mb, and image that 2.4MbMy php.ini states the following (and has been confirmed by Hostgator that this will work)
upload_max_filesize = 50M
post_max_size = 128M
max_execution_time = 90
max_input_time = 90
memory_limit = 256M3 February 2015 at 15:35 #5971BartoszKeymasterOk, we know where the problem is: you’re uploading large/very large images. It requires a lot of resources to process the image. The resources of your site’s system are not enough. Comma.
The reason for this is the memory limit. You have to set it to a higher level. The required level is corelated with the level of your current memory consumption generated by your theme and, especially, plugins. The more powerful plugins you use the more memory they take to operate. So you have to push the limit higher.
That’s how it works – I don’t think there’s a better answer.
With one exception maybe: there might be a theme code or other plugin that hooks into image upload process and does some operations the same time IW does, thus generate or multiply the resources required by the IW itself. But I doubt it.
4 February 2015 at 17:23 #5973slydawggParticipantSo are you saying a 2-3megabyte image file is too large for IW to function?
Just seems like the php settings (memory limit and max_filesize) would be plenty, but I will try something else.
4 February 2015 at 18:08 #5974BartoszKeymasterI’m just saying there must be something in your site/hosting enviroment that makes it require more resources.
-
AuthorPosts
- You must be logged in to reply to this topic.
How to Get Support
After you register and login to the site, you may post all plugin support questions in the Support Forum.
If you need to provide private info, please create a ticket and then reply to it using Set as private reply option.
Sign Up
Please login or sign up for a free account.Sign Up Now