Project

General

Profile

Bug #8889

Setup Wizard PHP error when LAN has no DHCP configuration

Added by Jim Pingle over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
09/12/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:
All

Description

If you remove LAN and then add it back, then run the Setup Wizard, a PHP error will result.

Removing the LAN removes the DHCP settings, and the way the wizard uses the DHCP settings array, it leads to a PHP error because they are not there.

[12-Sep-2018 19:36:29 Etc/UTC] PHP Warning:  Illegal string offset 'lan' in /usr/local/www/wizard.php(114) : eval()'d code on line 47
[12-Sep-2018 19:36:29 Etc/UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /usr/local/www/wizard.php(114) : eval()'d code:47
Stack trace:
#0 /usr/local/www/wizard.php(114): eval()
#1 {main}
  thrown in /usr/local/www/wizard.php(114) : eval()'d code on line 47

Associated revisions

Revision 7c15c19d (diff)
Added by Jim Pingle over 1 year ago

Initialize DHCP settings in setup wizard. Fixes #8889

Rather than assume they are present, create the arrays before use.

Revision 4868ef35 (diff)
Added by Jim Pingle over 1 year ago

Initialize DHCP settings in setup wizard. Fixes #8889

Rather than assume they are present, create the arrays before use.

(cherry picked from commit 7c15c19d76eac725c42133012488cb97e4dcd885)

History

#1 Updated by Jim Pingle over 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Jim Pingle over 1 year ago

  • Target version changed from 2.4.4-GS to 2.4.4

#3 Updated by Jim Pingle over 1 year ago

  • Status changed from Feedback to Resolved

Fix tests OK with a gitsync to RELENG_2_4_4, but the fix is not yet in the RC images, will be in -RELEASE.

Also available in: Atom PDF