[ZBX-4902] Template export doesn't work Created: 2012 Apr 21  Updated: 2017 May 30  Resolved: 2012 May 02

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

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

RHEL 5 based distro, PostgreSQL 8.4


Issue Links:
Duplicate
is duplicated by ZBX-4943 Export of SNMPv3 Template fails Closed
is duplicated by ZBX-4968 can't export default linux template: ... Closed

 Description   

When exporting any of the default Zabbix templates (old ones, without discovery), I get empty xml file. Frontend shows a message that export was successful, and there are no details in this message.

There is an error in Apache log file:
[Thu Apr 19 19:18:02 2012] [error] [client 192.168.150.1] PHP Fatal error: Argument 1 passed to CConfigurationExportBuilder::formatApplications() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 68 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 473, referer: https://zabbix/zabbix/templates.php?ddreset=1&sid=facd07ffb9d5bfa0

However, if I comment out lines with applications, discovery_rules and screens in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php near line number 68, export works.



 Comments   
Comment by Alexey Fukalov [ 2012 Apr 23 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Apr 26 ]

TESTED.

Comment by Alexey Fukalov [ 2012 Apr 26 ]

svn://svn.zabbix.com/trunk 27135

Comment by Sergey Syreskin [ 2012 May 02 ]

Template export still does not work for me in today's trunk (27216). I get an error in Apache log:

PHP Fatal error: Argument 1 passed to CConfigurationExportBuilder::formatDependencies() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 364 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 537, referer: https://localhost/zabbix/templates.php?templateid=10077&sid=892c58c2393bad51

Template id 10077 stands for a built-in Zabbix Template OS HP-UX

Comment by Alexey Fukalov [ 2012 May 02 ]

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

Comment by Simon Kowallik [ 2012 May 03 ]

Frontend from svn://svn.zabbix.com/branches/dev/ZBX-4902 works for ZBX-4943 too.
Thanks!

Comment by Pavels Jelisejevs (Inactive) [ 2012 May 09 ]

(1) When I try to export the default Zabbix server I get an error:

"[error] Undefined index: proxy [include/classes/export/CConfigurationExportBuilder.php:125]"

<Vedmak> This will be fixed in ZBX-4920.

<pavels> Ok, CLOSED for now.

Comment by Alexey Fukalov [ 2012 May 09 ]

svn://svn.zabbix.com/trunk 27383.

Generated at Fri Mar 29 02:53:06 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.