[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: 
 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! 
 Regards, Vladimir  | 
| Comment by ignace frometon [ 2022 Jul 19 ] | 
| 
             Hello Vladimir 
 
 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.  |