Support » Fixing WordPress » Fatal Error on image upload (out of memory)

  • Fatal error: Out of memory (allocated 32243712) (tried to allocate 4096 bytes) in /homepages/10/d258613186/htdocs/conceptgenius/wp-includes/media.php on line 999

    I get this error when I try to upload an image, I think it happened after that latest update of WP. any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You might try adding this to your wp-config.php file.

    define('WP_MEMORY_LIMIT', '64M');


    I’ve seen a lot of posts on this subject that don’t seem to have been resolved so I just have to share my experience with the issue.
    I noticed that it only happened with certain images so I checked and the images it was happening with, while small file sizes, were very high dimensions (2000px or more wide). All I had to do was decrease the image size to 1000px wide and it worked fine.

    So, as I’ve said, its not the image size its the image dimensions that is causing the error.

    One more thing i’ve noticed is that several people have said they were hosted with 1and1 and the website that I had the error with was also hosted on 1and1.

    All I had to do was decrease the image size to 1000px wide and it worked fine.

    That is what the issue was with me and I use 1and1 as well…when I made it smaller than 2000px it worked fine.

    I’m so glad I found this thread I’ve sorted out the issue I was having by just changing an immage size from 1999px to 1500px the odd thing was it was only with the Modularity Lite theme I installed not with the Twenty Ten Theme.
    1and1 certainly do have some annoying issues, I’ve used them for over 10 years now with standard html sites and CMS without issues, until I’ve decided to help out a business friend with their wp site. Images are just one of the problems, I do hope that I don’t have to alter every image to under 2000px just to load them.
    This will be an interesting ride!

    Moderator kmessinger


    Just out of curiosity, why would you need a 2000px image?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error on image upload (out of memory)’ is closed to new replies.