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

Template update with delete missing fails on PHP

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 6.0.18, 6.4.3, 7.0.0alpha1
    • Frontend (F)
    • None
    • Oracle Linux 8/LTS 6.0 upgraded from LTS 3.0

      Steps to reproduce:

      1. upgrade from old 3.0
      2. try to import fresh template from git.zabbix.com, like 'Zabbix server health' with 'Delete missing' set.

      Result:

      [Wed Jun 07 08:08:24.910938 2023] [php:error] [pid 2980640] [client x.x.x.x:60768] PHP Fatal error:  Uncaught TypeError: CControllerPopupImportCompare::objectToRows(): Argument #4 ($id) must be of type string, null given, called in /usr/share/zabbix/app/controllers/CControllerPopupImportCompare.php on line 452 and defined in /usr/share/zabbix/app/controllers/CControllerPopupImportCompare.php:323\nStack trace:\n#0 /usr/share/zabbix/app/controllers/CControllerPopupImportCompare.php(452): CControllerPopupImportCompare->objectToRows()\n#1 /usr/share/zabbix/app/controllers/CControllerPopupImportCompare.php(146): CControllerPopupImportCompare->blocksToDiff()\n#2 /usr/share/zabbix/include/classes/mvc/CController.php(472): CControllerPopupImportCompare->doAction()\n#3 /usr/share/zabbix/include/classes/core/ZBase.php(542): CController->run()\n#4 /usr/share/zabbix/include/classes/core/ZBase.php(222): ZBase->processRequest()\n#5 /usr/share/zabbix/include/config.inc.php(25): ZBase->run()\n#6 /usr/share/zabbix/zabbix.php(22): require_once('...')\n#7 {main}\n  thrown in /usr/share/zabbix/app/controllers/CControllerPopupImportCompare.php on line 323, referer: 
      
      

      Expected:
      Template imported without error.

            zabbix.dev Zabbix Development Team
            edgar.akhmetshin Edgar Akhmetshin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: