[ZBX-9398] Cannot redeclare zbx_err_handler() Created: 2015 Mar 13  Updated: 2019 Dec 10

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 2.4.3
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: mlevel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: php
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 10.1-RELEASE-p6 GENERIC amd64
nginx version: nginx/1.6.2
PHP 5.6.6 (fpm-fcgi) Zend Engine v2.6.0 with Zend OPcache v7.0.4-dev



 Description   

I'm trying to use a Zabbix API and tried two libraries (https://github.com/lundgrenalex/microzabbixapiconnector and http://zabbixapi.confirm.ch/). On both of them I've got an error:

2015/03/13 23:16:19 [error] 1454#0: *166460 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare zbx_err_handler() (previously declared in /web/mgmt/zabbix/include/classes/core/ZBase.php:273) in /web/mgmt/zabbix/include/classes/core/ZBase.php on line 273" while reading response header from upstream, client: 172.16.204.17, server: stat.local, request: "POST /zabbix/api_jsonrpc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "stat.local"



 Comments   
Comment by richlv [ 2015 Mar 13 ]

how was zabbix frontend installed ?

Comment by mlevel [ 2015 Mar 14 ]

Compiled via FreeBSD Ports
[mgmt]# pkg info | grep -i zabbix
zabbix24-frontend-2.4.3 Enterprise-class open source distributed monitoring (frontend)
zabbix24-server-2.4.3 Enterprise-class open source distributed monitoring (server)

[mgmt]# pkg info zabbix24-frontend-2.4.3
zabbix24-frontend-2.4.3
Name : zabbix24-frontend
Version : 2.4.3
Installed on : Sun Feb 22 00:40:53 EET 2015
Origin : net-mgmt/zabbix24-frontend
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : net-mgmt
Licenses : GPLv2
Maintainer : [email protected]
WWW : http://www.zabbix.com/
Comment : Enterprise-class open source distributed monitoring (frontend)
Options :
MYSQL : on
MYSQLI : on
ORACLE : off
PGSQL : off
SQLITE : off
Annotations :
Flat size : 26.2MiB

Comment by Oleksii Zagorskyi [ 2015 Mar 16 ]

Could be similar to ZBX-5223

Comment by mlevel [ 2015 Mar 16 ]

I've checked it. I'm using Nginx, I have only one path, and I specified it in "root" directive. I don't know what else I need to check.

Comment by richlv [ 2015 Mar 24 ]

it still does look like misconfiguration more - not sure there's a bug in zabbix.

looks like ZBase.php is included twice, somehow. try to see how that could happen

Comment by mlevel [ 2015 Mar 28 ]

How can I debug it? I don't have any ideas.

Generated at Fri Apr 19 23:16:26 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.