[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 |
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 zabbix24-frontend-2.4.3 |
Comment by Oleksii Zagorskyi [ 2015 Mar 16 ] |
Could be similar to |
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. |