• I’m setting up a WordPress installation for friend of mine, one who isn’t particularly savvy with a computer. One of her requirements is that she can easily upload photos to the blog. Unfortunately when uploading directly from her camera she receives a very familiar error message: Fatal error: Out of memory (allocated 32243… What I am looking for is a permanent solution, a way to automatically resize/optimize her photos before publication. I have tried a number of plugins available without too much luck, but I’m still open to suggestion.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Here are four ways to increase PHP’s memory allocation:

    1. If you’re using WordPress 2.9.2 or lower, try adding define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php file. If you’re using WordPress 3.0 or higher, WordPress automatically does this for a variety of tasks, so there’s really no reason to try it in this case.

    2. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 256M

    3. If you cannot edit or override the system php.ini file, add php_value memory_limit 256M to your .htaccess file.

    4. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    Thread Starter Buca

    (@sharfeddin)

    Thanks James. Well it seems I’m going to have to get in touch with my web host.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Out of memory error: Permanent solution?’ is closed to new replies.