Project

General

Profile

Actions

Regression #13599

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

Error when disabling sshd

Added by Brad Davis over 1 year ago. Updated over 1 year ago.

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

100%

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

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
```

Actions #1

Updated by Marcos M over 1 year ago

Could not replicate on pfSense-23.01.a.20221026.0600.

Actions #2

Updated by Christian McDonald over 1 year 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

Actions #3

Updated by Christian McDonald over 1 year ago

  • % Done changed from 0 to 100
Actions #4

Updated by Christopher Cope over 1 year 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.

Actions #5

Updated by Jim Pingle over 1 year ago

  • Parent task set to #13446
  • Release Notes changed from Default to Force Exclusion
Actions #6

Updated by Jim Pingle over 1 year ago

  • Tracker changed from Bug to Regression
Actions

Also available in: Atom PDF