Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
to the very top of the weathermap-cacti-plugin.php right after the <?php statement ?
It's not best practive and makes it unsafe, but it's an issue with the external overlib javascript library which makes extensive use of the eval function and needs a rewrite ...
Hi phalek, i have reverted back to 1.2.8, in a few days when I have the new server set up, i'll install 1.2.9 again to test this.
Thanks
to the very top of the weathermap-cacti-plugin.php right after the <?php statement ?
It's not best practive and makes it unsafe, but it's an issue with the external overlib javascript library which makes extensive use of the eval function and needs a rewrite ...
Oups doing so give a :
Sorry, we could not process your last action.
Error:
500 Internal Server Error
Reason:
The response to the last action was unexpected.
Having multiple map, I'm getting an error when I try to view it:
I can view the thumbnail, but when I try to go into one map it's giving me this error.
And always try to display the first map, even if i select the second one (on the map selector). But then if i select the second map and click go it give me the second one.
13/02/2020 15:35:53 - CMDPHP SQL Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[375]:db_fetch_assoc(), /lib/database.php[473]:db_fetch_assoc_prepared(), /lib/database.php[487]:db_execute_prepared())
13/02/2020 15:35:53 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'er_id='1' and user_auth_realm.realm_id='111'' at line 1
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[331]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 331
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[331]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type bool in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 331
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[330]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 330
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[330]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type bool in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 330
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[329]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 329
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[329]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type bool in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 329
13/02/2020 15:35:53 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[325]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP WARNING in Plugin 'weathermap': sizeof(): Parameter must be an array or an object that implements Countable in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 325
13/02/2020 15:35:53 - CMDPHP SQL Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[263]:weathermap_singleview(), /plugins/weathermap/weathermap-cacti-plugin.php[322]:db_fetch_assoc(), /lib/database.php[473]:db_fetch_assoc_prepared(), /lib/database.php[487]:db_execute_prepared())
13/02/2020 15:35:53 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[255]:weathermap_translate_id(), /plugins/weathermap/weathermap-cacti-plugin.php[679]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 679
13/02/2020 15:35:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[255]:weathermap_translate_id(), /plugins/weathermap/weathermap-cacti-plugin.php[679]:CactiErrorHandler())
13/02/2020 15:35:53 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined offset: 0 in file: /usr/share/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 679
The overlib/hover does not work in chrome since upgrading cacti from 1.2.7 to 1.2.9. When using 1.2.7 cacti you had to hit f5/refresh for the hover to work but at least it worked. I cant get it to work in chrome with 1.2.9
cd /usr/share/cacti/plugins
sudo git clone https://github.com/thurban/plugin_weathermap/tree/develop
sudo mv plugin_weathermap weathermap
cd weathermap
sudo chown apache:apache output/ configs/
# In Cacti web UI, install and enable the plugin.
Suggested change: Disable the stand-alone editor by setting
at the top of editor.php. This will prevent un-authenticated users from accessing the editor. Without this change, anyone with access to the server can just go to http://cacti.example.com/cacti/plugins/ ... editor.php and make changes.
at the top of editor.php. This will prevent un-authenticated users from accessing the editor. Without this change, anyone with access to the server can just go to http://cacti.example.com/cacti/plugins/ ... editor.php and make changes.
Rno wrote: ↑Tue Mar 03, 2020 5:28 am
Anyone has a fix for the OVERLIBGRAPH function who is still not working ?
My 2 cents:
Add 'unsafe-eval' in lib/html.php and in include/global.php. Maybe changing html.php is enough.
The graphs are placed far from the cursor but at least are there.
Don't forget that this is quick and dirty/unsafe hack.
Rno wrote: ↑Tue Mar 03, 2020 5:28 am
Anyone has a fix for the OVERLIBGRAPH function who is still not working ?
My 2 cents:
Add 'unsafe-eval' in lib/html.php and in include/global.php. Maybe changing html.php is enough.
The graphs are placed far from the cursor but at least are there.
Don't forget that this is quick and dirty/unsafe hack.