Freeradius-dialupadmin and LXC: "PHP Notice: Undefined variable:" or "PHP Fatal error: Call to undefined function"

Osvaldo T Crispim Filho osvaldotcf at gmail.com
Wed May 7 18:51:49 CEST 2014


My environment:

- Ubuntu 14.04 amd64 (all: host and containers)
- Packages created with script from freeradius 2.2.5 (freeradius,
freeradius-postgresql, freeradius-dialupadmin,etc)

- Freeradius on LXC Container
- Freeradius-Dialupadmin on another LXC container with apache2

- ip on server host: 192.168.10.4 and 10.0.3.1 (for lxc nated network)
- ip on guest freeradius: 10.0.3.14
- ip on guest freeradius-dialupadmin/apache2: 10.0.3.15
- ip of my pc: 192.168.10.19

- Server host with UFW/Iptables with active firewall and port forward

================ ==============

The problem is with freeradius-dialupadmin:

with lines in /etc/freeradius-dialupadmin/config.php:
$curVer=intval(str_replace(".", "",phpversion()));
if( $curVer >= $testVer )
        import_request_variables('GPC');

I have:

[Wed May 07 13:40:19.294851 2014] [:error] [pid 2272] [client
192.168.10.19:59084] PHP Fatal error:  Call to undefined function
import_request_variables() in /etc/freeradius-dialupadmin/config.php on
line 9, referer: http://192.168.10.4/fradmin/buttons.php


If i comment this lines i have:

[Wed May 07 13:26:14.272903 2014] [:error] [pid 2271] [client
192.168.10.19:58985] PHP Notice:  Undefined variable: clear_fields in
/usr/share/freeradius-dialupadmin/htdocs/nas_admin.php on line 269,
referer: http://192.168.10.4/fradmin/buttons.php
[Wed May 07 13:26:14.272910 2014] [:error] [pid 2271] [client
192.168.10.19:58985] PHP Notice:  Undefined variable: do_it in
/usr/share/freeradius-dialupadmin/htdocs/nas_admin.php on line 269,
referer: http://192.168.10.4/fradmin/buttons.php
[Wed May 07 13:26:14.272916 2014] [:error] [pid 2271] [client
192.168.10.19:58985] PHP Notice:  Undefined variable: select_nas in
/usr/share/freeradius-dialupadmin/htdocs/nas_admin.php on line 269,
referer: http://192.168.10.4/fradmin/buttons.php
[Wed May 07 13:26:14.272923 2014] [:error] [pid 2271] [client
192.168.10.19:58985] PHP Notice:  Undefined variable: clear_fields in
/usr/share/freeradius-dialupadmin/htdocs/nas_admin.php on line 271,
referer: http://192.168.10.4/fradmin/buttons.php

Thanks for your help.



-- 
             - Osvaldo T Crispim Filho -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140507/3fd2fe2a/attachment.html>


More information about the Freeradius-Users mailing list