Error polling sensor in APC devices

Hi,

the latest monthly release gives an error output for APC devices and it ends up in error in sensor polling: Here ist the log


[2025-02-20T15:10:30][ERROR] %rError polling sensors module for 10.10.10.10.%n LibreNMS\Exceptions\UserFunctionExistException: Invalid user function: dateToDays in /opt/librenms/LibreNMS/Util/ UserFuncHelper.php:39
Stack trace:
#0 /opt/librenms/includes/polling/functions.inc.php(193): LibreNMS\Util\UserFuncHelper->__call()
#1 /opt/librenms/includes/polling/functions.inc.php(128): record_sensor_data()
#2 /opt/librenms/includes/polling/sensors.inc.php(28): poll_sensor()


Component Version
LibreNMS 25.2.0 (2025-02-20T11:55:43+01:00)
DB Schema 2025_01_30_000121_add_ifindex_index_to_ports_table (315)
PHP 8.3.17
Python 3.8.10
Database MariaDB 10.6.21-MariaDB-ubu2004
RRDTool 1.7.2
SNMP 5.8
===========================================

[OK] Composer Version: 2.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[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
[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


Ciao

It is necessary to run a discovery before polling works because I also removed the userfunc which was just used for this APC sensor. Sorry for the trouble!

thx for the info.