howardjones / network-weathermap

Network Weathermap draws diagrams from data
http://www.network-weathermap.com/
MIT License
425 stars 95 forks source link

Undefined index: host_id in file EditorDataPicker.php on line: 185 #210

Open jdcoats opened 5 years ago

jdcoats commented 5 years ago

2019/03/08  15:19:06 - CMDPHP PHP ERROR NOTICE Backtrace:   (/plugins/weathermap/cacti-pick.php[45]:Weathermap\Integrations\Cacti\EditorDataPicker->main(),   /plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php[59]:Weathermap\UI\UIBase->dispatchRequest(),   /plugins/weathermap/lib/Weathermap/UI/UIBase.php[140]:Weathermap\Integrations\Cacti\EditorDataPicker->handleLinkStep2(),   /plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php[185]:CactiErrorHandler())
--
2019/03/08 15:19:06 - ERROR PHP NOTICE in  Plugin 'weathermap':  Undefined index: host_id in file:  /var/www/localhost/htdocs/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php   on line: 185
2019/03/08 15:19:04 - CMDPHP PHP ERROR WARNING Backtrace:   (/poller.php[676]:process_poller_output(),  /lib/poller.php[532]:api_plugin_hook_function(),  /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(),  /lib/plugins.php[221]:weathermap_poller_output(),  /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[96]:CactiErrorHandler())
2019/03/08 15:19:04 - ERROR PHP WARNING in  Plugin 'weathermap': A  non-numeric value encountered in file:  /var/www/localhost/htdocs/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php   on line: 96
2019/03/08 15:19:04 - CMDPHP PHP ERROR WARNING Backtrace:   (/poller.php[676]:process_poller_output(),  /lib/poller.php[532]:api_plugin_hook_function(),  /lib/plugins.php[114]:api_plugin_run_plugin_hook_function(),  /lib/plugins.php[221]:weathermap_poller_output(),  /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[96]:CactiErrorHandler())
2019/03/08 15:19:04 - ERROR PHP WARNING in  Plugin 'weathermap': A  non-numeric value encountered in file:  /var/www/localhost/htdocs/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php   on line: 96
2019/03/08 15:18:46 - CMDPHP PHP ERROR NOTICE Backtrace:   (/plugins/weathermap/cacti-pick.php[45]:Weathermap\Integrations\Cacti\EditorDataPicker->main(),   /plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php[59]:Weathermap\UI\UIBase->dispatchRequest(),   /plugins/weathermap/lib/Weathermap/UI/UIBase.php[140]:Weathermap\Integrations\Cacti\EditorDataPicker->handleLinkStep2(),   /plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php[185]:CactiErrorHandler())
2019/03/08 15:18:46 - ERROR PHP NOTICE in  Plugin 'weathermap':  Undefined index: host_id in file:  /var/www/localhost/htdocs/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/EditorDataPicker.php   on line: 185
howardjones commented 5 years ago

Want to try for some context? :-)

Which Cacti version? Is it the latest master weathermap? (I can see it is not 0.98) Do you get this every time?

jdcoats commented 5 years ago

sorry, Cacti is 1.2.2 dev most recent commits and the same with weathermap. This happens when editing a weathermap link and selecting any device and interface etc.