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

PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/zabbix/include/classes/helpers/CPagerHelper.php on line 43

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Major
    • Resolution: Unresolved
    • 6.0.7
    • None
    • Frontend (F)
    • None

    Description

      When clicking report → audit in the menu, Zabbix return a blank page.

      NGINX log:

      2022/09/12 11:40:54 [error] 3488829#0: *341117 FastCGI sent in stderr: "PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/zabbix/include/classes/helpers/CPagerHelper.php on line 43
      PHP message: PHP Warning:  array_slice() expects parameter 1 to be array, boolean given in /usr/share/zabbix/include/classes/helpers/CPagerHelper.php on line 54
      PHP message: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to CControllerAuditLogList::sanitizeDetails() must be of the type array, null given, called in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php on line 169 and defined in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php:303
      Stack trace:
      #0 /usr/share/zabbix/app/controllers/CControllerAuditLogList.php(169): CControllerAuditLogList->sanitizeDetails(NULL)
      #1 /usr/share/zabbix/include/classes/mvc/CController.php(465): CControllerAuditLogList->doAction()
      #2 /usr/share/zabbix/include/classes/core/ZBase.php(530): CController->run()
      #3 /usr/share/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest(Object(CRouter))
      #4 /usr/share/zabbix/include/config.inc.php(25): ZBase->run('default')
      #5 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')
      #6 {main}
        thrown in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php on line 303" while reading response header from upstream, client: IP, server: DNC_NAME, request: "GET /zabbix.php?action=auditlog.list HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "DNC_NAME", referrer: "https://DNS_NAME/zabbix.php?action=dashboard.view"
      2022/09/12 11:40:56 [error] 3488829#0: *340176 FastCGI sent in stderr: "PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/zabbix/include/classes/helpers/CPagerHelper.php on line 43
      PHP message: PHP Warning:  array_slice() expects parameter 1 to be array, boolean given in /usr/share/zabbix/include/classes/helpers/CPagerHelper.php on line 54
      PHP message: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to CControllerAuditLogList::sanitizeDetails() must be of the type array, null given, called in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php on line 169 and defined in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php:303
      Stack trace:
      #0 /usr/share/zabbix/app/controllers/CControllerAuditLogList.php(169): CControllerAuditLogList->sanitizeDetails(NULL)
      #1 /usr/share/zabbix/include/classes/mvc/CController.php(465): CControllerAuditLogList->doAction()
      #2 /usr/share/zabbix/include/classes/core/ZBase.php(530): CController->run()
      #3 /usr/share/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest(Object(CRouter))
      #4 /usr/share/zabbix/include/config.inc.php(25): ZBase->run('default')
      #5 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')
      #6 {main}
        thrown in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php on line 303" while reading response header from upstream, client: IP, server: DNC_NAME, request: "GET /zabbix.php?action=auditlog.list HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "DNC_NAME", referrer: "https://DNS_NAME/zabbix.php?action=dashboard.view" 

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            avolodin Aleksey Volodin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: