production.ERROR: ksort(): Argument #1 ($array) must be of type array

validate info

====================================
Component | Version
--------- | -------
LibreNMS  | 22.7.0
DB Schema | 2022_07_19_081224_plugins_unique_index (243)
PHP       | 8.0.21
Python    | 3.10.4
MySQL     | 10.5.16-MariaDB-1:10.5.16+maria~focal
RRDTool   | 1.7.2
SNMP      | 5.9.3
====================================

[OK]    Installed from package; no Composer required
[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]    rrd_dir is writable
[OK]    rrdtool version ok
[WARN]  Non-git install, updates are manual or from package

cannot open the web page

[2022-07-25T14:54:08.219957+08:00] production.ERROR: ksort(): Argument #1 ($array) must be of type array, null given (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) {"userId":2,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): ksort(): Argument #1 ($array) must be of type array, null given (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/html/plugins/Weathermap/lib/editor.inc.php:168)
[previous exception] [object] (Illuminate\\View\\ViewException(code: 0): ksort(): Argument #1 ($array) must be of type array, null given (View: /opt/librenms/resources/views/layouts/librenmsv1.blade.php) at /opt/librenms/html/plugins/Weathermap/lib/editor.inc.php:168)
[previous exception] [object] (TypeError(code: 0): ksort(): Argument #1 ($array) must be of type array, null given at /opt/librenms/html/plugins/Weathermap/lib/editor.inc.php:168)"} 

I have the same problem. I use Docker. I returned to version 22.6.0 and all works correctly. See: https://github.com/librenms/docker/issues/296#issuecomment-1194131844

I found the solution, you should turn off the weathermap at Overview-Plugins-Disable Weathermap.

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