Regression #13599
closedFeature #13446: Upgrade PHP from 7.4 to 8.1
Error when disabling sshd
100%
Description
On system_advanced_admin.php when unchecking the 'Enable Secure Shell' and saving the page give this error:
```
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pfSense/include/www/system_advanced_admin.inc:420 Stack trace: #0 /usr/local/www/system_advanced_admin.php(434): restart_SSHD() #1 {main} thrown in /usr/local/pfSense/include/www/system_advanced_admin.inc on line 420 PHP ERROR: Type: 1, File: /usr/local/pfSense/include/www/system_advanced_admin.inc, Line: 420, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pfSense/include/www/system_advanced_admin.inc:420 Stack trace: #0 /usr/local/www/system_advanced_admin.php(434): restart_SSHD() #1 {main} thrown
```
Updated by Marcos M about 2 years ago
Could not replicate on pfSense-23.01.a.20221026.0600
.
Updated by Christian McDonald about 2 years ago
- Status changed from New to Feedback
- Assignee changed from Reid Linnemann to Christian McDonald
Could be a problem. I went ahead and updated the config access to the new API.
https://gitlab.netgate.com/pfSense/pfSense/-/commit/042d75c8efab83bbc7978e58d50c45d43a3a4e0c
Updated by Christian McDonald about 2 years ago
- % Done changed from 0 to 100
Applied in changeset 042d75c8efab83bbc7978e58d50c45d43a3a4e0c.
Updated by Christopher Cope about 2 years ago
- Status changed from Feedback to Resolved
I was able to reproduce it on
23.01-DEVELOPMENT (amd64) built on Wed Oct 26 09:24:05 CEST 2022 FreeBSD 14.0-CURRENT
tested on
23.01-DEVELOPMENT (amd64) built on Fri Oct 28 06:06:21 UTC 2022 FreeBSD 14.0-CURRENT
and it's working as expected. Marking resolved.
Updated by Jim Pingle about 2 years ago
- Parent task set to #13446
- Release Notes changed from Default to Force Exclusion