Skip to content

When viewing graphs, automatic refresh so not always work as expected #3859

Closed
@surpadisfa

Description

@surpadisfa

Page graph.php automatic refresh does not work, once the page is loaded is not updated anymore.

I'm using Cacti 1.2.14 on a CentOS 7 (rpm package cacti-1.2.14-1.el7.noarch frpm EPEL repo).
The database is from an older Cacti 0.8.8h upgraded do 1.2.14.
There isn't any plugin loaded.

I had a look at graph.php and i saw the following code

$refresh['seconds'] = read_config_option('page_refresh');
$refresh['page']    = 'graph.php?local_graph_id=' . get_request_var('local_graph_id') . '&header=false';
$refresh['logout']  = 'false';
set_page_refresh($refresh);

As far as I can see there isn't a 'page_refresh' entry in table 'settings' and I can confirm that $refresh['seconds'] is empty when it is passed to set_page_refresh().

I tried the following change but it didn't get any better, the only difference is that $refresh['seconds'] gets a value but still the page doesn't refresh.

$refresh['seconds'] = read_user_setting('page_refresh');
$refresh['page']    = 'graph.php?local_graph_id=' . get_request_var('local_graph_id') . '&header=false';
$refresh['logout']  = 'false';
set_page_refresh($refresh);

The issue doesn't seem related to the broswer: I tried with Chrome 85, Firefox 72, Edge 44 and IE 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions