• drew10

    (@drew10)


    Hi I have seen this on lots of posts and I have tried all of the fixes on the posts without effect.

    This seems to be a random error that only happens when I upload certain images. Size doesnt seem to be the issue so I don’t know what is going on but it really is driving me mad please help!!!

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 5120 bytes) in /home/gameanyt/public_html/wp-includes/media.php on line 253

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mark Ratledge

    (@songdogtech)

    Who is your webhost?

    Try increasing the memory for PHP and WordPress by editing the memory_limit line in your php.ini (if you have access to it) to 64M and the maximum upload to 16M

    memory_limit = 64M;

    If no php.ini, or add this line at the top of .htaccess file:

    php_value memory_limit 64M

    If that doesn’t work, add this line near the top of your wp-config.php file (right after the opening php )

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

    Thread Starter drew10

    (@drew10)

    Hi I am with M2 hosting.

    I have tried all of those fixes but none seem to make any difference. I can upload some images but some still cause that issue.

    I am going nuts

    Thread Starter drew10

    (@drew10)

    I have set it all to 64M but the PHP.ini file says the max upload is 200M

    Thread Starter drew10

    (@drew10)

    Could it be either of these?

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data

    Mark Ratledge

    (@songdogtech)

    If nothing works, ask the host. Some hosts are better than others when it comes to supporting WordPress.

    Thread Starter drew10

    (@drew10)

    I have just worked out what was causing the issue.

    It was the actual image size, not the file size but the pixel size once I reduced this then the file uploaded.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Allowed memory size’ is closed to new replies.