• I keep getting this error when trying to upload photos to my media library

    Fatal error: Out of memory (allocated 73924608) (tried to allocate 4288 bytes) in /home/bjh32933/public_html/kohanaphotography.com/wp-includes/media.php on line 253

    The files will then still appear in the library once I refresh and I cannot for the life of me figure out what is going on. I am using Gallery Objects for my slideshows and the pictures that firstly say error, then appear in the library do not appear in the Gallery Objects library for me to choose for slideshow, can anyone tell me what is going on?

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

    (@macmanx)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, 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 kohana

    (@kohana)

    okay silly question lol where in the php ini file do I put this?

    php_value memory_limit 256M

    Thread Starter kohana

    (@kohana)

    and my php ini file doesn’t have the memory limit in it either

    Moderator James Huff

    (@macmanx)

    and my php ini file doesn’t have the memory limit in it either

    You’ll have to manually add the line.

    Thread Starter kohana

    (@kohana)

    Is anywhere okay? because I tried adding it to the bottom of the htaccess file and it crashed my whole site, do I need to put it between the start and finish lines of the wp section in htaccess?

    Thread Starter kohana

    (@kohana)

    update: I managed to add the line into the htaccess but it didn’t make any difference so I will attempt the php ini file instead

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Media Uploading- No memory?’ is closed to new replies.