[ZBX-16583] No php7-fileinfo in alpine docker container Created: 2019 Aug 31  Updated: 2020 Jan 08  Resolved: 2019 Nov 01

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

Type: Incident report Priority: Trivial
Reporter: Andrey Teplitskiy Assignee: Alexey Pustovalov
Resolution: Fixed Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot_2019-08-31_12-03-04.png    
Issue Links:
Duplicate
is duplicated by ZBX-16577 click profile error Closed

 Description   

Steps to reproduce:

Run new docker container zabbix-web-nginx-mysql:alpine-4.2.6, login to zabbix, go to user profile:

 

Result:

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /usr/share/zabbix/include/sounds.inc.php:27 Stack trace: #0 /usr/share/zabbix/include/views/administration.users.edit.php(345): getSounds() #1 /usr/share/zabbix/include/classes/mvc/CView.php(199): include('/usr/share/zabb...') #2 /usr/share/zabbix/profile.php(189): CView->render() #3 {main} thrown in /usr/share/zabbix/include/sounds.inc.php on line 27

Expected:

{{docker exec -it zabbix-web bash
apk add php7-fileinfo
exit
docker restart zabbix-web}}



 Comments   
Comment by Robert Szulist [ 2019 Oct 16 ]

Same on 4.2.7

Comment by Jeremy Ramos [ 2019 Oct 26 ]

I have the same issue on docker image zabbix/zabbix-appliance
 

Comment by Alexey Pustovalov [ 2019 Nov 01 ]

Fixed! Thank you!

Comment by hq [ 2020 Jan 08 ]

how to solve this bug ? please tell me

Comment by Alexey Pustovalov [ 2020 Jan 08 ]

just use the latest image.

Generated at Tue Jun 17 08:11:59 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.