Bug 233530 - net-mgmt/nagios4 [patch] needs php*-filter
Summary: net-mgmt/nagios4 [patch] needs php*-filter
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-26 11:57 UTC by Dirk Meyer
Modified: 2020-11-05 11:00 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
proposed patch (620 bytes, patch)
2018-11-26 11:57 UTC, Dirk Meyer
no flags Details | Diff
proposed patch (361 bytes, patch)
2019-01-19 10:40 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer freebsd_triage 2018-11-26 11:57:18 UTC
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.
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2019-01-19 10:40:28 UTC
Created attachment 201265 [details]
proposed patch
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-01-21 15:45:26 UTC
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
Comment 3 livitin 2020-11-05 09:48:41 UTC
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
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2020-11-05 10:00:06 UTC
mod_php from 7.2 will probably not work with modules from php 7.4.
Comment 5 livitin 2020-11-05 11:00:21 UTC
removed mod_php72-7.2.34
installed mod_php74-7.4.12

Now all ok. Thank's. Sorry.