• New poster to the forums, but frequent browser. Sorry the post is so long, but I just want to be as detailed as possible.
    When trying to upload an image using both the flash and basic uploader. Everytime i am given this error.

    Fatal error: Out of memory (allocated 32243712) (tried to allocate 10200 bytes) in /homepages/30/d179495380/htdocs/wp-includes/media.php on line 254

    I have seen other posts with the same problem so I tried to fix the problem this way.

    I edited my wp-config.php file as follows by adding this line.
    define(’WP_MEMORY_LIMIT’, ‘256M’)
    I also tried 64M as well

    I also created a php.ini file in my root directory with the following contents
    register_globals=off
    memory_limit = 256M; Maximum amount of memory a script may consume (64MB)
    That didnt work in any variation of size or by changing “register_globals=off” to “register_globals off” so I deleted it.

    I tried to edit my .htaccess file by adding
    php_value memory_limit 256M
    but that just made the uploader not work at all.

    All of these were done with all plugins deactivated.
    I had the problem before but it was fixed with the memory bump plugin, but when i updated wordpress, that went away.
    I also called my provider 1and1.com and asked them about my php memory limit, and apparently the limit for the basic package is 30M. I have been able to upload images before with no problem, so I cant imagine this being the real problem since that hasnt changed.

    Any help is GREATLY appreciated. My back is against the wall at this point. Thanks in advance.

    Michael

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you provider limited memory to 30M – No setting will increase it.
    The are possible two possible problems:
    1. Image is too large. After image is uploaded WP makes image copies based on registered image sizes. It consumes some memory. Try to upload some tiny jpg image to check. Or upload some other file like small *.zip. Which is not processed like image.
    2. Some plugins can leave to many data in database, so it fill al memory while loading WP. It is very rare case, but still possible.

    Maybe you should look for some memory optimizer plugin. There are many of them.

    Thread Starter NuSouthMusic

    (@nusouthmusic)

    Thanks for the quick reply. Ive managed to get the images uploaded by drastically reducing the size of my high res images. Im not sure what Im going to do about uploading music if a less than 1mb file causes that problem. I guess ill just upload whatever I can via ftp.

    High res makes no difference in viewing on a computer. Smaller sized images load quicker and look the same.

    FTPing large files is the best way. Fast and has error checking.

    High res makes no difference in viewing on a computer. Smaller sized images load quicker and look the same.

    I’m pretty sure nobody agrees with this (thumbnails linking to larger images are fine, but it’s pretty ludicrous to say that higher res “makes no difference”), so please don’t follow this advice.

    it’s pretty ludicrous to say that higher res “makes no difference”),

    You don’t know what you are talking about. Do a search on image resolution. Just one of the many results, https://www.kneson.com/news/200503/200503.html

    High resolution, dpi, is only important in printing the image not in displaying it on a moniter. Show me an article that says it matters.

    I was in the industry for over 20 years, printing and web. I do know about images.

    It seems you are talking about different things.
    Resolution is ratio of pixels and length – it really matters only for printing.
    Size in pixels can be the same for images with different resolution.
    But as we are talking about web lets think about image resolution as about size in pixels (how most people do).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘"Fatal Error: Out of Memory" when uploading images’ is closed to new replies.