PHP issues with PHP 4.3.9 and dialup_admin

Ethan Dicks ethan.dicks at gmail.com
Tue Mar 20 22:00:18 CET 2007


I've been digging around all day and I've seen other people describe
the same symptoms I'm having, but the follow-ups typical asy "Oh, I
fixed it", but don't describe the fix.  It seems that something
resembling my symptoms goes back to the version of dialup_admin that
shipped with freeRADIUS 1.0.1, so I am not convinced what I'm seeing
is _specifically_ a PHP 4.3 problem, but given the changes with
registers_global from 4.1.0 to 4.2.0, I thought it would be prudent to
mention that.

My setup is...
  CentOS 4.4.2 (RHEL 4 without the RedHat trademarks and graphics)
  Apache 2.0.52
  PHP 4.3.9
  mysql 4.1.20
  freeRADIUS 1.1.5
  dialup_admin ? (CVS snapshot 20070320)
  firefox 1.5.0.10

I have freeRADIUS installed and working with users stuffed into a flat
file, verified with 'radtest'.  I can get the main page of
dialup_admin to come up, but I get blank screens and lots of PHP
errors logged when I try to invoke nearly any button.  My radius
database has tables, but no rows, since I was trying to set up
dialup_admin to start inserting users and groups.  I have set PHP's
registers_global to 'on' via /etc/php.ini and verified that it's on
with phpinfo(), and I still get dozens of errors per mouse-click...

Here's a typical example - the output is generated when clicking on
the 'new group' button: a long list of 'undefined constant',
'undefined variable', and 'undefined index' following the warning that
there's no prefix on a function call to say what its namespace is.
I'm putting the error dump at the bottom to keep it from creating a
huge gulf between sections of this query.

I know it must look familar because I've found several references to
errors that look just like this in  the mailing list archives.  What's
lacking is the solution.

Am I just missing a setup step somewhere?  Am I running servers and
packages that are just too new and untested?

Thanks,

-ethan


[client 127.0.0.1] PHP Notice:  import_request_variables(): No prefix
specified - possible security hazard in
/usr/local/dialup_admin/conf/config.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/conf/config.php3 on line 66, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  login in
/usr/local/dialup_admin/conf/config.php3 on line 73, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  login in
/usr/local/dialup_admin/conf/config.php3 on line 76, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_username_mappings_file - assumed
'general_username_mappings_file' in
/usr/local/dialup_admin/conf/config.php3 on line 86, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_username_mappings_file - assumed
'general_username_mappings_file' in
/usr/local/dialup_admin/conf/config.php3 on line 87, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant name -
assumed 'name' in /usr/local/dialup_admin/conf/config.php3 on line
100, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/conf/config.php3 on line 106, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  show in
/usr/local/dialup_admin/htdocs/group_new.php3 on line 3, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_lib_type - assumed 'general_lib_type' in
/usr/local/dialup_admin/htdocs/group_new.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_user_edit_attrs_file - assumed 'general_user_edit_attrs_file'
in /usr/local/dialup_admin/lib/attrshow.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  login in
/usr/local/dialup_admin/lib/attrshow.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant accounting -
assumed 'accounting' in /usr/local/dialup_admin/lib/xlat.php3 on line
8, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 9, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant userdb -
assumed 'userdb' in /usr/local/dialup_admin/lib/xlat.php3 on line 9,
referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 9, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 10, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant nasdb -
assumed 'nasdb' in /usr/local/dialup_admin/lib/xlat.php3 on line 10,
referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 10, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 11, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant nasadmin -
assumed 'nasadmin' in /usr/local/dialup_admin/lib/xlat.php3 on line
11, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 11, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/lib/attrshow.php3 on line 17, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_accounting_attrs_file - assumed
'general_accounting_attrs_file' in
/usr/local/dialup_admin/lib/attrshow.php3 on line 23, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_accounting_attrs_file - assumed
'general_accounting_attrs_file' in
/usr/local/dialup_admin/lib/attrshow.php3 on line 24, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  login in
/usr/local/dialup_admin/lib/attrshow.php3 on line 24, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant accounting -
assumed 'accounting' in /usr/local/dialup_admin/lib/xlat.php3 on line
8, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 8, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 9, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant userdb -
assumed 'userdb' in /usr/local/dialup_admin/lib/xlat.php3 on line 9,
referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 9, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 10, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant nasdb -
assumed 'nasdb' in /usr/local/dialup_admin/lib/xlat.php3 on line 10,
referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 10, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  http_user in
/usr/local/dialup_admin/lib/xlat.php3 on line 11, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant nasadmin -
assumed 'nasadmin' in /usr/local/dialup_admin/lib/xlat.php3 on line
11, referer: http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  mappings in
/usr/local/dialup_admin/lib/xlat.php3 on line 11, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  acct_attrs in
/usr/local/dialup_admin/lib/attrshow.php3 on line 32, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  ua in
/usr/local/dialup_admin/lib/attrshow.php3 on line 32, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  num in
/usr/local/dialup_admin/lib/attrshow.php3 on line 32, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  fl in
/usr/local/dialup_admin/lib/attrshow.php3 on line 40, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  num in
/usr/local/dialup_admin/lib/attrshow.php3 on line 40, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  uf in
/usr/local/dialup_admin/lib/attrshow.php3 on line 36, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined index:  num in
/usr/local/dialup_admin/lib/attrshow.php3 on line 36, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/lib/attrshow.php3 on line 44, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/lib/defaults.php3 on line 18, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Use of undefined constant
general_use_session - assumed 'general_use_session' in
/usr/local/dialup_admin/lib/sql/attrmap.php3 on line 32, referer:
http://localhost/dialup/buttons.php3
[client 127.0.0.1] PHP Notice:  Undefined variable:  login in
/usr/local/dialup_admin/lib/sql/defaults.php3 on line 3, referer:
http://localhost/dialup/buttons.php3



More information about the Freeradius-Users mailing list