Jump to content

Elastic Search errors indexing profile status update replies


teraßyte

Recommended Posts

Posted

I've noticed a recurring template_error logged in ACP, after looking into it some more it seems to be thrown when someone replies to a status update on a profile and ES tries to index it. Here's the message and backtrace:

TypeError: Argument 1 passed to IPS\Content\Search\Elastic\_Index::getIndexId() must implement interface IPS\Content\Searchable, instance of IPS\core\Statuses\Reply given, called in /public_html/system/Content/Search/Elastic/Index.php on line 888 and defined in /public_html/system/Content/Search/Elastic/Index.php:403
Stack trace:
#0 /public_html/system/Content/Search/Elastic/Index.php(888): IPS\Content\Search\Elastic\_Index->getIndexId(Object(IPS\core\Statuses\Reply))
#1 /public_html/system/Content/Search/Elastic/Index.php(245): IPS\Content\Search\Elastic\_Index->resetLastComment(Array, 8206)
#2 /public_html/system/Content/Item.php(4389): IPS\Content\Search\Elastic\_Index->index(Object(IPS\core\Statuses\Status))
#3 /public_html/system/Content/Item.php(4155): IPS\Content\_Item->processCommentForm(Array)
#4 /public_html/uploads/template_disk_cache/template_3_5c14eba1ca1801cfb0f753db22fb4a43_statuses.php(664): IPS\Content\_Item->commentForm()
#5 /public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_statuses->statusContainer(Object(IPS\core\Statuses\Status), Array, Array, false)
#6 /public_html/applications/core/sources/Statuses/Status.php(743): IPS\Theme\_SandboxedTemplate->__call('statusContainer', Array)
#7 /public_html/system/Content/Search/Result/Content.php(94): IPS\core\Statuses\_Status::searchResult(Array, Array, Array, NULL, Array, NULL, true, 'expanded', false, false, NULL, Array)
#8 /public_html/uploads/template_disk_cache/template_3_af46883c13caa197f9e387620d19e6ec_profile.php(2506): IPS\Content\Search\Result\_Content->html()
#9 /public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_profile->profileActivity(Object(IPS\Member), Object(IPS\Content\Search\Results), '\n<form accept-c...')
#10 /public_html/applications/core/modules/front/members/profile.php(296): IPS\Theme\_SandboxedTemplate->__call('profileActivity', Array)
#11 /public_html/system/Dispatcher/Controller.php(96): IPS\core\modules\front\members\_profile->manage()
#12 /public_html/applications/core/modules/front/members/profile.php(73): IPS\Dispatcher\_Controller->execute()
#13 /public_html/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\front\members\_profile->execute()
#14 /public_html/index.php(13): IPS\_Dispatcher->run()
#15 {main}
#0 /public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(TypeError), 'template_error')
#1 /public_html/applications/core/sources/Statuses/Status.php(743): IPS\Theme\_SandboxedTemplate->__call('statusContainer', Array)
#2 /public_html/system/Content/Search/Result/Content.php(94): IPS\core\Statuses\_Status::searchResult(Array, Array, Array, NULL, Array, NULL, true, 'expanded', false, false, NULL, Array)
#3 /public_html/uploads/template_disk_cache/template_3_af46883c13caa197f9e387620d19e6ec_profile.php(2506): IPS\Content\Search\Result\_Content->html()
#4 /public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_profile->profileActivity(Object(IPS\Member), Object(IPS\Content\Search\Results), '\n<form accept-c...')
#5 /public_html/applications/core/modules/front/members/profile.php(296): IPS\Theme\_SandboxedTemplate->__call('profileActivity', Array)
#6 /public_html/system/Dispatcher/Controller.php(96): IPS\core\modules\front\members\_profile->manage()
#7 /public_html/applications/core/modules/front/members/profile.php(73): IPS\Dispatcher\_Controller->execute()
#8 /public_html/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\front\members\_profile->execute()
#9 /public_html/index.php(13): IPS\_Dispatcher->run()
#10 {main}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...