[ZBX-19080] PHP Fatal error: Uncaught TypeError: Argument 5 passed to makeTags() must be of the type array, string given Created: 2021 Mar 03  Updated: 2024 Apr 10  Resolved: 2021 May 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.29
Fix Version/s: 6.0 (plan)

Type: Problem report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Zabbix Development Team
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team B
Sprint: Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021)

 Description   

Something happened and many frontend users started to get this error:

[Wed Mar 03 11:02:13.962874 2021] [php7:error] [pid 22312] [client 10.80.90.20:38854] PHP Fatal error:  Uncaught TypeError: Argument 5 passed to makeTags() must be of the type array, string given, called in /usr/share/zabbix/include/classes/screens/CScreenProblem.php on line 927 and defined in /usr/share/zabbix/include/events.inc.php:707

Stack trace:
#0 /usr/share/zabbix/include/classes/screens/CScreenProblem.php(927): makeTags()
#1 /usr/share/zabbix/jsrpc.php(88): CScreenProblem->get()
#2 {main}
  thrown in /usr/share/zabbix/include/events.inc.php on line 707,
  referer: https://someone.com/zabbix.php?action=problem.view&page=1&filter_show=2&filter_hostids%5B%5D=49700&filter_application=&filter_name=&filter_severity=0&filter_inventory%5B0%5D%5Bfield%5D=type&filter_inventory%5B0%5D%5Bvalue%5D=&filter_evaltype=0&filter_tags%5B0%5D%5Btag%5D=&filter_tags%5B0%5D%5Boperator%5D=0&filter_tags%5B0%5D%5Bvalue%5D=&filter_show_tags=3&filter_tag_name_format=0&filter_tag_priority=&filter_set=1

[Wed Mar 03 11:02:52.295439 2021] [php7:error] [pid 27355] [client 10.80.90.20:31379] PHP Fatal error:  Uncaught TypeError: 
Argument 5 passed to makeTags() must be of the type array, string given, called in /usr/share/zabbix/include/classes/screens/CScreenProblem.php on line 927
and defined in /usr/share/zabbix/include/events.inc.php:707

Stack trace:
#0 /usr/share/zabbix/include/classes/screens/CScreenProblem.php(927): makeTags()
#1 /usr/share/zabbix/jsrpc.php(88): CScreenProblem->get()
#2 {main}
  thrown in /usr/share/zabbix/include/events.inc.php on line 707,
  referer: https://someone.com/zabbix.php?action=problem.view&page=1

(reformatted to multiple lines, for better readability)

"we get this while accessing dashboard also while accessing zabbix server graphs"

We tried to visit this URL to reset filters:

https://someone.com/zabbix.php?action=problem.view&filter_rst=1

but it looks like not helped.
But later issue disappeared, so maybe it actually helped.

Not sure how it happened, but it should not.



 Comments   
Comment by Alexander Vladishev [ 2021 May 20 ]

I cannot reproduce this issue and after code review I have no ideas how it can be reproduced.

Generated at Sat Apr 26 05:51:35 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.