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

SNMP agent template item test form throws error

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.19
    • None
    • None

      *Steps to reproduce: *

      Database - Postgresql

      1. Open existing template item form with item type - Script
      2. Press Test, observe test form appearing, click Cancel
      3. Change item type to SNMP agent
      4. Click on Test
      NB! This error does not appear every time the steps are repeated

      Expected result:
      The item test form appears

      Actual result:

      in logs:

      foreach() argument must be of type array|object, string given [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupItemTestEdit->doAction() -> CConfigFile->{closure}() in app/controllers/CControllerPopupItemTestEdit.php:385]
      TypeError: Cannot access offset of type string on string in /home/zabbix/workspace/ZBX-25290-7.0/ui/app/views/popup.itemtestedit.view.php:130
      Stack trace:
      #0 /home/zabbix/workspace/ZBX-25290-7.0/ui/include/classes/mvc/CView.php(128): include()
      #1 /home/zabbix/workspace/ZBX-25290-7.0/ui/include/classes/core/ZBase.php(717): CView->getOutput()
      #2 /home/zabbix/workspace/ZBX-25290-7.0/ui/include/classes/core/ZBase.php(641): ZBase->processResponseFinal()
      #3 /home/zabbix/workspace/ZBX-25290-7.0/ui/include/classes/core/ZBase.php(228): ZBase->processRequest()
      #4 /home/zabbix/workspace/ZBX-25290-7.0/ui/include/config.inc.php(20): ZBase->run()
      #5 /home/zabbix/workspace/ZBX-25290-7.0/ui/zabbix.php(17): require_once('...')
      #6 {main} 
      

            zabbix.support Zabbix Support Team
            agrinhofa Anna Grinhofa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: