Project

General

Profile

Actions

Regression #13514

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

PHP 8.1 - Syntax error when disabling a gateway under SYSTEM > GATEWAYS > EDIT

Added by Bill Meeks about 2 years ago. Updated about 2 years ago.

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

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
2.7.0
Affected Architecture:
All

Description

Running the September 22, 2022 "PHP 8.1 and FreeBSD Main" snapshot in a VMware virtual machine.

When attempting to disable a gateway (in this case the WAN_DHCP6 gateway because I don't have IPv6 available on the WAN) the following PHP error is thrown when attempting to save the change:

amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 devel-main-n255797-d8d104eec65: Thu Sep 22 18:54:16 UTC 2022     root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/YVYTCXmQ/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev

Crash report details:

PHP Errors:
[24-Sep-2022 09:54:19 America/New_York] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/gwlb.inc:1788
Stack trace:
#0 /usr/local/www/system_gateways_edit.php(99): validate_gateway(Array, '1')
#1 {main}
  thrown in /etc/inc/gwlb.inc on line 1788

I was attempting to disable the gateway as there is no routable IPv6 address on my test virtual machine's WAN.

Actions

Also available in: Atom PDF