• Resolved ajithkpunnoose

    (@ajithkpunnoose)


    I have problem uploading image files.

    The error is :

    Fatal error: Out of memory (allocated 32243712) (tried to allocate 6400 bytes) in /homepages/11/LOCATION/htdocs/movabletype/wp-includes/media.php on line 253

    I am trying to upload an image file 1600px by 1200px @ 252Kb.

    I have set thumbnail size : 180×45
    Medium size : 280×210
    Large Size : 560×420
    in Media settings. the error was present even before setting these values. I have added <strong>define('WP_MEMORY_LIMIT', '64M');</strong> to my wp-config file. I do not have access to php.ini

    I have tried disabling some plugins that could affect the functionality.

    The file is uploaded but the alternate sizes are not produced. And I can only select the large size (0px x 0px) to insert into a post.

    I have uploaded smaller files and have been successful. but large pixel size images even with small file sizes produce error.

    can someone please help!

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

    (@macmanx)

    Volunteer Moderator

    If you’re seeing this error 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 ajithkpunnoose

    (@ajithkpunnoose)

    Thanks a lot for your reply James. I will try the method you mentioned and post the results here.

    Thread Starter ajithkpunnoose

    (@ajithkpunnoose)

    It’s a plug-in error. Now is the had part. I gotta find out which one it is. Probably something that touches the gallery I guess.

    Thread Starter ajithkpunnoose

    (@ajithkpunnoose)

    Comment removed

    Thread Starter ajithkpunnoose

    (@ajithkpunnoose)

    Finally caught them!. There are two plugins causing the problem

    error 1 :

    /wp-includes/media.php on line 253

    cause : Mudslideshow

    error 2 :

    /wp-includes/media.php on line 999

    cause : lightbox plus

    Notified both developers via forum.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image file uploading error.’ is closed to new replies.