Hi,
I'm a new user and installed cacti and everything is working fine but now my console tab is not working Console TAB console->new Graph, Graph management, device all the things under Console. Note that I have access Graph TAB and Everything is OK. The problem only in console tab.
When Click the Console TAB nothing shown like "You are now logged into Cacti. You can follow these basic steps to get started." and the version. Please see the attachment.
Console Tab Not Working
Moderators: Developers, Moderators
Console Tab Not Working
- Attachments
-
- 01cacti-problem.jpg (45.76 KiB) Viewed 1153 times
Re: Console Tab Not Working
Please check your web server error log and see if there are any errors being raised. It looks like something is erroring and once errored, the pages appear to stop working properly.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Console Tab Not Working
tail -f /var/log/httpd/error_log and got the [Thu Jan 11 10:08:06 2018] [error] [client 103.12.000.000] PHP Fatal error: Call to undefined function session_unregister() in /var/www/html/cacti/lib/functions.php on line 359, referer: http://X.X.X.X. I have edited funtion.php and uncommance the 359 line, restart the httpd service problem will be solved.
Re: Console Tab Not Working
Where you commented this line out, did the function read:
This is the code in 1.x version of cacti, and I just want to be sure that using version_compare is enough. If that is the same, we need to patch it to use the function defined function instead.
Code: Select all
/* kill_session_var - kills a session variable using unset() */
function kill_session_var($var_name) {
/* register_global = on: reset local settings cache so the user sees the new settings */
unset($_SESSION[$var_name]);
/* register_global = off: reset local settings cache so the user sees the new settings */
/* session_unregister is deprecated in PHP 5.3.0, unset is sufficient */
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
session_unregister($var_name);
} else {
unset($var_name);
}
}
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 3 guests