PHP Deprecated error

Can someone help me find solution for this error. thank you

PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /usr/share/pear/Console/Getopt.php on line 135
PHP Warning: fopen(configs/cg.conf): failed to open stream: No such file or directory in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 1790
PHP Warning: file_get_contents(configs/cg.conf): failed to open stream: No such file or directory in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 3081
PHP Notice: Undefined property: WeatherMap::$basehref in /opt/librenms/html/plugins/Weathermap/weathermap.php on line 287

try installing php-pear (e.g yum install php-pear / apt install php-pear) , then you may need to restart nginx or php-fpm

I already installed php-pear beforehand and still it has this error.

please validate your install and post it.

./validate.php

I have exactly the same error, did anyone manage to correct it ?