Bug Report: Setting page_refresh in config.php breaks WebUI gear icon "Refresh In" menu item

When we set any value for $config[‘page_refresh’] in config.php, the WebUI gear icon menu item “Refresh In” breaks and no longer displays the refresh countdown. If we remove page_refresh from config.php then it works just fine.

  • Steps to reproduce an issue.
    I get the same results regardless of web browser (tried Chrome and Firefox under windows, Firefox under Linux).
  1. Edit config.php and add something like the following and save:
    $config[‘page_refresh’] = “900”;
  2. Navigate to any graph such as an interface traffic or CPU utilization graph and click the gear icon in the upper right corner of the page. The “Refresh In” menu item is now mostly gone or covered up. You cant see the refresh countdown, but you can still mouseover and activate “Pause”. This is what it looks like:
  3. The issue can be corrected by removing or commenting out the page_refresh config from config.php and saving. The Refresh In menu now displays correctly:
  • The output of ./validate.php

    [email protected]:/opt/librenms# ./validate.php

    Component Version
    LibreNMS 1.69
    DB Schema 2020_10_21_124101_allow_nullable_ospf_columns (188)
    PHP 7.2.24-0ubuntu0.18.04.7
    Python 3.6.9
    MySQL 10.1.47-MariaDB-0ubuntu0.18.04.1
    RRDTool 1.7.0
    SNMP NET-SNMP 5.7.3

    [OK] Composer Version: 1.10.17
    [OK] Dependencies up-to-date.
    [OK] Database connection successful
    [OK] Database schema correct
    [WARN] PHP version 7.3 is the minimum supported version as of November, 2020. We recommend you update PHP to a supported version (7.4 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.