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

Upload an image from a URL caused a server error

Discussion in 'Media Gallery Support' started by DaveX, Apr 28, 2015.

  1. DaveX

    DaveX Member

    When i upload an image from a URL it caused a server error. It only happens with PHP 5.6.
    PHP 5.5 and 5.4 works perfect. The Filesize of the image and the memory limit does not matter.

    The error displayed is not always the same.

    Code:
    ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140326471797552 bytes) - Unknown:0
    Generiert durch: Unbekanntes Benutzerkonto, Vor 5 Minuten
    
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    
    
    array(3) {
      ["url"] => string(77) "http://chiliforum.hot-pain.de/threads/projekt-sundown-beauty-f3.18931/page-14"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
    }
    

    Code:
    ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140417970768688 bytes) - Unknown:0
    Generiert durch: Unbekanntes Benutzerkonto, Vor 15 Minuten
    
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    
    
    array(3) {
      ["url"] => string(225) "http://chiliforum.hot-pain.de/css.php?css=andy_forummoderators,avf_trendingtopics_widget,bb_code,cta_login,facebook,login_bar,node_category,node_forum,node_list,profile_post_list_simple,wf_default&style=2&dir=LTR&d=1430204383"
      ["_GET"] => array(4) {
        ["css"] => string(154) "andy_forummoderators,avf_trendingtopics_widget,bb_code,cta_login,facebook,login_bar,node_category,node_forum,node_list,profile_post_list_simple,wf_default"
        ["style"] => string(1) "2"
        ["dir"] => string(3) "LTR"
        ["d"] => string(10) "1430204383"
      }
      ["_POST"] => array(0) {
      }
    }
    
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Neither of those errors seem to be triggered by the Gallery.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Based on the size of the memory it says it's trying to allocate, that it's PHP 5.6 only, and that the because the requests triggering the error are unrelated, it actually looks like you're running into some sort of PHP bug.
     
  4. DaveX

    DaveX Member

    Right, it only seems that way. I tested it several times, these errors are generated by the url upload.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Mike's post is likely the most relevant.

    Due to how these issues are presenting themselves, it's likely a PHP bug you're experiencing. If you're not running the latest 5.6 version, upgrade and try again.
     

Share This Page