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

XF 1.3 What does this sever error mean?

Discussion in 'Troubleshooting and Problems' started by Ferdinand, May 15, 2014.

  1. Ferdinand

    Ferdinand Active Member

    Hi, I got this error but don't know what it means:
    Server Error Log
    Error Info
    ErrorException: Fatal Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 43777580 bytes) - library/XenForo/Image/Gd.php:86
    Generated By: JohnK, Today at 6:13 AM
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
    ["url"] => string(101) "https://www.tag.ac/attachments/do-u...21eea0109753aaebe63c4247fc9&content_type=post"
    ["_GET"] => array(2) {
    ["hash"] => string(32) "56e5621eea0109753aaebe63c4247fc9"
    ["content_type"] => string(4) "post"
    }
    ["_POST"] => array(5) {
    ["filename"] => string(27) "upload_2014-5-15_1-13-9.png"
    ["_xfToken"] => string(8) "********"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfSessionId"] => string(32) "39ef7543230d9bf536af5d56d8a1308f"
    ["content_data"] => array(1) {
    ["thread_id"] => string(5) "31730"
    }
    }
    }

    Any ideas?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It means your server's PHP memory_limit was hit.

    How much memory do you have available?
    How large was the attachment? Both MB and pixels.
    Have you set the config.php switch for max image size?
     
  3. Ferdinand

    Ferdinand Active Member

    Hi,

    Virtual Memory Usage20.3 / 1024 MB

    Physical Memory Usage67.9 / 1024 MB


    I am not sure how large the attachment was as it was triggered by a member and only recorded in the log. I have not set a max image in the config.php it only contains:

    [edit: standard stuff - Mike]
     
    Last edited by a moderator: May 15, 2014
  4. Mike

    Mike XenForo Developer Staff Member

    It's a PHP memory_limit issue. It appears to be set to 64MB (the default is 128MB) and unchangeable by XenForo (we do try to change it). It can be changed in your php.ini if you have access to it; otherwise, you may need to contact your host.

    Alternatively, you could reduce the config.php $config['maxImageResizePixelCount'] setting (probably have to set it down to about 10000000). This will prevent resizing any images over 10 megapixels though.
     

Share This Page