Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jul 25, 2017 1:37 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: I am taking error when remove item from Threshold Management
PostPosted: Thu Mar 16, 2017 3:43 am 
Offline

Joined: Wed Feb 22, 2017 1:52 am
Posts: 3
Hi everbody,

Help me please.

I am taking http 500 error when I want remove item from Threshold Management screen.

I see two error message;

in /var/log/apache2/access.log

1.1.1.2 - - [16/Mar/2017:11:16:53 +0300] "POST /cacti/plugins/thold/listthold.php HTTP/1.1" 500 364 "http://1.1.1.2/cacti/plugins/thold/listthold.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"

in /var/log/apache2/error.log

[Thu Mar 16 11:16:53.962334 2017] [:error] [pid 574] [client 1.1.1.1:52501] PHP Fatal error: Uncaught Error: Call to undefined function ereg() in /usr/share/cacti/site/plugins/thold/listthold.php:50\nStack trace:\n#0 /usr/share/cacti/site/plugins/thold/listthold.php(39): do_thold()\n#1 {main}\n thrown in /usr/share/cacti/site/plugins/thold/listthold.php on line 50, referer: http://1.1.1.2/cacti/plugins/thold/listthold.php


Attachments:
error1.png
error1.png [ 221.49 KiB | Viewed 264 times ]
Top
 Profile  
 
 Post subject: Re: I am taking error when remove item from Threshold Manage
PostPosted: Thu Mar 16, 2017 5:27 am 
Offline

Joined: Wed Feb 22, 2017 1:52 am
Posts: 3
I have been solved this problem.

My php version 7 and PHP7 has been changed ereg() function with preg_match().


edit the listthold.php file and change below line.

if (preg_match("/^chk_(.*)$/", $var, $matches)) istead of if (ereg("^chk_(.*)$", $var, $matches))


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 3 guests


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