Fixed I am having errors showing up with 2.2 with similar threads enabled.

Sportsoutlaw

Active member
I am not sure what is causing the problem. Fresh theme install. This is a live board, and the errors do not show up when I disable similar threads in the ehanced search area.

PHP:
#0 src/addons/XFES/Elasticsearch/Api.php(330): XFES\Elasticsearch\Api->request('get', 'truckersforum_x...', '{
    "sort": [...')
#1 src/addons/XFES/Elasticsearch/Api.php(234): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#2 src/addons/XFES/Search/Source/Elasticsearch.php(721): XFES\Elasticsearch\Api->search(Array)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(227): XFES\Search\Source\Elasticsearch->executeSearch(Object(XFES\Search\Query\MoreLikeThisQuery), Array, 100)
#4 src/addons/XFES/XF/Search/Search.php(36): XFES\Search\Source\Elasticsearch->moreLikeThis(Object(XFES\Search\Query\MoreLikeThisQuery), 100)
#5 src/XF/Search/Search.php(212): XFES\XF\Search\Search->XFES\XF\Search\{closure}(Object(XFES\Search\Query\MoreLikeThisQuery), 100)
#6 src/addons/XFES/XF/Search/Search.php(32): XF\Search\Search->executeSearch(Object(XFES\Search\Query\MoreLikeThisQuery), 100, Object(Closure), false)
#7 src/addons/XFES/XF/Repository/Thread.php(90): XFES\XF\Search\Search->moreLikeThis(Object(XFES\Search\Query\MoreLikeThisQuery), 100, false)
#8 src/addons/XFES/XF/Repository/Thread.php(53): XFES\XF\Repository\Thread->getSimilarThreadIds(Object(XFMG\XF\Entity\Thread), 100, false, false)
#9 src/addons/XFES/Widget/SimilarThreads.php(153): XFES\XF\Repository\Thread->rebuildSimilarThreadsCache(Object(XFMG\XF\Entity\Thread))
#10 src/addons/XFES/Widget/SimilarThreads.php(59): XFES\Widget\SimilarThreads->getSimilarThreadsCache(Object(XFMG\XF\Entity\Thread))
#11 internal_data/code_cache/widgets/_36_xfes_thread_view_below_quick_reply_similar_threads.php(5): XFES\Widget\SimilarThreads->render()
#12 src/XF/Template/Templater.php(7288): XF\SubContainer\Widget->{closure}(Object(XF\Template\Templater), Array, Array)
#13 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#14 src/XF/Template/Templater.php(1873): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#15 internal_data/code_cache/templates/l1/s134/public/thread_view.php(957): XF\Template\Templater->widgetPosition('thread_view_bel...', Array)
#16 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#17 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#18 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#19 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#20 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#23 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#24 src/XF.php(417): XF\App->run()
#25 index.php(20): XF::runApp('XF\\Pub\\App')
#26 {main}

Code:
array(4) {
  ["url"] => string(64) "/threads/tanker-hauler-explodes-near-mexico-city-kills-23.75700/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Not sure if any of that helps, but posting one of the instances.
 
When similar threads is enabled, I immediately get an "oops" message while trying to create a thread. This, and the errors, go away when I disable the similar threads search options in enhanced search.
 
You haven't included the actual error message that was triggered.
Hi Mike, I'm not sure what the error was, as @Sportsoutlaw didn't provide it to myself either, however, the server has been upgraded to ES6 and the search index has been rebuilt. I've enabled Similar Threads now, and it appears to be working as expected.

Prior to upgrading ES

1595577752023.webp
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFES release (2.2.0 Beta 2).

Change log:
Prevent an error with similar thread searches on non-single type Elasticsearch indexes
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom