[ZBX-6096] Undefined offset and Invalid argument supplied in maps.inc.php Created: 2013 Jan 10  Updated: 2017 May 30  Resolved: 2013 Jan 10

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

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: maps, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

trunk rev 32641.



 Description   

Undefined offset: 10047 [maps.inc.php:1165]
Invalid argument supplied for foreach() [maps.inc.php:1165]

whenever i have one of some specific hosts included in a map, that map breaks in monitoring (but not in configuration).

this might be related to a trigger that uses items from several hosts, but i couldn't reproduce by creating such a config from the scratch

regression, broken by :

------------------------------------------------------------------------
r32261 | pavels | 2012-12-20 15:15:35 +0200 (Thu, 20 Dec 2012) | 10 lines

A......... ZBXNEXT-1491 implemented property array support for all get methods
A......... ZBXNEXT-1491 implemented the map.get selectUrls parameter
A......... ZBXNEXT-1491 implemented the itemprototype.get selectDiscoveryRule parameter
A......... ZBXNEXT-1491 fixed alert.get hostids and groupids parameters
A......... ZBXNEXT-1491 fixed action.get selectConditions and selectOperations returning hashes instead of arrays
A......... ZBXNEXT-1491 fixed graph.get selectGraphItems returning a hash instead of an array
A......... ZBXNEXT-1491 fixed item.get selectHosts returning double template objects
A......... ZBXNEXT-1491 fixed itemprototype.get selectItems not returning web items
A......... ZBXNEXT-1491 fixed template.get selectTemplates and selectHosts not working with count
A......... ZBXNEXT-1491 fixed script.get subselects not working when not requesting the groupid and host_access properties



 Comments   
Comment by richlv [ 2013 Jan 10 ]

(1) in another map i get different errors :
Undefined index: groups [maps.inc.php:1088]
Invalid argument supplied for foreach() [maps.inc.php:1088]

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jan 10 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-6096.

To reproduce the bug you need to add a host that contains triggers belonging to multiple hosts to a map. The other host must not be present on the map. To reproduce (1) you'll need to add a host group that contains a host belonging to multiple host groups.

Comment by Eduards Samersovs (Inactive) [ 2013 Jan 14 ]

Tested!

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jan 14 ]

Fixed in 2.1.0 r32718.

CLOSED.

Generated at Mon Jun 09 07:31:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.