Hello,
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: http://10.1.1.2/cacti/plugins/weatherma ... map_picker"
Please, Can you help me?
Thanks.
I have http 500 error when I add map.
Moderators: Developers, Moderators
Re: I have http 500 error when I add map.
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.
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.
Who is online
Users browsing this forum: No registered users and 5 guests