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

Saving action with "link to templates" operation fails when editing

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.3.3
    • None
    • None

      How to repeat:

      • create new action, name it
      • add one simple action condition (i.e. IP)
      • add one operation "link to template", select one template
      • save the action
      • edit the action
      • click "edit" on "operations" -> "link to templates"
      • click "update"
      • click "save"

      observe error trace:

      Undefined index: actionid [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /home/andrew/zabbix/dev/trunk/frontends/php/api/classes/CAction.php:933]
      Undefined index: [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /home/andrew/zabbix/dev/trunk/frontends/php/api/classes/CAction.php:933]
      Undefined index: opconditions [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /home/andrew/zabbix/dev/trunk/frontends/php/api/classes/CAction.php:1169]
      Argument 2 passed to zbx_array_diff() must be of the type array, null given, called in /home/andrew/zabbix/dev/trunk/frontends/php/api/classes/CAction.php on line 1169 and defined [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() in /home/andrew/zabbix/dev/trunk/frontends/php/include/func.inc.php:864]
      array_diff(): Argument #2 is not an array [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() ? array_diff() in /home/andrew/zabbix/dev/trunk/frontends/php/include/func.inc.php:868]
      array_diff(): Argument #1 is not an array [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() ? array_diff() in /home/andrew/zabbix/dev/trunk/frontends/php/include/func.inc.php:871]
      Invalid argument supplied for foreach() [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() in /home/andrew/zabbix/dev/trunk/frontends/php/include/func.inc.php:892]
      Error in query [INSERT INTO optemplate (templateid,operationid,optemplateid) VALUES ('10106','11','13')] [Duplicate entry '11-10106' for key 'optemplate_1']
      SQL statement execution has failed "INSERT INTO optemplate (templateid,operationid,optemplateid) VALUES ('10106','11','13')". [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? DB::insert() ? DB::exception() in /home/andrew/zabbix/dev/trunk/frontends/php/include/classes/db/DB.php:441]

            Unassigned Unassigned
            andrewtch Andrejs Čirkovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: