Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16522

Undefined index "type" in pie and exploded graph creation

XMLWordPrintable

    • Sprint 56 (Sep 2019), Sprint 55 (Aug 2019)
    • 0.25

      Create standard request as it is in documentation, but use pie graph instead.

      {
          "jsonrpc": "2.0",
          "method": "graph.create",
          "params": {
              "name": "graph",
              "width": 100,
              "height": 100,
              "graphtype": "2",
              "gitems": [
                  {
                      "itemid": "22828",
                      "color": "00AA00"
                  }
              ]
          },
          "auth": "038e1d7b1735c6a5436ee9eae095879e",
          "id": 1
      }
      

      And observe error:
      Undefined index: type [... → CFrontendApiWrapper->create() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CGraphGeneral->create() → CGraph->validateCreate() → CGraphGeneral->validateCreate() → CGraphGeneral->checkAxisItems() in include\classes\api\services\CGraphGeneral.php:298]

            talbergs Mārtiņš Tālbergs (Inactive)
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: