Web interface not starting anymore after upgrade PHP from 7.4 to 8.1

Please find below the result of the Validate command

$ ./validate.php

Component Version
LibreNMS 22.7.0-58-g83126161d
DB Schema 2022_07_03_1947_add_app_data (244)
PHP 8.1.8
Python 3.6.9
Database MariaDB 10.5.16-MariaDB-1:10.5.16+maria~bionic
RRDTool 1.7.0
SNMP 5.7.3

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

[OK] Composer Version: 2.3.10
[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]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
$

When we try to go to the Webinterface (Apache2) we get:

Whoops, looks like something went wrong. Check your librenms.log.

In the logfile I can find following error, each time I refresh the interface:
[2022-08-09T15:04:28.953391+02:00]
production.ERROR: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method
LibreNMS\Plugins\Weathermapper::menu() cannot be called statically
(View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php)
(View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php)
{“userId”:126,“exception”:"[object] (Illuminate\View\ViewException(code: 0):
call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermapper::menu() cannot be called statically
(View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php)
(View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php)
at /opt/librenms/LibreNMS/Plugins.php:189)

[previous exception] [object] (Illuminate\View\ViewException(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermappe
r::menu() cannot be called statically (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/LibreNMS/Plugins.php:189)
[previous exception] [object] (TypeError(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermapper::menu() cannot be ca
lled statically at /opt/librenms/LibreNMS/Plugins.php:189)"}

[2022-08-09T15:04:30.656062+02:00]
production.ERROR: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermapper::menu() cannot be ca
lled statically (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) {“userId”:126,“exception”:"[object] (Ill
uminate\View\ViewException(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermapper::menu() cannot be called statica
lly (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/LibreNMS/Plugins.php:189)
[previous exception] [object] (Illuminate\View\ViewException(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermappe
r::menu() cannot be called statically (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/LibreNMS/Plugins.php:189)
[previous exception] [object] (TypeError(code: 0): call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method LibreNMS\Plugins\Weathermapper::menu() cannot be ca
lled statically at /opt/librenms/LibreNMS/Plugins.php:189)"}

This looks like an incompatibility between the code and PHP 8.1

What can we do to resolve this?

Thanks in Advance.
Kurt

We got it starting again after removing the plugin Weathermapper

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