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

Errors on page when linking templates

XMLWordPrintable

    • Team B

      1. Create two templates T1 and T2;
      2. create a host H1 and add host to both templates;
      3. go to T2 and try to link T1;
      4. obviously it will not be possible, but additionally to normal error message, we can also see errors on pages:

      array_flip(): Can only flip STRING and INTEGER values! [templates.php:272 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->update() -> CTemplate->validateUpdate() -> CHostBase->checkTemplatesLinks() -> CHostBase->checkDoubleLinkageNew() -> DB::select() -> DB::makeSql() -> DB::createSelectQueryParts() -> DB::applyQueryFilterOptions() -> dbConditionId() -> dbConditionInt() -> array_flip() -> CConfigFile->{closure}() in include\db.inc.php:631]
      Undefined index:  [templates.php:272 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->update() -> CTemplate->validateUpdate() -> CHostBase->checkTemplatesLinks() -> CHostBase->checkDoubleLinkageNew() -> CConfigFile->{closure}() in include\classes\api\services\CHostBase.php:523]
      

            zabbix.dev Zabbix Development Team
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: