I have http 500 error when I add map.

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Posts: 3
Joined: Wed Feb 22, 2017 1:52 am

I have http 500 error when I add map.

#1 Post by Radyahila » Wed Feb 22, 2017 2:04 am


I have error message "http 500 error" when I add map in screen of "Available Weathermap Configuration Files".
And I saw below error message in var/log/apache2/error.log.

"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('testmap.co...')\n#1 {main}\n thrown in /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php on line 837, referer: ... map_picker"

Please, Can you help me?


Posts: 7
Joined: Fri May 13, 2016 3:33 pm

Re: I have http 500 error when I add map.

#2 Post by labtec6 » Thu Mar 30, 2017 9:02 am

You may have found the resolution, but the answer is to use PHP5.6, not PHP7.0.

Basically do this:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 php5.6-xml
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php5.6
(Got this from http://askubuntu.com/questions/761713/h ... untu-16-04)

That should resolve that issue.

Post Reply