Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #5945

    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');


    Try changing this to a higher value.

    Question is if your server accepts the changes you make in wp-config.php.


    Just 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 1272

    3.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 1272

    1.8 mb image: = 1800×1202 pixels
    worked fine

    Same image resolution of the 14mb image but cropped to be 2500×1669 pixels
    works fine

    Ideas? Basically, if it errors out, it just shows error and continues to say “Crunching”


    Any thoughts?


    What 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.


    I am uploading JPG’s
    I am trying to upload two images now: image that is 3mb, and image that 2.4Mb

    My 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 = 256M


    Ok, 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.


    So 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.


    I’m just saying there must be something in your site/hosting enviroment that makes it require more resources.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.