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

Map view does not work with PHP8

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.2.6
    • Frontend (F)
    • Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021)

      Steps to reproduce:

      1. Install PHP 8 (8.0.5)
      2. Go to monitoring -> maps

      Result:

      Httpd error log reads:

      PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /usr/share/webapps/zabbix/include/classes/macros/CMacrosResolver.php:2118

      Stack trace:

      #0 /usr/share/webapps/zabbix/include/classes/macros/CMacrosResolver.php(2118): array_merge(label: Array, urls: Array)

      #1 [internal function]: CMacrosResolver->{closure}(Array)

      #2 /usr/share/webapps/zabbix/include/classes/macros/CMacrosResolver.php(2119): array_map(Object(Closure), Array)

      #3 /usr/share/webapps/zabbix/include/classes/macros/CMacrosResolverHelper.php(674): CMacrosResolver->resolveMacrosInMapElements(Array, Array)

      #4 /usr/share/webapps/zabbix/include/classes/helpers/CMapHelper.php(103): CMacrosResolverHelper::resolveMacrosInMapElements(Array, Array)

      #5 /usr/share/webapps/zabbix/include/classes/screens/CScreenMap.php(36): CMapHelper::get('3', Array)

      #6 /usr/share/webapps/zabbix/app/views/monitoring.map.view.php(91): CScreenMap->get()

      #7 /usr/share/webapps/zabbix/include/classes/mvc/CView.php(122): include('/usr/share/weba...')

      #8 /usr/share/webapps/zabbix/include/classes/core/ZBase.php(618): CView->getOutput()

      #9 /usr/share/webapps/zabbix/include/classes/core/ZBase.php(547): ZBase->processResponseFinal(Object(CRouter), Object(CControllerMapView))

      #10 /usr/share/webapps/zabbix/include/classes/core/ZBase.php(211): ZBase->processRequest(Object(CRouter))

      #11 /usr/share/webapps/zabbix/include/config.inc.php(25): ZBase->run('default')

      #12 /usr/share/webapps/zabbix/zabbix.php(22): require_once('/usr/share/weba...')\n#13 {main}

      {{ thrown in /usr/share/webapps/zabbix/include/classes/macros/CMacrosResolver.php on line 2118}}

            zabbix.dev Zabbix Development Team
            bu876 michal svoboda
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: