One of my maps, I had another problem on php8.1 upgrade with
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /opt/librenms/html/plugins/Weathermap/lib/WeatherMapLink.class.php:162
I needed to remove some “VIA” lines in conf file, then it worked.