Traffic Bills > Quota = [CRITICAL] Exception: TypeError round()

Hey, I’m not sure when, but suddenly viewing any Traffic Bill with Billing Type of Quota is now showing an error.

The /opt/librenms/logs/librenms.log shows:

[2025-12-06T11:00:27][CRITICAL] Exception: TypeError round(): Argument #1 ($num) must be of type int|float, array given @ /opt/librenms/LibreNMS/Util/Color.php:47
#0 /opt/librenms/LibreNMS/Util/Color.php(47): round()
#1 /opt/librenms/LibreNMS/Util/Html.php(145): LibreNMS\Util\Color::percentage()
#2 /opt/librenms/includes/html/pages/bill.inc.php(177): LibreNMS\Util\Html::percentageBar()
#3 /opt/librenms/app/Http/Controllers/LegacyController.php(54): require('...')
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\LegacyController->index()

Then lots of laravel / framework errors.

The Billing Type of CDR 95th is still working fine.

Any ideas?

Thanks!

Will be fixed in Fixed Quota bills percentage bars by laf · Pull Request #18621 · librenms/librenms · GitHub

1 Like

Thanks so much :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.