[ZBX-11997] zabbix-frontend-php package does not depend on php mbstring, bcmath and xml Created: 2017 Mar 30  Updated: 2017 Dec 28  Resolved: 2017 Nov 17

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

Type: Incident report Priority: Trivial
Reporter: Alexander Lelyakin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 16.04



 Description   

debian package zabbix-frontend-php do not depend on packages:
php7.0-mbstring, php7.0-bcmath
And without these packages I see such error messages in apache log:

PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/zabbix/include/audit.inc.php:104

PHP Fatal error: Uncaught Error: Call to undefined function bcadd() in /usr/share/zabbix/include/classes/db/DB.php:117

Also package php7.0-xml is not strictly necessary, but desirable, So it should be in Recommended or Suggested sections of dependencies.

BTW: official ubuntu package zabbix-frontend-php (version 2.4.7) do not have such dependency problems.



 Comments   
Comment by dimir [ 2017 Mar 30 ]

kodai, could you take a look?

Comment by dimir [ 2017 Nov 17 ]

2.4 is not supported anymore. It is fixed in 3.4 packages:

$ grep -A2 '^Package: zabbix-frontend-php' zabbix-3.4.4/debian/control 
Package: zabbix-frontend-php
Architecture: all
Depends: ${misc:Depends}, apache2 | httpd, php5 | libapache2-mod-php | php, php5-mysql | php5-mysqlnd | php-mysql | php5-pgsql | php-pgsql, php5-gd | php-gd, php5-ldap | php-ldap, ttf-dejavu-core | ttf-japanese-gothic, php-mbstring, php-bcmath, php-xml
Comment by Dumitru Moldovan [ 2017 Dec 28 ]

For what it's worth, this also affects LTS versions 3.0.x (currently 3.0.13-4).

Got bitten by this while upgrading from the previous LTS version (2.2) after upgrading the host from Ubuntu 14.04 to 16.04.

Generated at Wed May 28 08:11:02 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.