XF 1.5 Fatal Error: Maximum execution time of 120 seconds exceeded

Nirjonadda

Well-known member
I am getting lot of Server Error Log. I am set max_input_time 240 and max_execution_time 360 . What do you recommend setting max_input_time and max_execution_time value? why still are getting server error log? Now where are have 120 sec? There may be a limitation in XenForo that is set somewhere preventing the script from running longer than 120 seconds?

My phpinfo: http://image.prntscr.com/image/271908b5ab0f45cb917fb0b0666abf3d.png

Server Error Log:

Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 120 seconds exceeded - library/XenForo/Db.php:51
Generated By: Unknown Account, 48 minutes ago
Stack Trace

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

Request State

array(3) {
  ["url"] => string(39) "https://www.nirmoladda.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(26) "/forums/scanned-choti.113/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 120 seconds exceeded - library/XenForo/DataWriter/Discussion/Thread.php:33
Generated By: Unknown Account, Today at 8:12 PM
Stack Trace

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

Request State

array(3) {
  ["url"] => string(39) "https://www.nirmoladda.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 120 seconds exceeded - library/XenForo/Phrase.php:166
Generated By: Unknown Account, Today at 4:10 PM
Stack Trace

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

Request State

array(3) {
  ["url"] => string(39) "https://www.nirmoladda.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(15) "/threads/23851/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 120 seconds exceeded - library/Zend/Uri/Http.php:154
Generated By: Unknown Account, Today at 3:11 PM
Stack Trace

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

Request State

array(3) {
  ["url"] => string(39) "https://www.nirmoladda.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(22) "/members/yuvrajj.1426/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 120 seconds exceeded - library/Zend/Db/Statement/Mysqli.php:295
Generated By: Unknown Account, Today at 1:10 PM
Stack Trace

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

Request State

array(3) {
  ["url"] => string(39) "https://www.nirmoladda.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(56) "/threads/jalandar-chubby-housewife-homemade-video.45177/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
And have more log.
 

Mike

XenForo developer
Staff member
We explicitly set the time limit to 120 seconds for the deferred system. In general, nothing should be taking that long. If something's expected to take a long time, it should be split up if possible.

I note that most of your errors are in the 10-12 minutes past the hour area. Have a look at cron tasks scheduled around this time or slightly earlier. They are the most likely cause. The only one I notice out of the box is hourly clean up, but that shouldn't be using threads, phrases or Zend_Uri_Http as shown in your error messages.
 
Top