1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Fatal Error: Allowed memory...

Discussion in 'XenForo Questions and Support' started by gtrgriff3, Jan 11, 2016.

  1. gtrgriff3

    gtrgriff3 Member

    I see this error in the logs today:
    ErrorException: Fatal Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12960 bytes) -library/XenForo/Image/Gd.php:78

    Stack Trace:
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}

    Request State:
    array(3) {
    ["url"] => string(69) "http://bluesguitarunleashed.com/forum/index.php?account/avatar-upload"
    ["_GET"] => array(1) {
    ["account/avatar-upload"] => string(0) ""
    }
    ["_POST"] => array(8) {
    ["use_gravatar"] => string(1) "0"
    ["avatar_date"] => string(1) "0"
    ["avatar_crop_x"] => string(1) "0"
    ["avatar_crop_y"] => string(1) "0"
    ["_xfToken"] => string(8) "********"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(9) "json-text"
    ["_xfUploader"] => string(1) "1"
    }
    }

    Based on what I am reading here on the forum this is likely a PHP error where it's running out of memory. But what I cannot tell is if it's a PHP configuration error, or I've got something set too large (the avatar upload, for example.)

    Can anyone direct me on how to handle this? Thanks.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    This looks like it's down to a low memory_limit in PHP - it seems to be currently set to 64MB. As well as checking php.ini this may well be overridden elsewhere.

    You could either raise the memory_limit in PHP or reduced the max allowed size for avatar uploads in XF.
     

Share This Page