[ZBX-15934] PHP Fatal error: Call to undefined function boolval() in /usr/share/zabbix/triggers.php on line 751 Created: 2019 Apr 03  Updated: 2019 Apr 23  Resolved: 2019 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.2.0rc2
Fix Version/s: 4.2.0rc2

Type: Incident report Priority: Trivial
Reporter: Mariano Obarrio Miles Assignee: Zabbix Support Team
Resolution: Fixed Votes: 0
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux zbxssoo02 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Description: CentOS Linux release 7.6.1810 (Core)
PostgresSQL: v11


Attachments: PNG File 2019-04-03_17-32-56.png     PNG File 2019-04-03_17-46-44.png     PNG File 2019-04-03_17-49-31.png     Text File boolval.patch    
Issue Links:
Duplicate

 Description   

Steps to reproduce:

  1. Changes in configuration...

We updated ZBX from 4.0.5 to 4.2.0

Add some Templates Tags 

  1. Navigate to screen title..

Configuration -> Hosts -> Triggers -> Filter -> Select any Hosts, the rest of parameters by default and then Apply and no data is displayed, but in Apache log get an error.

 

/var/log/httpd/error_log

[Wed Apr 03 17:26:28.335740 2019] [:error] [pid 8665] [client 10.xxx.xxx.208:35920] PHP Fatal error:  Call to undefined function boolval() in /usr/share/zabbix/triggers.php on line 751, referer: http://zabbix.mydomain.com/zabbix/triggers.php?filter_set=1&filter_hostids%5B0%5D=10265

 

 



 Comments   
Comment by Mariano Obarrio Miles [ 2019 Apr 03 ]

Ok my mistake. We have PHP 5.4.16 and boolval are in PHP 5 >= 5.5.0, PHP 7

Comment by Mariano Obarrio Miles [ 2019 Apr 03 ]

Upgrade PHP from 5.4.16 to 7.3

Comment by Aigars Kadikis [ 2019 Apr 09 ]

Hello Mariano.

PHP 5.4 is still supported for Zabbix. This will be fixed in the next minor release. Please follow up ZBX-15931. You can also patch you 5.4 version with boolval.patch

Closing as a duplicate now.

Generated at Thu Apr 03 16:03:21 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.