Created attachment 199569 [details] proposed patch Setup: nagios in a clean jail. Problem: Nagios fails to display mape.php (leagacy map works) Lolgfile: PHP Fatal error: Uncaught Error: Call to undefined function filter_input() in /usr/local/www/nagios/map.php:33 Workaround: pkg install php71-filter Solution: apply the proposed patch.
Created attachment 201265 [details] proposed patch
A commit references this bug: Author: mat Date: Mon Jan 21 15:44:21 UTC 2019 New revision: 490868 URL: https://svnweb.freebsd.org/changeset/ports/490868 Log: Update to 4.4.3. While there, stop using the deprecated @unexec. Add missing php module dependency. [1] PR: 233530 [1] Submitted by: dinoex [1] Changes: head/net-mgmt/nagios4/Makefile head/net-mgmt/nagios4/distinfo head/net-mgmt/nagios4/files/patch-html_main.php head/net-mgmt/nagios4/files/patch-sample-config_nagios.cfg.in head/net-mgmt/nagios4/pkg-plist
FreeBSD 12.1-RELEASE-p10 GENERIC amd64 Packages ... nagios-plugins-2.3.3_2,1 Plugins for Nagios nagios4-4.4.6_1,1 Powerful network monitoring system ... mod_php72-7.2.34 PHP Scripting Language php74-7.4.11 PHP Scripting Language php74-filter-7.4.11 The filter shared extension for php php74-xml-7.4.11 The xml shared extension for php Got error on Map Fatal error: Uncaught Error: Call to undefined function filter_input() in /usr/local/www/nagios/map.php:33 Stack trace: #0 {main} thrown in /usr/local/www/nagios/map.php on line 33
mod_php from 7.2 will probably not work with modules from php 7.4.
removed mod_php72-7.2.34 installed mod_php74-7.4.12 Now all ok. Thank's. Sorry.