Cacti / plugin_webseer

Cacti Web Services Monitoring Plugin
GNU General Public License v2.0
8 stars 9 forks source link

Undefined variable 'key' error in webseer_proxies.php #26

Closed anarkia1976 closed 6 years ago

anarkia1976 commented 6 years ago

When i'm switching to proxy tab i have these errros into the cacti log: 2018/05/02 11:50:26 - ERROR PHP NOTICE in Plugin 'webseer': Undefined variable: key in file: /usr/share/cacti/plugins/webseer/webseer_proxies.php on line: 409 2018/05/02 11:50:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/webseer/webseer_proxies.php: 51 proxies)(/plugins/webseer/webseer_proxies.php: 313 webseer_filter)(/plugins/webseer/webseer_proxies.php: 409 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace) 2018/05/02 11:51:05 - ERROR PHP NOTICE in Plugin 'webseer': Undefined variable: key in file: /usr/share/cacti/plugins/webseer/webseer_proxies.php on line: 409 2018/05/02 11:51:05 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/webseer/webseer_proxies.php: 51 proxies)(/plugins/webseer/webseer_proxies.php: 313 webseer_filter)(/plugins/webseer/webseer_proxies.php: 409 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace) 2018/05/02 11:52:58 - ERROR PHP NOTICE in Plugin 'webseer': Undefined variable: key in file: /usr/share/cacti/plugins/webseer/webseer_proxies.php on line: 409 2018/05/02 11:52:58 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/webseer/webseer_proxies.php: 51 proxies)(/plugins/webseer/webseer_proxies.php: 313 webseer_filter)(/plugins/webseer/webseer_proxies.php: 409 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)

Thanks a lot.

netniV commented 6 years ago

I will take a look shortly.

netniV commented 6 years ago

So there appears to be a variable $key, and I have no idea where it's come from because its not set in the code anywhere that I can see and there is only one history of the file (which I'm about to check) so I'd be surprised if it was removed.

This is going to take slightly longer than I thought to figure out :)

netniV commented 6 years ago

Haha, I take that back, I suddenly realised what this was. Someone's copy and paste error which is now resolved in the latest development branch.

anarkia1976 commented 6 years ago

Solved, thanks a lot.