Project

General

Profile

Bug #8919

DHCP/DHPv6 Relay PHP Error on Save

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP Relay
Target version:
Start date:
09/19/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:
All

Description

When saving on DHCP or DHCPv6 relay when the settings tag is empty (e.g. <dhcrelay></dhcrelay>), PHP errors are encountered:

[19-Sep-2018 15:14:49 Etc/UTC] PHP Warning:  Illegal string offset 'enable' in /usr/local/www/services_dhcp_relay.php on line 110
[19-Sep-2018 15:14:49 Etc/UTC] PHP Warning:  Illegal string offset 'interface' in /usr/local/www/services_dhcp_relay.php on line 111
[19-Sep-2018 15:14:49 Etc/UTC] PHP Warning:  Illegal string offset 'agentoption' in /usr/local/www/services_dhcp_relay.php on line 112
[19-Sep-2018 15:14:49 Etc/UTC] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dhcp_relay.php on line 112
[19-Sep-2018 15:14:49 Etc/UTC] PHP Warning:  Illegal string offset 'server' in /usr/local/www/services_dhcp_relay.php on line 113

Associated revisions

Revision 124ca365 (diff)
Added by Jim Pingle over 1 year ago

Initialize DHCP settings before use. Fixes #8919

Revision 8b70d0fb (diff)
Added by Jim Pingle over 1 year ago

Initialize DHCP settings before use. Fixes #8919

(cherry picked from commit 124ca365049368460598621f962ad0b4f5459d7a)

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

  • Status changed from Feedback to Resolved
  • Target version changed from 2.4.4-GS to 2.4.4

Also available in: Atom PDF