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

invalid argument to foreach when accessing a graph using url with itemids that is not an array

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.4.2, 3.0.0alpha3
    • Frontend (F)

      Suppose we access a graph using the following link:

      https://zabbix/history.php?itemids=23147
      

      This gives the following error:

      * Invalid argument supplied for foreach() [ in frontends/php/history.php:132]
      * reset() expects parameter 1 to be array, string given [history.php:158 ? CView->render() ? include() ? reset() in frontends/php/include/views/monitoring.history.php:158]
      

      Note that the correct link would be:

      https://zabbix/history.php?itemids[]=23147
      

            Unassigned Unassigned
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: