Project

General

Profile

Actions

Bug #14708

closed

PHP error when the system fails to create an interface

Added by Diana Moore about 1 year ago. Updated 22 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Interfaces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.11
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:

Description

When enabling 6rd while 6to4 is enabled on another interface the web ui will throw an error of Uncaught TypeError: pfSense_interface_rename().

This can also occur when enabling 6to4 with 6rd already enabled.

UI error shows the following when trying to enable 6to4 on wan with 6rd enabled on opt1 (Full trace attached to bug report):

Fatal error: Uncaught TypeError: pfSense_interface_rename(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:4745 Stack trace: #0 /etc/inc/interfaces.inc(4745): pfSense_interface_rename(Array, 'wan_stf') #1 /etc/inc/interfaces.inc(4289): interface_6to4_configure('wan', Array) #2 /usr/local/www/interfaces.php(476): interface_configure('wan', true) #3 {main} thrown in /etc/inc/interfaces.inc on line 4745 PHP ERROR: Type: 1, File: /etc/inc/interfaces.inc, Line: 4745, Message: Uncaught TypeError: pfSense_interface_rename(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:4745 Stack trace: #0 /etc/inc/interfaces.inc(4745): pfSense_interface_rename(Array, 'wan_stf') #1 /etc/inc/interfaces.inc(4289): interface_6to4_configure('wan', Array) #2 /usr/local/www/interfaces.php(476): interface_configure('wan', true) #3 {main} thrown

Static IPv6, SLAAC, and DHCPv6 are unaffected.

Interfaces involved:
  • wan - igb0 - Requires 6to4 for IPv6
  • opt1 - VLAN 201 on igb1 - Requires 6rd for IPv6

System is a Super Micro a1sri-2758f


Files

PHP_errors_wan.log (7.83 KB) PHP_errors_wan.log Enabling 6to4 on Wan Diana Moore, 08/24/2023 11:24 PM
PHP_errors_opt1.log (6.96 KB) PHP_errors_opt1.log Enabling 6rd on opt1 VLAN Diana Moore, 08/24/2023 11:24 PM
Actions

Also available in: Atom PDF