Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Aug 17, 2017 8:20 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: I have http 500 error when I add map.
PostPosted: Wed Feb 22, 2017 2:04 am 
Offline

Joined: Wed Feb 22, 2017 1:52 am
Posts: 3
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/weathermap/weathermap-cacti-plugin-mgmt.php?action=addmap_picker"

Please, Can you help me?

Thanks.


Top
 Profile  
 
 Post subject: Re: I have http 500 error when I add map.
PostPosted: Thu Mar 30, 2017 9:02 am 
Offline

Joined: Fri May 13, 2016 3:33 pm
Posts: 7
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group