Closed VictorJ76 closed 6 years ago
Hi, mysql_real_escape_string is not work in php7. Please verify my modify weathermap 0.98 (attached) - cacti 0.8.8h.
Best regards Jacek
Thanks, that fix the issue, but I still have one to display my map as you can see to the screenshot.
in my logs , it tells me :
11/22/2017 11:05:30 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Initial: memory_get_usage() says 5.5MBytes used. Limit is 512M
11/22/2017 11:05:30 AM - WEATHERMAP: Poller[0] WARNING: Output directory (/usr/share/cacti/site/plugins/weathermap/output) isn't writable (tried to create '/usr/share/cacti/site/plugins/weathermap/output/weathermap.permissions.test'). No maps created. You probably need to make it writable by the poller process (like you did with the RRA directory) [WMPOLL06]
11/22/2017 11:05:30 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Final: memory_get_usage() says 5.5MBytes used. Limit is 512M
11/22/2017 11:05:30 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.98 run complete - Wed, 22 Nov 17 11:05:30 +0100: 0 maps were run in 0 seconds with 1 warnings. (Permissions problem prevents any maps running WMPOLL06)
But I checked. I have the same right than on rra repertory.
fixed, it was like the logs says, a permission problems.
Thank you, it works for me!
Hi, I Use cacti 0.8.8f with phpweathermap 0.98. I want to display my map and I have to add it via the page below :
`http://IP/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php
Everything works great until I add my map and Iand to this blank page `http://IP/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php?action=addmap&file=simple.conf
In my logs I have this :
PHP Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php:837\nStack trace:\n#0 /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php(274): add_config('sup_hno.conf')\n#1 {main}\n thrown in /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php on line 837, referer: http://IP/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php?action=addmap_picker
On my web browser, I get a 500 error.