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

PHP error on import an exported template

    XMLWordPrintable

    Details

      Description

      When trying to import a xml file, the following error occur.

      Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/share/zabbix/include/import.inc.php on line 85

      This like looks like this:

      $sql = 'SELECT hostid '.
      ' FROM hosts'.
      ' WHERE host='.zbx_dbstr($data['name']).
      ' AND status IN ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONITORED.','.HOST_STATUS_TEMPLATE.')'
      ' AND '.DBin_node('hostid',get_current_nodeid(false));

      So, it seems like the secound last line is missing a . ind the end. It works after inserting this sign.

      Ps. There are missing a Component here in JIRA saying webinterface?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lauerdk Jesper Grann Laursen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: