[ERROR] test-alert.php line 15: Call to undefined function loadAlerts( )

Hello! I’m new using LibreNMS. I got some error and I can’t find how to fix it. This is an error:

I hope you can help me and this will be fixed. Thank you.

Please run ./validate.php

And post it here

When I run ./validate.php, I got this

You need to fix the time issue

I’ve added timezone in php.ini in cli and fpm, but fpm failed to restart. When I read it, it said that PHP7.3 doesn’t support. Do I have to change timezone in MySQL into Universal?

i dont have "

yust date.timezone = Asia/Jakarta

I’m getting the same error when I try to run check_alerts:

./scripts/test-alert.php -h localhost -d -r 1
SQL[SELECT device_id FROM devices WHERE hostname = ? [“localhost”] 0.57ms]

Call to undefined function loadAlerts() {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to undefined function loadAlerts() at /data/librenms/scripts/test-alert.php:15)"}

In test-alert.php line 15:

Call to undefined function loadAlerts()

./validate.php

Component Version
LibreNMS 1.53.1-53-ga40d898ad8
DB Schema 2019_05_30_225937_device_groups_rewrite (135)
PHP 7.2.17-0ubuntu0.18.04.1
MySQL 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Where should loadAlerts() be defined? I can’t find it.