librenms-plugins / Weathermap

MIT License
64 stars 51 forks source link

PHP Depricated #59

Closed krakazyabra closed 5 years ago

krakazyabra commented 5 years ago

Hi! During refreshing the maps (map-poller.php), i get PHP Warnings like this:

PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /usr/share/pear/Console/Getopt.php on line 136
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /opt/librenms/html/plugins/Weathermap/weathermap.php on line 64
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 109
PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /usr/share/pear/Console/Getopt.php on line 136
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 154
PHP Deprecated:  Non-static method PEAR::isError() should not be called statically in /opt/librenms/html/plugins/Weathermap/weathermap.php on line 64

Is it to you?

laf commented 5 years ago

This would require the code to be updated to use the latest network weathermap code which probably isn't going to happen anytime soon.