[ZBX-21334] audit menu error 500 after update to 6.0.5 Created: 2022 Jul 13  Updated: 2022 Jul 28  Resolved: 2022 Jul 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.5
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: ignace frometon Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: frontend
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Update zabbix version from 5.2.5 to 6.0.5 following this guide https://bestmonitoringtools.com/upgrade-zabbix-to-the-latest-version/ without importing old history tables
  2. in the frontend, log with super admin account
  3. clic on Reports > Audit
  4. a blank page is displayed
  5. in /var/log/apache2/error.log :
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\nStack trace:\n#0 /usr/share/zabbix/app/controllers/CControllerAuditLogList.php(169): CControllerAuditLogList->sanitizeDetails(NULL)\n#1 /usr/share/zabbix/include/classes/mvc/CController.php(465): CControllerAuditLogList->doAction()\n#2 /usr/share/zabbix/include/classes/core/ZBase.php(526): CController->run()\n#3 /usr/share/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest(Object(CRouter))\n#4 /usr/share/zabbix/include/config.inc.php(25): ZBase->run('default')\n#5 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')\n#6 {main}\n thrown in /usr/share/zabbix/app/controllers/CControllerAuditLogList.php on line 303

 



 Comments   
Comment by Vladimir Stepanov (Inactive) [ 2022 Jul 14 ]

Hi!
Thank you for getting in contact with us. . For us to further investigate this issue, please provide the following additional information:

  1. PHP version
  2. OS version

Regards,

Vladimir

Comment by ignace frometon [ 2022 Jul 19 ]

Hello Vladimir

  1. PHP Version : 7.2.24
  2. OS version : Ubuntu 18.04.5 LTS (Kernel: Linux 4.15.0-187-generic)

 

Regards,

Ignace

Comment by ignace frometon [ 2022 Jul 19 ]

UPDATE :

a new user with "Super admin" role can access the page.

the default "Admin" account still has an error 500

 

Regards,

Ignace

Comment by Vladimir Stepanov (Inactive) [ 2022 Jul 20 ]

Could you, please, provide us a screenshot of the users' list?

Path: Administration -> Users.

Comment by John Koyle [ 2022 Jul 22 ]

I'm seeing the same issue on an upgrade from 5.0.x -> 6.0.5 on one of my two Zabbix instances.  Destination is an up to date Ubuntu 20.04 host running PHP 7.4.3.

 

The users list contains some sensitive information - can I send it to you offline?  I do not see anything out of the ordinary for the Users/Roles/Groups.

Comment by Vladimir Stepanov (Inactive) [ 2022 Jul 25 ]

Please hide sensitive information on your screenshot

Comment by John Koyle [ 2022 Jul 28 ]

So from a separate working instance I simply added the following to the URL parameters when it wasn't returning data: "&filter_resourcetype=13&filter_set=1"

 

Making the full URL look something like this:

https://your.fqdn.com/zabbix/zabbix.php?action=auditlog.list&filter_resourcetype=13&filter_set=1

and whatever issue existed has now gone.  I'm able to browse the audit log, change the filters, switch pages and return, etc.  If it's helpful on the (now closed) bug report, when the page did come up above, the time interval filter was set to 30 days.  I'm curious as to whether there were other filter criteria set from pre-upgrade related audit searches that were triggering this issue.  This may explain why only some users were affected.

Generated at Tue Nov 04 02:39:43 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.