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

Broken img link in the accurate graphs, transfer graphs, hystorical graphs pages

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Billing, Web Interface
    • Observium 0.14.8.5799 (stable)

    Description

      Hi

      I have recently added billing functionality by enabling the following:
      config.php
      $config['enable_billing'] = 1;
      cron.d/observium
      */5 * * * * observium /opt/observium/poll-billing.php >> /dev/null 2>&1
      01 * * * * observium /opt/observium/billing-calculate.php >> /dev/null 2>&1

      I have created couple bills however not all Jpgraps are displayed (see attached photo examples)

      I have seen the exact issue i ve got in OBSERVIUM-358 issue

      when using debug=1 i ve got following output:

      > $vars/opt/observium/includes/common.inc.php:156SELECT * FROM `entity_permissions` WHERE `user_id` = '17'
      string(57)
      /opt/observium/includes/common.inc.php:156SELECT `value` FROM `users_prefs` WHERE `user_id` = '17' AND `pref` = 'atom_key'
      string(80)
      /opt/observium/includes/common.inc.php:156SELECT * from `bills` WHERE `bill_id`= '2' LIMIT 1
      string(50)
      /opt/observium/includes/common.inc.php:156SELECT count(`delta`) FROM `bill_data` WHERE `bill_id` = '2' AND `timestamp` >= FROM_UNIXTIME( '1409526000' ) AND `timestamp` <= FROM_UNIXTIME( '1412117999?debug=1' )
      string(166)
      /opt/observium/includes/common.inc.php:156SELECT *, UNIX_TIMESTAMP(timestamp) AS formatted_date FROM bill_data WHERE bill_id = '2' AND `timestamp` >= FROM_UNIXTIME( '1409526000' ) AND `timestamp` <= FROM_UNIXTIME( '1412117999?debug=1' ) ORDER BY timestamp ASC
      string(217)
      JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0)

      This affects Accurate, Transfer and Historical graphs
      only Quickgraphs are being displayed correctly.

      See attached photos.
      Kind regards

      Attachments

        1. Accurate.png
          Accurate.png
          75 kB
        2. Historical.png
          Historical.png
          39 kB
        3. Transfer.png
          Transfer.png
          76 kB

        Issue Links

          Activity

            [OBS-1002] Broken img link in the accurate graphs, transfer graphs, hystorical graphs pages

            Long since fixed.

            adama Adam Armstrong added a comment - Long since fixed.

            Make sure you are running JpGraph 3.07 and not 3.5.0.

            kentbjoh Kent Johannessen added a comment - Make sure you are running JpGraph 3.07 and not 3.5.0.

            There seems to be no data in the database. you'll get a zero size if you don't have any data.

            These graphs definitely work in the latest version.

            adama Adam Armstrong added a comment - There seems to be no data in the database. you'll get a zero size if you don't have any data. These graphs definitely work in the latest version.
            vostron-tom Tom added a comment -

            Hi Adam

            output from &debug=1

            > $vars/opt/observium/includes/common.inc.php:156SELECT * FROM `entity_permissions` WHERE `user_id` = '17'
            string(57)
            /opt/observium/includes/common.inc.php:156SELECT `value` FROM `users_prefs` WHERE `user_id` = '17' AND `pref` = 'atom_key'
            string(80)
            /opt/observium/includes/common.inc.php:156SELECT DISTINCT UNIX_TIMESTAMP(timestamp) as timestamp, SUM(delta) as traf_total, SUM(in_delta) as traf_in, SUM(out_delta) as traf_out FROM bill_data WHERE `bill_id` = '2' AND `timestamp` >= FROM_UNIXTIME('1409526000') AND `timestamp` <= FROM_UNIXTIME('1412117999') GROUP BY DATE(timestamp) ORDER BY timestamp ASC
            string(313)
            JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0)

            vostron-tom Tom added a comment - Hi Adam output from &debug=1 > $vars/opt/observium/includes/common.inc.php:156SELECT * FROM `entity_permissions` WHERE `user_id` = '17' string(57) /opt/observium/includes/common.inc.php:156SELECT `value` FROM `users_prefs` WHERE `user_id` = '17' AND `pref` = 'atom_key' string(80) /opt/observium/includes/common.inc.php:156SELECT DISTINCT UNIX_TIMESTAMP(timestamp) as timestamp, SUM(delta) as traf_total, SUM(in_delta) as traf_in, SUM(out_delta) as traf_out FROM bill_data WHERE `bill_id` = '2' AND `timestamp` >= FROM_UNIXTIME('1409526000') AND `timestamp` <= FROM_UNIXTIME('1412117999') GROUP BY DATE(timestamp) ORDER BY timestamp ASC string(313) JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0)

            You need to run debug with &debug=1, not ?debug=1

            adama Adam Armstrong added a comment - You need to run debug with &debug=1, not ?debug=1

            People

              adama Adam Armstrong
              vostron-tom Tom
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: