martinm76 / zabbix-pdf-report

Reporting tool in PHP for the Zabbix Monitoring Platform. Rather versatile reporting on hosts and host groups.
https://www.zabbix.com/forum/zabbix-cookbook/25368-zabbix-dynamic-pdf-report-generation?filter_time=time_lastmonth
GNU General Public License v3.0
52 stars 56 forks source link

Error in php and curl exits in zabbix-pdf-report index #25

Closed leandrosraphael closed 2 years ago

leandrosraphael commented 3 years ago

First of all I would like to thank you for the tool, and I would like to clarify a question, I am using zabbix 5.2.5, and php 7.4 and configured the zabbix-report, but on the main screen as soon as we log in it appears some curl outputs, and when I go in the php error log it shows the following error: [Tue Apr 13 18:25:53.571098 2021] [php7:warn] [pid 445685] [client 10.0.0.239:62357] PHP Warning: get_class() expects parameter 1 to be object, null given in /usr/share/zabbix-pdf-report/inc/ZabbixAPI.class.php on line 208, referer: http://zabbix2.portosrio.gov.br/zbxreport/index.php

Can anybody help me?

Error that appears as soon as I log in. image

since already my thanks

martinm76 commented 3 years ago

Have you set the version of Zabbix in config.inc.php to 5.0 or higher? This looks like the 'bug' that was 'fixed' in 5.0 and later and some of the last versions of 4.4

leandrosraphael commented 3 years ago

Yes, I put 5.0, but the error was only corrected, when I deactivated the debugs, which were true, after that, everything worked.

And thanks for answering me and trying to help me.

The tool is incredible.