XF 2.1 Why do I get this error? 'Template error: Illegal offset type in isset or empty'

canina

Member
Full error:

Code:
#0 src/XF/Template/Templater.php(2974): XF\Template\Templater->handleTemplateError(2, 'Illegal offset ...', 's...', 2974, Array)
#1 src/addons/SV/MultiPrefix/XF/Template/Templater.php(247): XF\Template\Templater->fnPrefix(Object(SV\MultiPrefix\XF\Template\Templater), true, 'classifieds_lis...', Array, 'html', NULL)
#2 [internal function]: SV\MultiPrefix\XF\Template\Templater->fnPrefix(Object(SV\MultiPrefix\XF\Template\Templater), true, 'classifieds_lis...', Object(Z61\Classifieds\Entity\Listing))
#3 src/XF/Template/Templater.php(922): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l2/s1/public/search_result_classifieds_listing.php(25): XF\Template\Templater->fn('prefix', Array, true)
#5 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array)
#6 src/XF/Search/Data/AbstractData.php(51): XF\Template\Templater->renderTemplate('search_result_c...', Array)
#7 src/XF/Search/RenderWrapper.php(31): XF\Search\Data\AbstractData->renderResult(Object(Z61\Classifieds\Entity\Listing), Array)
#8 [internal function]: XF\Search\RenderWrapper->render(Array)
#9 src/XF/Template/Templater.php(985): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l2/s1/public/search_results.php(130): XF\Template\Templater->method(Object(XF\Search\RenderWrapper), 'render', Array)
#11 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('search_results', Array)
#13 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Search\\Resul...', 'public:search_r...', Array)
#15 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#19 src/XF.php(390): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

Code:
array(4) {
  ["url"] => string(13) "/search/8422/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Mike

XenForo developer
Staff member
This looks like a bug in your classifieds add-on (search_result_classifieds_listing is the name of the template causing the issue).
 
Top