### The problem
`graph.php?id=3&type=bill_historicmonthly&width=1190&height=2…50`
Today, bill historic monthly gets error 500. Why?
My 2 servers have the same issue.
### Output of ./validate.php
```txt
===========================================
Component | Version
--------- | -------
LibreNMS | 23.4.1-28-ge815bbb81 (2023-04-21T19:14:33-07:00)
DB Schema | 2023_04_12_174529_modify_ports_table (250)
PHP | 8.1.2-1ubuntu2.11
Python | 3.10.6
Database | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool | 1.7.2
SNMP | 5.9.1
===========================================
[OK] Composer Version: 2.5.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
"Exception: stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused)" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/vendor/predis/predis/src/Connection/StreamConnection.php:108" // app/Providers/ErrorReportingProvider.php:63
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
"Exception: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/LibreNMS/Validations/User.php:95" // app/Providers/ErrorReportingProvider.php:63
```
### What was the last working version of LibreNMS?
23.4.1-28-ge815bbb81
### Anything in the logs that might be useful for us?
```txt
DB SNMP counters received.
in_measurement: 9216714 out_measurement: 9720435
The data types are. in_measurement:integer and out_measurement: integer
IN_delta: 50940 OUT_delta: 75422
Last_IN_delta: 25570 last_OUT_delta: 58623
Nice, valid counters 'in/out_measurement', lets use them
[2023-04-22T02:00:16.780536-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
/opt/librenms/poller.php 11 2023-04-22 02:00:17 - 1 devices polled in 14.57 secs
/opt/librenms/poller.php 10 2023-04-22 02:00:17 - 1 devices polled in 15.29 secs
/opt/librenms/poller.php 9 2023-04-22 02:00:25 - 1 devices polled in 22.79 secs
/opt/librenms/poller.php 7 2023-04-22 02:00:52 - 1 devices polled in 49.76 secs
/opt/librenms/poller.php 2 2023-04-22 02:00:53 - 1 devices polled in 51.34 secs
/opt/librenms/poller.php 6 2023-04-22 02:00:55 - 1 devices polled in 52.65 secs
/opt/librenms/poller.php 3 2023-04-22 02:00:56 - 1 devices polled in 53.56 secs
/opt/librenms/poller.php 5 2023-04-22 02:01:00 - 1 devices polled in 57.54 secs
/opt/librenms/poller.php 4 2023-04-22 02:01:05 - 1 devices polled in 63.14 secs
/opt/librenms/poller.php 1 2023-04-22 02:01:10 - 1 devices polled in 67.83 secs
[2023-04-22T02:01:44.058994-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:02:23.295232-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:03:37.435773-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:03:44.910505-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
/opt/librenms/discovery.php new 2023-04-22 02:05:01 - 0 devices discovered in 0.003 secs
DB SNMP counters received.
in_measurement: 9259149 out_measurement: 9786505
The data types are. in_measurement:integer and out_measurement: integer
IN_delta: 42435 OUT_delta: 66070
Last_IN_delta: 50940 last_OUT_delta: 75422
Nice, valid counters 'in/out_measurement', lets use them
/opt/librenms/poller.php 11 2023-04-22 02:05:11 - 1 devices polled in 9.470 secs
/opt/librenms/poller.php 10 2023-04-22 02:05:12 - 1 devices polled in 10.45 secs
/opt/librenms/poller.php 9 2023-04-22 02:05:20 - 1 devices polled in 18.12 secs
/opt/librenms/poller.php 7 2023-04-22 02:05:44 - 1 devices polled in 42.06 secs
/opt/librenms/poller.php 6 2023-04-22 02:05:46 - 1 devices polled in 44.44 secs
/opt/librenms/poller.php 3 2023-04-22 02:05:47 - 1 devices polled in 45.11 secs
/opt/librenms/poller.php 2 2023-04-22 02:05:48 - 1 devices polled in 46.32 secs
[2023-04-22T02:05:49.462732-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
/opt/librenms/poller.php 5 2023-04-22 02:05:50 - 1 devices polled in 48.68 secs
[2023-04-22T02:05:51.466126-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:05:52.809114-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
/opt/librenms/poller.php 4 2023-04-22 02:05:57 - 1 devices polled in 55.55 secs
/opt/librenms/poller.php 1 2023-04-22 02:05:58 - 1 devices polled in 56.02 secs
[2023-04-22T02:06:34.866206-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:06:58.611609-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:07:16.627163-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:07:20.742301-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:07:24.054305-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:07:32.864200-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:07:55.872854-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":2,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:08:16.281243-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
[2023-04-22T02:09:22.283750-07:00] production.ERROR: count(): Argument #1 ($value) must be of type Countable|array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13)"}
/opt/librenms/discovery.php new 2023-04-22 02:10:01 - 0 devices discovered in 0.003 secs
=============================================================
"Exception: Undefined array key "font"" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/LibreNMS/Data/Graphing/GraphParameters.php:87" // app/Providers/ErrorReportingProvider.php:63
"Exception: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/LibreNMS/Util/Clean.php:54" // app/Providers/ErrorReportingProvider.php:63
"Exception: Undefined variable $graph_data" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13" // app/Providers/ErrorReportingProvider.php:63
"Exception: Trying to access array offset on value of type null" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/includes/html/graphs/bill/historicmonthly.inc.php:13" // app/Providers/ErrorReportingProvider.php:63
{ "message": "Server Error: Set APP_DEBUG=true to see details." }
```