[Pkg-nagios-devel] Bug#893723: nagvis: PHP Fatal error: Redefinition of parameter $_unused_flag

marsupilami79 marsupilami79 at gmx.de
Wed Mar 21 16:17:42 UTC 2018


Package: nagvis
Version: 1:1.7.10+dfsg1-3.2
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

We installed the nagvis and nagvis-demos package. Opening nagvis in a browser lead to a HTTP/500 internal server error. In the apache error log we had the following lines:
[Wed Mar 21 16:16:45.976333 2018] [:error] [pid 28158] [client 192.168.12.252:61683] PHP Fatal error:  Redefinition of parameter $_unused_flag in /usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php on line 247, referer: http://kameraserver/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=demo-germany

We followed the advice of the user hurr1c4ne on the following forum thread:
https://monitoring-portal.org/woltlab/index.php?thread/37078-php-fatal-error-redefinition-of-parameter-unused-flag-in-usr-share-nagvis-share/

This solved the problem for us. The post of hurr1c4n is as follows:
----------------------------------------------------------------------------
Have the same situation on my Ubuntu 16.04.1 Server.


I just changed the following lines
/usr/share/nagvis/share/server/core/classes/objects/NagiosService.php
:103
function queueState($_unused_flag = true) {


/usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php
:247
public function queueState($_unused_flag = true) {


After this changes, the error messages are gone and the website works as expected.
----------------------------------------------------------------------------

This helped to get the demo maps running.

Best regards,

Jan


-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nagvis depends on:
ii  debconf [debconf-2.0]         1.5.61
ii  graphviz                      2.38.0-17
ii  php                           1:7.0+49
ii  php-common                    1:49
ii  php-gd                        1:7.0+49
ii  php-net-socket                1.0.14-2
ii  php-php-gettext               1.0.12-0.1
ii  php-sqlite3                   1:7.0+49
ii  php7.0 [php]                  7.0.27-0+deb9u1
ii  php7.0-gd [php-gd]            7.0.27-0+deb9u1
ii  php7.0-sqlite3 [php-sqlite3]  7.0.27-0+deb9u1
ii  ucf                           3.0036

nagvis recommends no packages.

Versions of packages nagvis suggests:
pn  check-mk-livestatus  <none>
ii  nagvis-demos         1:1.7.10+dfsg1-3.2

-- debconf information:
  nagvis/delete_on_purge: false
* nagvis/monitoring_system: icinga



More information about the Pkg-nagios-devel mailing list