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

500 Internal Server Error

Discussion in 'Troubleshooting and Problems' started by Yiit, May 18, 2012.

  1. Yiit

    Yiit Member

    I get this error very very often, and when I checked the error log it showed me this:

    "mod_fcgid: read data timeout in 31 seconds"

    Any solutions?

    Thank you. :)
  2. Chris D

    Chris D XenForo Developer Staff Member

    Apparently fixing this could just be a case of increasing its timeout time from 31 seconds to something much higher.

    Source: http://rickchristie.com/blog/2011/note/apache-mod_fcgid-read-data-timeout-error/

    Jake Bunce likes this.
  3. Yiit

    Yiit Member

    Should my hosting firm do that? Or can I reach those files by using FTP or something?
  4. Chris D

    Chris D XenForo Developer Staff Member

    That one will most likely be for your hosting company. It will most likely require some sort of shell access.
  5. Yiit

    Yiit Member

    Thank you sir for your help :)
  6. Yiit

    Yiit Member

    They said that this is something they can't do. Is there any other solutions?
  7. Chris D

    Chris D XenForo Developer Staff Member

    I'm sure it's something they can do... but sounds more like something they won't do.

    I assume you're on shared hosting?
  8. Yiit

    Yiit Member

    I'm sir.
  9. Naatan

    Naatan Well-Known Member

    The error is a symptom, not the problem itself. Same as with medical symptoms you need to address the cause and not numb the symptom.

    In this case you need to figure out what script is running so long, PHP really shouldn't even run for more than a couple of seconds (in fact, even a script that takes a second to run is considered "slow").

    See if the error log gives you any indication as to what url is being accessed when the error occurs.
    Yorick likes this.
  10. Chris D

    Chris D XenForo Developer Staff Member


    Normally clicking the error in the Error Log should give you more details.
  11. Yiit

    Yiit Member

    I get this thing on the XenForo Error Logo,

    ErrorException: Undefined variable: errno - library/Zend/Http/Client/Adapter/Socket.php:236

    Stack Trace

    #0 /home/turkcraft.net/httpdocs/library/Zend/Http/Client/Adapter/Socket.php(236): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/turkcraft...', 236, Array)
    #1 /home/turkcraft.net/httpdocs/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('www.gravatar.co...', 80, false)
    #2 /home/turkcraft.net/httpdocs/library/XenForo/Model/Avatar.php(457): Zend_Http_Client->request('HEAD')
    #3 /home/turkcraft.net/httpdocs/library/XenForo/ControllerPublic/Register.php(176): XenForo_Model_Avatar::gravatarExists('zorro048@gmail....')
    #4 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Register->actionRegister()
    #5 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #6 /home/turkcraft.net/httpdocs/index.php(13): XenForo_FrontController->run()
    #7 {main}

    Anywhere else should I check?
  12. Chris D

    Chris D XenForo Developer Staff Member

    It seems like something to do with Gravatar?

    It references a user, zorro048@gmail.com so maybe it's worth removing their avatar from the admin CP?
  13. Yiit

    Yiit Member

    Lot's of users get this, when I check the error log I see lot's of names. Maybe I should close up the whole Gravatar thing if that's gonna solve the problem for sure?

    Edit: I closed the Gravatar but the Error is still going on.
  14. Chris D

    Chris D XenForo Developer Staff Member

    Yeah disabling Gravatar doesn't remove the existing avatars...

    But disabling it isn't a solution, it should work... but I wouldn't know how to fix it :(
  15. Yiit

    Yiit Member

    Okay thanks for you help anyway. :)
  16. Naatan

    Naatan Well-Known Member

    Looks like it's timing out on communicating with Gravatar.com.

    You should probably report this as a bug here on XenForo, because the software should set a timeout for the request that doesn't exceed the global timeout, so errors like this can be handled gracefully.

    The url in the log you posted is cut off, could you post the full url (strip sensitive information)?
  17. Yiit

    Yiit Member

    What do you mean by full URL? Also I don't think I can wait for the next release of the XenForo patches. My community is bored of these Internal Errors. :(
  18. Naatan

    Naatan Well-Known Member


    gravatar.co .. is cut off. Would be helpful to see the whole thing.
  19. Yiit

    Yiit Member

    I can't see the whole thing too, also I started to get this error too.

    Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry 'StatusUpdates' for key 'module_name' - library/Zend/Db/Statement/Mysqli.php:214

    #0 /home/turkcraft.net/httpdocs/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
    #1 /home/turkcraft.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
    #2 /home/turkcraft.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `EW...', Array)
    #3 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1591): Zend_Db_Adapter_Abstract->insert('EWRporta_cache', Array)
    #4 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1580): XenForo_DataWriter->_insert()
    #5 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1381): XenForo_DataWriter->_save()
    #6 /home/turkcraft.net/httpdocs/library/EWRporta/Model/Cache.php(38): XenForo_DataWriter->save()
    #7 /home/turkcraft.net/httpdocs/library/EWRporta/Model/Modules.php(230): EWRporta_Model_Cache->buildModuleCache(Array, 'a:2:{s:6:"optio...')
    #8 /home/turkcraft.net/httpdocs/library/EWRporta/ViewPublic/Portal.php(46): EWRporta_Model_Modules->getModuleParams(Array, 1)
    #9 /home/turkcraft.net/httpdocs/library/XenForo/ViewRenderer/Abstract.php(215): EWRporta_ViewPublic_Portal->renderHtml()
    #10 /home/turkcraft.net/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
    #11 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
    #12 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #13 /home/turkcraft.net/httpdocs/index.php(13): XenForo_FrontController->run()
    #14 {main}
  20. Naatan

    Naatan Well-Known Member

    That does not seem to be related.

    Can you post the "Request State" portion of the log entry (the one about gravatar).

    Note that this error might also be unrelated to the problem you are having, but seeing as the Zend library is bugging out we can't tell for certain.

Share This Page