Console Tab Not Working

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
alokdasbd
Posts: 2
Joined: Wed Jan 10, 2018 4:44 am

Console Tab Not Working

Post by alokdasbd »

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.
Attachments
01cacti-problem.jpg
01cacti-problem.jpg (45.76 KiB) Viewed 1155 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Console Tab Not Working

Post by netniV »

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
alokdasbd
Posts: 2
Joined: Wed Jan 10, 2018 4:44 am

Re: Console Tab Not Working

Post by alokdasbd »

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.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Console Tab Not Working

Post by netniV »

Where you commented this line out, did the function read:

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);
        }
}
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.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests