Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.65k stars 406 forks source link

Cacti Weathermap crash #5736

Closed williamsapinto closed 6 months ago

williamsapinto commented 6 months ago

Describe the bug

My log...

2024-04-26 12:04:32 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap' 2024-04-26 12:04:32 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler()) 2024-04-26 12:04:32 - ERROR PHP ERROR in Plugin 'weathermap': Uncaught Error: Call to undefined function plugin_weathermap_numeric_version() in /var/www/html/cacti/plugins/weathermap/weathermap-cacti-plugin-editor.php:309 Stack trace: #0 {main} thrown in file: /var/www/html/cacti/plugins/weathermap/weathermap-cacti-plugin-editor.php on line: 309 2024-04-26 12:04:32 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[282]:WeatherMap->ReadConfig(), /plugins/weathermap/lib/WeatherMap.class.php[2136]:fopen(), CactiErrorHandler()) 2024-04-26 12:04:32 - ERROR PHP WARNING in Plugin 'weathermap': fopen(configs/simple.conf): Failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php on line: 2136 2024-04-26 12:04:32 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[281]:WeatherMap->construct(), /plugins/weathermap/lib/WeatherMap.class.php[372]:WeatherMap->Reset(), /plugins/weathermap/lib/WeatherMap.class.php[531]:WeatherMap->LoadPlugins(), /plugins/weathermap/lib/WeatherMap.class.php[832]:opendir(), CactiErrorHandler()) 2024-04-26 12:04:32 - ERROR PHP WARNING in Plugin 'weathermap': opendir(//var/www/html/cacti/plugins/weathermap/lib/lib/post): Failed to open directory: No such file or directory in file: /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php on line: 832 2024-04-26 12:04:32 - CMDPHP PHP ERROR Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[281]:WeatherMap->construct(), /plugins/weathermap/lib/WeatherMap.class.php[372]:WeatherMap->Reset(), /plugins/weathermap/lib/WeatherMap.class.php[531]:WeatherMap->LoadPlugins(), /plugins/weathermap/lib/WeatherMap.class.php[830]:substr(), CactiErrorHandler()) 2024-04-26 12:04:32 - ERROR PHP DEPRECATED in Plugin 'weathermap': substr(): Passing null to parameter #1 ($string) of type string is deprecated in file: /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php on line: 830 2024-04-26 12:04:32 - CMDPHP PHP ERROR Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[281]:WeatherMap->__construct(), /plugins/weathermap/lib/WeatherMap.class.php[372]:WeatherMap->Reset(), /plugins/weathermap/lib/WeatherMap.class.php[531]:WeatherMap->LoadPlugins(), /plugins/weathermap/lib/WeatherMap.class.php[830]:strrpos(), CactiErrorHandler())

Screenshots

image

TheWitness commented 6 months ago

Can you please open this same bug in the WeatherMap section?

williamsapinto commented 6 months ago

The cacti disable the plugin and the screen stay blank. After this, i have to access the main page. thx for help.

TheWitness commented 6 months ago

It's fixed in WeatherMap develop though I did not log a bug # for it.

williamsapinto commented 6 months ago

The page cant open. Cacti disable waethermap plugin.

2024-04-26 12:04:32 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'

TheWitness commented 6 months ago

Use the latest develop.

williamsapinto commented 6 months ago

Hello, its a latest version.

image

TheWitness commented 6 months ago

Pull it again. You should see a message. Post what the new WARNING message is.