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


I get this error since a few days. I haven't do any changes during..

Server error log
ErrorException: Template error: [E_WARNING] A non-numeric value encountered internal_data/code_cache/templates/l4/s62/public/dbtech_ecommerce_rating_macros.php:23
Generated by: Unknown account Sep 5, 2021 at 17:34

Stack trace
#0 internal_data/code_cache/templates/l4/s62/public/dbtech_ecommerce_rating_macros.php(23): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] A n...', '/var/www/vhosts...', 23)
#1 src/XF/Template/Templater.php(817): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l4/s62/public/dbtech_ecommerce_product_wrapper.php(525): XF\Template\Templater->callMacro('dbtech_ecommerc...', 'stars_circle', Array, Array)
#3 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Templater.php(1041): XF\Template\Templater->renderTemplate('dbtech_ecommerc...', Array, false)
#5 src/XF/Template/Templater.php(1659): XF\Template\Templater->applyWrappedTemplate('<span...')
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('dbtech_ecommerc...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('DBTech\\eCommerc...', 'public:dbtech_e...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#13 src/XF.php(512): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state
array(4) {
  ["url"] => string(60) "/store/deutsches-sprachpaket-fuer-th-ui-x-add-on.25/releases"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {

Fillip H.

Staff member
If you inspect the database record for product ID 25, what's the value of the rating_count, rating_sum, rating_avg, and rating_weighted columns?

Fillip H.

Staff member
I can't see anything wrong with this template locally and I also can't replicate the issue. Can you please find the file specified in the error on your server and post the contents here?

DragonByte Technologies

Company Information
Staff member
Company Info
Hello @McAtze,

We hope your ticket regarding DragonByte eCommerce has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.

- DragonByte Technologies, Ltd.


The issue is almost there. Attached the file..


  • Bildschirmfoto 2021-09-24 um 20.50.44.png
    Bildschirmfoto 2021-09-24 um 20.50.44.png
    28.4 KB · Views: 1
  • dbtech_ecommerce_rating_macros.php.zip
    752 bytes · Views: 0

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x
DragonByte Technologies
Release date
Last update
Total downloads
Customer rating
4.83 star(s) 6 ratings