Project

General

Profile

Bug #9582

PHP error setting up VLANs from the console

Added by Jim Pingle 5 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Interfaces
Target version:
Start date:
06/11/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.4-p3
Affected Architecture:
All

Description

If a config contains <vlans></vlans> then setting up VLANs at the console may fail with a PHP error:

[10-Jun-2019 07:52:19 Europe/Berlin] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/inc/config.console.inc:499
Stack trace:
#0 /etc/inc/config.console.inc(103): vlan_setup()
#1 /etc/rc.initial.setports(37): set_networking_interfaces_ports()
#2 {main}
thrown in /etc/inc/config.console.inc on line 499
[10-Jun-2019 07:52:39 Europe/Berlin] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/inc/config.console.inc:499
Stack trace:
#0 /etc/inc/config.console.inc(103): vlan_setup()
#1 /etc/rc.initial.setports(37): set_networking_interfaces_ports()
#2 {main}
thrown in /etc/inc/config.console.inc on line 499

Associated revisions

Revision 45f95753 (diff)
Added by Jim Pingle 5 months ago

Initialize VLAN array in console setup. Fixes #9582

Revision b9e689cf (diff)
Added by Jim Pingle 5 months ago

Initialize VLAN array in console setup. Fixes #9582

(cherry picked from commit 45f95753963e497b5ce14493f9cca05336d75c7b)

History

#1 Updated by Jim Pingle 5 months ago

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

#2 Updated by Jim Pingle 3 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF