[ZBX-7112] Error when import host. Created: 2013 Oct 07  Updated: 2017 May 30  Resolved: 2014 May 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.10rc1, 2.1.8

Type: Incident report Priority: Major
Reporter: Andrei Gushchin (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: import, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File graph_prototype_import.xml    
Issue Links:
Duplicate

 Description   

When I import some host by xml. I receive the following error.

array_flip(): Can only flip STRING and INTEGER values! [include/db.inc.php:1083]
array_flip(): Can only flip STRING and INTEGER values! [include/db.inc.php:1083]
array_flip(): Can only flip STRING and INTEGER values! [include/db.inc.php:1083]
array_flip(): Can only flip STRING and INTEGER values! [include/db.inc.php:1083]
array_flip(): Can only flip STRING and INTEGER values! [include/db.inc.php:1083]
Incorrect value "" for unsigned int field "itemid"



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2013 Oct 09 ]

Import file seem have unknown hosts in graph items. Decided to add validation message for this situation.
Fixed in 2.0 development branch svn://svn.zabbix.com/branches/dev/ZBX-7112

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

(1) Graph prototypes have the same problem. See graph_prototype_import.xml for an example.

Eduards RESOLVED r.39193

jelisejev CLOSED.

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

(2) I suggest to change the message to: "Cannot find host or template "%hostName%" used in graph "%graphName%"." This phrasing is more common in import and it references a specific graph.

Eduards RESOLVED r.39193

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Oct 11 ]

TESTED.

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

Fixed in versions pre-2.1.8 (trunk) r.39262, 2.0.10rc1 r.39261

Comment by richlv [ 2013 Oct 20 ]

(3) this introduced a new translatable string for 2.0 - please verify that this was intended (it nukes our 100% translated language list)

jelisejev Yes, it was intended and necessary. CLOSED.

Generated at Wed Jul 16 09:27:32 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.