Nagvis PHP7 Error

Bug #1790593 reported by Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nagvis (Ubuntu)
New
Undecided
Unassigned

Bug Description

========= LSB-Release: =========
Description: Ubuntu 18.04 LTS
Release: 18.04

========= apt-cache policy nagvis ==============
nagvis:
  Installed: 1:1.7.10+dfsg1-3.2
  Candidate: 1:1.7.10+dfsg1-3.2
  Version table:
 *** 1:1.7.10+dfsg1-3.2 500
        500 http://10.1.3.55/repo_18.04_2018-07-10__OS/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

==> Repo is mirrord from Ubuntu and frozen with a BTRFS Snap.
==> Current Up2Date Repo tested. Bug is still in Ubuntu Repo.

========== Expected ============
Website of Nagvis should be able to load without an error.

========== Problem ============
PHP7 Error Message each()

Error: (0) The each() function is deprecated. This message will be suppressed on further calls (/usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php:2942)

#0 [internal function]: nagvisExceptionErrorHandler(8192, 'The each() func...', '/usr/share/nagv...', 2942, Array)
#1 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php(2942): each(Array)
#2 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php(985): Dwoo_Compiler->mapParams(Array, Array, 0)
#3 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php(668): Dwoo_Compiler->addBlock('topLevelBlock', Array, 0)
#4 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Template/String.php(369): Dwoo_Compiler->compile(Object(Dwoo), Object(Dwoo_Template_File))
#5 /usr/share/nagvis/share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo.php(363): Dwoo_Template_String->getCompiledTemplate(Object(Dwoo), Object(Dwoo_Compiler))
#6 /usr/share/nagvis/share/frontend/nagvis-js/classes/NagVisLoginView.php(85): Dwoo->get(Object(Dwoo_Template_File), Array)
#7 /usr/share/nagvis/share/frontend/nagvis-js/classes/FrontendModLogonDialog.php(48): NagVisLoginView->parse()
#8 /usr/share/nagvis/share/server/core/functions/index.php(120): FrontendModLogonDialog->handleAction()
#9 /usr/share/nagvis/share/frontend/nagvis-js/index.php(57): require('/usr/share/nagv...')
#10 {main}

========== Solution ===========
--> https://github.com/NagVis/nagvis/issues/142
--> http://www.nagvis.org/downloads/changelog/1.9.8

I have manualy fixed the files to see if it's excatly this issue. --> Yes, we hit this Issue.

Maybe we could switch to the latest fixed Version in the official Ubuntu Repo?

Best Regards

Tux12Fun - Thomas

Revision history for this message
Thomas (tux12fun) wrote :

Please Please Bump to current Version.

The current Nagvis Ubuntu Package is a big Problem

-> DB Connection to MySQL isn't working because of mysql / mysqli
-> Buggy with php 7.2, duplicated function Paramters and each() elements are no longer working.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.