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

"Cannot insert a message in the middle of a discussion" error.

Discussion in 'Troubleshooting and Problems' started by sillyrosster, Sep 4, 2012.

  1. sillyrosster

    sillyrosster Member

    I get this a lot on my website:
    Code:
    Request State
    array(3) {
      ["url"] => string(69) "http://www.metaserve.net/index.php?threads/report-oidly.300/add-reply"
      ["_GET"] => array(1) {
        ["threads/report-oidly_300/add-reply"] => string(0) ""
      }
      ["_POST"] => array(8) {
        ["message_html"] => string(306) "<p>[quote="TheChives, post: 3115, member: 300"]540 sometimes at 770[/quote]</p>
    <p>&nbsp;Ouch. I get from 100 - 300. If I get more than 300 I get worried somethings wrong. It's hosted in CA, USA; so that may be the problem for you. The internet speed is amazing, so it theoretically shouldn't be slow.</p>"
        ["_xfRelativeResolver"] => string(60) "http://www.metaserve.net/index.php?threads/report-oidly.300/"
        ["attachment_hash"] => string(32) "af3b16dbb93521665e53e1503c105ca2"
        ["last_date"] => string(10) "1346786459"
        ["_xfToken"] => string(53) "1,1346786302,e171d93c8e4e0f0f6969d3c35f7f913812b33e30"
        ["_xfRequestUri"] => string(36) "/index.php?threads/report-oidly.300/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    Code:
    Stack Trace
    #0 /storage/content/75/101975/metaserve.net/public_html/library/XenForo/DataWriter/DiscussionMessage.php(335): XenForo_DataWriter_DiscussionMessage->_setPosition()
    #1 /storage/content/75/101975/metaserve.net/public_html/library/XenForo/DataWriter.php(1422): XenForo_DataWriter_DiscussionMessage->_preSave()
    #2 /storage/content/75/101975/metaserve.net/public_html/library/XenForo/ControllerPublic/Thread.php(497): XenForo_DataWriter->preSave()
    #3 /storage/content/75/101975/metaserve.net/public_html/library/DoublePost/ControllerPublic/Thread.php(39): XenForo_ControllerPublic_Thread->actionAddReply()
    #4 /storage/content/75/101975/metaserve.net/public_html/library/XenForo/FrontController.php(310): DoublePost_ControllerPublic_Thread->actionAddReply()
    #5 /storage/content/75/101975/metaserve.net/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #6 /storage/content/75/101975/metaserve.net/public_html/index.php(13): XenForo_FrontController->run()
    #7 {main} 
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Hmm. Looking at the code, that error is triggered when you insert a post with a timestamp before the last post of the discussion. Two things to try:

    1) Rebuild your thread info:

    Admin CP -> Tools -> Rebuild Caches

    2) Check your server clock. Maybe the clock changed. That would cause weird time related problems on your forum.
     

Share This Page