[ZBX-5815] Undefined index in screen import Created: 2012 Nov 06  Updated: 2017 May 30  Resolved: 2015 Mar 09

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

Type: Incident report Priority: Trivial
Reporter: Oleg Egorov (Inactive) Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: screens, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File bug.xml    
Issue Links:
Duplicate
is duplicated by ZBX-7654 Import versioning Closed

 Description   

Selected only "Update existing":

Result after import:

Imported successfully

Undefined index: resource [include\classes\import\CConfigurationImport.php:371]
Undefined index: resource [include\classes\import\importers\CAbstractScreenImporter.php:39]

Attached XML FILE



 Comments   
Comment by Alexei Vladishev [ 2012 Nov 09 ]

That's probably happened because of missing <resource> tags like:

<screen_item>
...
<resource>
<key>system.uptime</key>
<host>Zabbix server</host>
</resource>
</screen_item>

How have you generated bug.xml?

oleg.egorov XML file edited by me, this is minor problem.

Comment by Alexander Vladishev [ 2015 Mar 09 ]

XML validation will be fixed in ZBX-7654. I close the issue.

Generated at Fri Jan 10 19:36:58 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.