Page 1 of 1

PHP error on LAN admin page

Posted: 04 Aug 2011, 06:56
by Eek
This is very annoying.
I know I saw this problem on this forum, but can not find it.
When accessing the http://b3/admin/network/lan page
I get the following errors
A PHP Error was encountered

Severity: Notice

Message: Undefined index: dhcpd

Filename: network/network_lan_view.php

Line Number: 243
The web-admin log reports
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 243
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 260
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 268
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 276
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 283
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Uninitialized string offset: 3 /usr/share/web-admin/admin/views/default/network/network_lan_view.php 284
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 299
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 307
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 315
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Undefined index: dhcpd /usr/share/web-admin/admin/views/default/network/network_lan_view.php 323
ERROR - 2011-08-04 12:55:25 --> Severity: Notice --> Uninitialized string offset: 3 /usr/share/web-admin/admin/views/default/network/network_lan_view.php 324
Anyone?

Re: PHP error on LAN admin page

Posted: 04 Aug 2011, 13:19
by Ubi
You went through the log files and looked for lines saying dhcpd right? What did they say?

Re: PHP error on LAN admin page

Posted: 04 Aug 2011, 14:03
by Eek
well not yet all logs and also did not check the php code yet.
I know this is not a new problem, so hoped someone would recognize the problem or the post that first mentioned this same error.

Re: PHP error on LAN admin page

Posted: 17 Aug 2011, 09:39
by Eek
Found it!
the network_lan_view.php on the admin pages uses the /etc/dnsmasq.d/bubba.conf file,
which I had removed, as it conflicted with my own /etc/dnsmasq.conf file.
Just created it again with only the parameter dhcp-range= and now the admin page is decent again.