[ZBX-10399] Latest data PHP warnings Created: 2016 Feb 17  Updated: 2017 May 30  Resolved: 2016 Feb 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.0
Fix Version/s: 3.0.1rc1, 3.2.0alpha1

Type: Incident report Priority: Critical
Reporter: Frank Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: valuemapping
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04, MariaDB 10.1, repo.zabbix.com packages



 Description   

After upgrading from 2.4 to 3.0 we are now getting PHP warnings at the bottom of the latest.php page:

Undefined index: mappings [latest.php:485 ? formatHistoryValue() ? applyValueMap() ? getMappedValue() in include/valuemap.inc.php:47]

Invalid argument supplied for foreach() [latest.php:485 ? formatHistoryValue() ? applyValueMap() ? getMappedValue() in include/valuemap.inc.php:47]



 Comments   
Comment by Frank [ 2016 Feb 17 ]

This seems to happen because the upgrade corrupted some of the Value mappings (e.g. "Zabbix agent ping status").

Comment by Alexander Vladishev [ 2016 Feb 17 ]

It happen with Value mappings without mappings. With correct database it can't happen.

In any case the API code will be improved to exclude such errors.

Comment by Alexander Vladishev [ 2016 Feb 17 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-10399

Comment by richlv [ 2016 Feb 17 ]

for the record, value maps w/o entries could have happened because of some bug in an older zabbix version - the same issue is present on zabbix.org demo instance, too

Comment by Ivo Kurzemnieks [ 2016 Feb 18 ]

(1) No translation string changes.

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2016 Feb 18 ]

TESTED

Comment by Alexander Vladishev [ 2016 Feb 19 ]

Fixed in pre-3.0.1rc1 r58606 and pre-3.1.0 (trunk) r58607.

Generated at Thu Apr 18 20:59:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.