Welcome, Guest. Please login or register.

Author Topic: Problems after update to 1.6  (Read 203 times)

Paraidomat

  • Newbie
  • *
  • Posts: 7
    • View Profile
Problems after update to 1.6
« on: November 24, 2017, 03:28:58 PM »
Hello,

i lately patched to 1.6 and now I'm not able to see the expected GUI on:

Code: [Select]
/var/nedi/html/User-Accounts.php
/var/nedi/html/System-Export.php

The Error Messages i see are:

Code: [Select]
[Fri Nov 24 15:15:28 2017] [error] [client 10.2.140.59] PHP Fatal error:  Call to undefined function GenQuery() in /var/nedi/html/User-Accounts.php on line 113
[Fri Nov 24 15:16:08 2017] [error] [client 10.2.140.59] PHP Fatal error:  Call to undefined function GenQuery() in /var/nedi/html/System-Export.php on line 96, referer: https://fqdn/User-Accounts.php?grp=1&ord=&usr=rest&eml=rest%40fqdn.de&phn=017212345678&add=Add

Also i can't seem to find the file where
Code: [Select]
GenQuery should be defined:

Code: [Select]
[root@nedi nedi]# grep -ril --exclude-dir=conf/ "GenQuery"
html/Nodes-Stolen.php
html/System-Export.php
html/User-Radius.php
html/Nodes-Track.php
html/Assets-Inventory.php
html/Reports-Wlan.php
html/User-Guests.php
html/User-Accounts.php
contrib/vlanreport.php
[root@nedi nedi]#  echo $?
0
[root@nedi nedi]#

Any help would be greatly appreciated!

BR from Germany,
Paraidomat


Paraidomat

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems after update to 1.6
« Reply #1 on: November 28, 2017, 02:15:18 PM »
Hi,

I just did some more Troubleshooting and found that:

In nedi-1.5C.tgz's libdb-mysql.php indeed there are the following functions defined:
Code: [Select]
function DbQuery($q,$l){
return mysql_query($q,$l);
}

and

Code: [Select]
function GenQuery($tbl,$do='s',$col='*',$ord='',$lim='',$rawin=array(),$rawop=array(),$rawst=array(),$rawco=array(),$jn=''){
    // [...]
}

as for nedi-1.6C.tgz there is only the following function:

Code: [Select]
function DbQuery($lnk,$tbl,$do='s',$col='*',$ord='',$lim='',$in=array(),$op=array(),$st=array(),$co=array(),$jn=''){
    // [...]
}

So it seems, that the files

Code: [Select]
/var/nedi/html/User-Accounts.php
/var/nedi/html/System-Export.php

where missing out on that update and are therefor unusable since the update to 1.6C.

Since it's shipped this way in the tgz, everybody that is using that tgz is having that problem.

BR from Germany,
Paraidomat
« Last Edit: November 28, 2017, 02:22:10 PM by Paraidomat »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2561
    • View Profile
    • NeDi
Re: Problems after update to 1.6
« Reply #2 on: November 29, 2017, 12:12:45 PM »
They're not missing, but renamed :)

As I'm continuously working on improving translations, I'm aligning the PHP modules to make more sense across the languages.

You should find the current module names in nedi.conf with the distribution (e.g. User-Management and System-Database).

I'll add changes in nedi.conf in the Readme.txt to make it easier for everybody...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

Paraidomat

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problems after update to 1.6
« Reply #3 on: November 29, 2017, 02:30:02 PM »
Okay,

apperently just taking a "stupid" copy of your old nedi.conf is not a good idea :D

Thanks for your help, Remo.