XF 2.2 Help with Template Error

Status
Not open for further replies.

C Allingham

Member
This error just popped up for the first time. There are 96 instances of this error in the log, all timestamped Jan 30, 2022 at 2:45 AM.

I've not made any recent updates, upgrades, or changes that would account for this, to the best of my knowledge. It just seems to have come out of nowhere.

I'm not highly technical, so I have no clue what this is or how to deal with it. Any help is greatly appreciated.

Code:
ErrorException: Template error: [E_USER_WARNING] Function sam_counter is unknown src/XF/Template/Templater.php:1106
Generated by: Unknown account Jan 30, 2022 at 2:45 AM

Code:
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/callingh/...', 1106)
#1 src/XF/Template/Templater.php(1106): trigger_error('Function sam_co...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/post_macros.php(81): XF\Template\Templater->func('sam_counter', Array, false)
#3 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('signature', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l1/s1/public/post_macros.php(103): XF\Template\Templater->renderExtension('signature', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l1/s1/public/post_macros.php(128): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l1/s1/public/post_macros.php(142): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s1/public/post_macros.php(154): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l1/s1/public/post_macros.php(184): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l1/s1/public/thread_view.php(811): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#20 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#28 src/XF.php(517): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}

Code:
Request state
array(4) {
  ["url"] => string(24) "/threads/kielbasa.52657/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

creativeforge

Active member
This error just popped up for the first time. There are 96 instances of this error in the log, all timestamped Jan 30, 2022 at 2:45 AM.

I've not made any recent updates, upgrades, or changes that would account for this, to the best of my knowledge. It just seems to have come out of nowhere.

I'm not highly technical, so I have no clue what this is or how to deal with it. Any help is greatly appreciated.

Code:
ErrorException: Template error: [E_USER_WARNING] Function sam_counter is unknown src/XF/Template/Templater.php:1106
Generated by: Unknown account Jan 30, 2022 at 2:45 AM

Code:
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/callingh/...', 1106)
#1 src/XF/Template/Templater.php(1106): trigger_error('Function sam_co...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/post_macros.php(81): XF\Template\Templater->func('sam_counter', Array, false)
#3 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('signature', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l1/s1/public/post_macros.php(103): XF\Template\Templater->renderExtension('signature', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l1/s1/public/post_macros.php(128): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l1/s1/public/post_macros.php(142): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s1/public/post_macros.php(154): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l1/s1/public/post_macros.php(184): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l1/s1/public/thread_view.php(811): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#20 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#28 src/XF.php(517): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}

Code:
Request state
array(4) {
  ["url"] => string(24) "/threads/kielbasa.52657/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I have the same issue (also using Ads Manager). Did you find a solution?
 
Status
Not open for further replies.
Top