XF 2.3 Template error: [E_WARNING] A non-numeric value encountered

lustbb

Member
Licensed customer
How do I fix this? For what reason is this happening?

Server error log
  • ErrorException: Template error: [E_WARNING] A non-numeric value encountered
  • internal_data/code_cache/templates/l1/s1/public/thread_view.php:825
  • Generated by: saleemmise
  • Mar 6, 2026 at 4:51 PM

Stack trace​

#0 internal_data/code_cache/templates/l1/s1/public/thread_view.php(825): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] A n...', '/home/example.co...', 825)
#1 src/XF/Template/Templater.php(1815): XF\Template\Templater->{closure:internal_data/code_cache/templates/l1/s1/public/thread_view.php:582}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#2 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#3 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#4 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#5 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#8 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#9 src/XF.php(814): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state​

array(4) {
["url"] => string(60) "/threads/excellent-collection-of-hd-video-clips.365260/"
["referrer"] => string(33) "https://example.com/threads/365260"
["_GET"] => array(1) {
["/threads/excellent-collection-of-hd-video-clips_365260/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Looking at the error stack this looks to be be related to the content of the thread_view template. What is your php version and what was the latest change or modification done to the forum prior to this happening?

Can you try to disable your third party add ons and then have another look to see if the error has gone?
 
Looking at the error stack this looks to be be related to the content of the thread_view template. What is your php version and what was the latest change or modification done to the forum prior to this happening?

Can you try to disable your third party add ons and then have another look to see if the error has gone?

An error occurs when I click on the thread. It only happens in mega threads, not single threads.

PHP version 8.4.18
 
Looking at the error stack this looks to be be related to the content of the thread_view template. What is your php version and what was the latest change or modification done to the forum prior to this happening?

Can you try to disable your third party add ons and then have another look to see if the error has gone?
Fixed
 
Back
Top Bottom