Cacti / plugin_flowview

FlowView Plugin for Cacti
GNU General Public License v2.0
18 stars 10 forks source link

Disabling boost give an error in flowview #152

Closed arno-st closed 3 months ago

arno-st commented 3 months ago

Since I have a ton of problem with my output table, I decide to disable boost, (why not) then this appear in my log:

28/06/2024  15:41:05 - CMDPHP PHP ERROR WARNING Backtrace:   (/settings.php[241]:api_plugin_hook_function(),  /lib/plugins.php[161]:api_plugin_run_plugin_hook_function(),  /lib/plugins.php[282]:flowview_global_settings_update(),  /plugins/flowview/setup.php[312]:CactiErrorHandler())
--
28/06/2024 15:41:05 - ERROR PHP WARNING in  Plugin 'flowview':  foreach() argument must be of type array\|object, null given in file:  /usr/share/cacti/plugins/flowview/setup.php  on line: 312
28/06/2024 15:41:05 - CMDPHP PHP ERROR WARNING Backtrace:   (/settings.php[241]:api_plugin_hook_function(),  /lib/plugins.php[161]:api_plugin_run_plugin_hook_function(),  /lib/plugins.php[282]:flowview_global_settings_update(),  /plugins/flowview/setup.php[312]:CactiErrorHandler())
28/06/2024 15:41:05 - ERROR PHP WARNING in  Plugin 'flowview':  Undefined variable $flowview_sighup_setttings in file:  /usr/share/cacti/plugins/flowview/setup.php  on line: 312

Still cacti 1.2.27 and flowview 3.7

TheWitness commented 3 months ago

Are you sure that plugin is still enabled? This variable is defined in setup.php. It is also global. If it happened just once, you likely should have stopped flow-capture before upgrading.

TheWitness commented 3 months ago

This should be resolved now. Thanks for keeping me honest.