PHP Fatal error: Redefinition of parameter $_unused_flag in /usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php on line 247, referer: http://82.199.112.138:8081/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=main

This forum was archived to /woltlab and is now in read-only mode.
  • When I open any map, main or demo - raised - HTTP-Response: 500 - Internal Server Error



    • NagVis version

    aptitude show nagvis
    Пакет: nagvis
    Состояние: установлен
    Автоматически установлен: нет
    Версия: 1:1.7.10+dfsg1-3ubuntu1



    • Distribution

    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.1 LTS
    Release: 16.04
    Codename: xenial



    • Apache version


    Версия: 2.4.18-2ubuntu3.1


    • PHP version

    Версия: 7.0.8-0ubuntu0.16.04.2


    • Are there error messages in webservers error log?


    PHP Fatal error: Redefinition of parameter $_unused_flag in /usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php on line 247, referer: http://82.199.112.138:8081/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=demo-ham-racks


    PHP Fatal error: Redefinition of parameter $_unused_flag in /usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php on line 247, referer: http://82.199.112.138:8081/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=demo-germany


    PHP Fatal error: Redefinition of parameter $_unused_flag in /usr/share/nagvis/share/server/core/classes/objects/NagVisMapObj.php on line 247, referer: http://82.199.112.138:8081/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=main



    and etc.




    • Browser used (Equal behaviour in other browsers?)

    google chrome Версия 52.0.2743.116 m (64-bit)
    internet explorer 11.0.9600.18059


    • Are there JavaScript errors in the browser?

    No.

  • This seems to be an issue with PHP7 on Ubuntu 16.04 with the NagVis code base.


    Similar issue here in this German thread: HTTP error


    Kindly open a bug and let Lars know about it :)
    https://github.com/NagVis/nagvis/issues

  • 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.