Details
-
Help
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
Since we've upgraded to PHP8, our old instance of php weathermap has stopped updating because map-poller.php has multiple errors related to changes in PHP. We managed to fix at least one of them related to the passing null error, but the other still exists.
We installed php-weathermap years ago, before it was integrated using the standalone instructions found here http://blog.best-practice.se/2014/07/using-php-weathermap-with-observium.html
There's an option in settings/section=integration to "enable built-in PHP Weathermap" but this is currently off, and I'm not sure if turning it on will do anything, and I can't find any documentation on docs page. I'm happy to switch to this version if that's the right answer here, but could use some info on how to make sure I don't break things due to the conflicting install.
If that one is no longer supported/working, seems like there are several independent efforts to update this to work with cacti and libreNMS plus modern PHP and I'm not sure if any of those are still portable enough to use with Observium either.
root@observium01:/opt/observium/html/weathermap# php ./map-poller.php |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Warning: Undefined array key "DEFAULT" in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1907 |
PHP Fatal error: Uncaught Error: Attempt to assign property "configline" on null in /opt/observium/html/weathermap/lib/Weathermap.class.php:1925 |
Stack trace:
|
#0 /opt/observium/html/weathermap/weathermap(228): WeatherMap->ReadConfig() |
#1 {main} |
thrown in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1925 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Warning: Undefined array key "DEFAULT" in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1907 |
PHP Fatal error: Uncaught Error: Attempt to assign property "configline" on null in /opt/observium/html/weathermap/lib/Weathermap.class.php:1925 |
Stack trace:
|
#0 /opt/observium/html/weathermap/weathermap(228): WeatherMap->ReadConfig() |
#1 {main} |
thrown in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1925 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Warning: Undefined array key "DEFAULT" in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1907 |
PHP Fatal error: Uncaught Error: Attempt to assign property "configline" on null in /opt/observium/html/weathermap/lib/Weathermap.class.php:1925 |
Stack trace:
|
#0 /opt/observium/html/weathermap/weathermap(228): WeatherMap->ReadConfig() |
#1 {main} |
thrown in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1925 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/php/Console/Getopt.php on line 313 |
PHP Warning: Undefined array key "DEFAULT" in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1907 |
PHP Fatal error: Uncaught Error: Attempt to assign property "configline" on null in /opt/observium/html/weathermap/lib/Weathermap.class.php:1925 |
Stack trace:
|
#0 /opt/observium/html/weathermap/weathermap(228): WeatherMap->ReadConfig() |
#1 {main} |
thrown in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1925 |
previous notes I found have said you don't support this anymore, which is understandable, just trying to get some direction on how best to address this if we need to do it ourselves.