Replier can only add posts at the end of a thread

FrederikP

Member
Reactions
3
I'm getting this error on admin panel (4-5 times per day), is this a issue with ElasticSearchEssentials or XenForo?

Code:
LogicException: Replier can only add posts at the end of a thread src/XF/Service/Thread/Replier.php:182
Generated by: randomuser Aug 31, 2019 at 5:00 PM

Stack trace
#0 src/XF/Service/Thread/Replier.php(165): XF\Service\Thread\Replier->setPostPosition(Array)
#1 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Thread\Replier->_save()
#2 src/XF/Pub/Controller/Thread.php(461): XF\Service\Thread\Replier->save()
#3 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#5 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ElasticSearchEssentials\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#8 src/XF.php(390): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Code:
Request state
array(4) {
  ["url"] => string(53) "/threads/threadnamehere.1209/add-reply"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["/threads/threadnamehere_1209/add-reply"] => string(0) ""
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(407) "<p>[QUOTE="User01, post: 2342793, member: 827282"]</p><p>I think you are correct.</p><p>Would you agree that textures are probably the easiest for indie developers? (talking about graphics only not other aspects)</p><p>[/QUOTE]</p><p>I'm not a game developer so I can't really say, how easy or difficult game textures are to implement depends on what kind of graphics and visual style you're going for.</p>"
    ["attachment_hash"] => string(32) "a54c22510176a38d699a29beb70fc616"
    ["attachment_hash_combined"] => string(86) "{"type":"post","context":{"thread_id":1209},"hash":"a54c22510176a38d699a29beb70fc616"}"
    ["last_date"] => string(10) "1567266100"
    ["last_known_date"] => string(10) "1567266100"
    ["_xfToken"] => string(8) "[B]****[/B]"
    ["_xfRequestUri"] => string(52) "/threads/threadnamehere.1209/page-197"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
 
This would be unrelated to my add-ons.

I'ld run the "rebuild thread positions" to see if that fixes it. You can do this via the CLI with php cmd.php xf-rebuild:threads --position_rebuild
 

Users who are viewing this thread

Back
Top