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
I am taking error when remove item from Threshold Management
Moderators: Developers, Moderators
I am taking error when remove item from Threshold Management
- Attachments
-
- error1.png (221.49 KiB) Viewed 4597 times
Re: I am taking error when remove item from Threshold Manage
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))
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))
Who is online
Users browsing this forum: No registered users and 2 guests