[ZBX-5406] Template Export failure Created: 2012 Aug 03  Updated: 2017 May 30  Resolved: 2012 Aug 31

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

Type: Incident report Priority: Critical
Reporter: Gomez Henri Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File TemplateScreenPb.png    

 Description   

When trying to export one of our template we get a broken xml contening error log instead of expected xml :

[error] Undefined index: host [include/classes/export/CConfigurationExportBuilder.php:65]
[error] Undefined index: name [include/classes/export/CConfigurationExportBuilder.php:66]
[error] Undefined index: groups [include/classes/export/CConfigurationExportBuilder.php:67]
[error] Argument 1 passed to CConfigurationExportBuilder::formatGroups() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 67 and defined [include/classes/export/CConfigurationExportBuilder.php:424]
[error] Invalid argument supplied for foreach() [include/classes/export/CConfigurationExportBuilder.php:428]
[error] Undefined index: applications [include/classes/export/CConfigurationExportBuilder.php:68]
[error] Argument 1 passed to CConfigurationExportBuilder::formatApplications() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 68 and defined [include/classes/export/CConfigurationExportBuilder.php:498]
[error] Invalid argument supplied for foreach() [include/classes/export/CConfigurationExportBuilder.php:502]
[error] Undefined index: items [include/classes/export/CConfigurationExportBuilder.php:69]
[error] Argument 1 passed to CConfigurationExportBuilder::formatItems() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 69 and defined [include/classes/export/CConfigurationExportBuilder.php:443]
[error] Invalid argument supplied for foreach() [include/classes/export/CConfigurationExportBuilder.php:447]
[error] Undefined index: discoveryRules [include/classes/export/CConfigurationExportBuilder.php:70]
[error] Argument 1 passed to CConfigurationExportBuilder::formatDiscoveryRules() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 70 and defined [include/classes/export/CConfigurationExportBuilder.php:253]
[error] Invalid argument supplied for foreach() [include/classes/export/CConfigurationExportBuilder.php:257]
[error] Undefined index: macros [include/classes/export/CConfigurationExportBuilder.php:71]
[error] Argument 1 passed to CConfigurationExportBuilder::formatMacros() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 71 and defined [include/classes/export/CConfigurationExportBuilder.php:517]
[error] Argument 1 passed to order_macros() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 519 and defined [include/func.inc.php:1124]
[error] Invalid argument supplied for foreach() [include/func.inc.php:1126]
[error] Undefined index: parentTemplates [include/classes/export/CConfigurationExportBuilder.php:72]
[error] Argument 1 passed to CConfigurationExportBuilder::formatTemplateLinkage() must be an array, null given, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 72 and defined [include/classes/export/CConfigurationExportBuilder.php:350]
[error] Invalid argument supplied for foreach() [include/classes/export/CConfigurationExportBuilder.php:354]

This template, "Template CI OS Linux" is a Linked Template to "Template OS Linux".
Basicaly this template change default graphs colors.

May be it's related but this "Template CI OS Linux" report a Screen but we cant see it (see screenshot)



 Comments   
Comment by Corey Shaw [ 2012 Aug 06 ]

I'm getting this same problem in 2.0.2. It appears to occur when I try and export templates that link other templates, but I do NOT include the templates it depends on in the export. I thought this worked before 2.0.2, but I'm not 100% sure.

Comment by Frank Oosterhuis [ 2012 Aug 29 ]

I can confirm this bug.
Can also confirm the export works when the template is not linked to another template.

Comment by Alexey Fukalov [ 2012 Aug 31 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5406

Comment by Gomez Henri [ 2012 Aug 31 ]

Fix will be available in 2.0.3 ?

Comment by Alexey Fukalov [ 2012 Aug 31 ]

Yes

Comment by Eduards Samersovs (Inactive) [ 2012 Sep 03 ]

Tested!

Comment by Alexey Fukalov [ 2012 Sep 03 ]

Fixed in 2.0.3rc1 30064, 2.1.0rc1 30065

Generated at Thu Mar 28 20:41:25 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.