Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2063

Custom colors for collectd meta graphs not working with PHP 7

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • Community Edition
    • Web Interface
    • Ubuntu 16.04

    Description

      When using PHP 7, in custom collectd meta graphs, colour definitions are not parsed correctly in class CollectdColor and result in all the colors being black ('000000'). This seems to be caused by a change of parsing hex strings with PHP 7. Strings of hexadecimal numbers are no longer considered numeric as explained described in
      http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.strings.hex

      The attached patch uses the recommended parsing via filter_var.

      Attachments

        Activity

          [OBS-2063] Custom colors for collectd meta graphs not working with PHP 7
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          tb Tobias Böhm created issue -

          People

            adama Adam Armstrong
            tb Tobias Böhm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: